Skip to content

Align release artifact naming with ASF incubator conventions#1689

Merged
tuhaihe merged 1 commit intoapache:mainfrom
tuhaihe:update-asf-release-file-name
Apr 21, 2026
Merged

Align release artifact naming with ASF incubator conventions#1689
tuhaihe merged 1 commit intoapache:mainfrom
tuhaihe:update-asf-release-file-name

Conversation

@tuhaihe
Copy link
Copy Markdown
Member

@tuhaihe tuhaihe commented Apr 21, 2026

Use base version (without -rcN suffix) for release tarball filename to align with Apache incubator release conventions.

Changes:

  • Modified TAR_NAME to use ${BASE_VERSION} instead of ${TAG}
  • Tarball filename now follows pattern: apache-cloudberry-${BASE_VERSION}-src.tar.gz
  • Example: apache-cloudberry-2.0.0-incubating-src.tar.gz (instead of apache-cloudberry-2.0.0-incubating-rc1-src.tar.gz)

Benefits:

  • Enables direct 'svn mv' to release repository after voting without renaming artifacts
  • Aligns with Apache release best practices where RC identifiers are used only for Git tags and voting process, not in final artifact names
  • Eliminates need to regenerate .sha512 files during promotion
  • Maintains consistency between tarball filename and extracted directory name
  • Simplifies release manager workflow

The extracted directory name remains unchanged:
apache-cloudberry-${BASE_VERSION}/

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


Use base version (without -rcN suffix) for release tarball filename
to align with Apache incubator release conventions.

Changes:
- Modified TAR_NAME to use ${BASE_VERSION} instead of ${TAG}
- Tarball filename now follows pattern:
  apache-cloudberry-${BASE_VERSION}-src.tar.gz
- Example: apache-cloudberry-2.0.0-incubating-src.tar.gz
  (instead of apache-cloudberry-2.0.0-incubating-rc1-src.tar.gz)

Benefits:
- Enables direct 'svn mv' to release repository after voting without
  renaming artifacts
- Aligns with Apache release best practices where RC identifiers are
  used only for Git tags and voting process, not in final artifact names
- Eliminates need to regenerate .sha512 files during promotion
- Maintains consistency between tarball filename and extracted
  directory name
- Simplifies release manager workflow

The extracted directory name remains unchanged:
apache-cloudberry-${BASE_VERSION}/
Copy link
Copy Markdown
Contributor

@leborchuk leborchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we extract BASE_VERSION from TAG by removing -rc suffix, lets use it in artifact name

BASE_VERSION="$TAG"
if [[ "$TAG" =~ ^(.+)-rc[0-9]+$ ]]; then
  BASE_VERSION="${BASH_REMATCH[1]}"
fi

@tuhaihe tuhaihe merged commit e6becea into apache:main Apr 21, 2026
66 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants