Skip to content

CLOUDP-453193: Migrate to vX.Y.Z tags: centralize version logic, release process and GoReleaser OSS - #142

Merged
danielblanco96 merged 6 commits into
mongodb:mainfrom
fmenezes:CLOUDP-453193-git-version-script
Oct 29, 2026
Merged

danielblanco96 merged 6 commits into
mongodb:mainfrom
fmenezes:CLOUDP-453193-git-version-script

Conversation

@fmenezes

@fmenezes fmenezes commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

Jira ticket: https://jira.mongodb.org/browse/CLOUDP-453193

1. Centralize git tag version logic

New build/package/git-version.sh as the single source of truth for deriving the version from git tags, accepting both the legacy mongocli/vX.Y.Z tags and the new bare vX.Y.Z format (newest matching tag wins; other tools' tags, e.g. pre-split atlascli/vX.Y.Z, are excluded). Consumers switched (previously each inlined git tag --list "mongocli/v*" …): Makefile, package.sh, rename-pkg.sh, send-slack-notification.sh, generate-download-archive-manifest.sh, docker/docker-build.sh.

2. Release process for vX.Y.Z tags

  • Drop the goreleaser monorepo.tag_prefix: mongocli/ so bare vX.Y.Z tags drive releases
  • scripts/release.sh + RELEASING.md switch to the vX.Y.Z tag format
  • No git_tag_aliases change needed: the project defines none, so git_tag_only variants trigger on any tag

3. GoReleaser Pro → OSS

  • Download OSS goreleaser (v2.18.2, with retries — as fixed for atlas in CLOUDP-456003) instead of the Pro tarball
  • Drop the goreleaser_key expansion and GORELEASER_KEY export
  • Bump .goreleaser.yml to version: 2: --clean replaces the removed --rm-dist, rlcp dropped

Testing

  • shellcheck clean on all new/changed scripts; YAML parses
  • git-version.sh / tag / describe verified against real repo tags (2.0.9, mongocli/v2.0.9, 2.0.9-6-g45fc69d21); synthetic annotated-tag repo proves newer v2.1.0 wins over older mongocli/v2.0.0 and atlascli/* never matches
  • goreleaser check (v2.19) passes with only the same deprecation warnings atlas-cli's production config carries; the only v2 error left in this branch (prebuilt builder — Pro-only in v2) is removed by CLOUDP-453199: Migrate windows generation into evergreen's host.create #140

@fmenezes fmenezes changed the title CLOUDP-453193: Centralize git tag version logic and support vX.Y.Z tags CLOUDP-453193 + CLOUDP-453196: Support vX.Y.Z tags (centralized version logic, release process) Oct 28, 2026
Port the atlas-cli git-version.sh single source of truth (CLOUDP-453179 /
build/package/git-version.sh, which accepts both the legacy
mongocli/vX.Y.Z tags and the new bare vX.Y.Z tags (newest wins, other
tools' tags excluded).
@fmenezes
fmenezes force-pushed the CLOUDP-453193-git-version-script branch from 5f98e78 to 2b35a76 Compare October 28, 2026 10:46
@fmenezes fmenezes changed the title CLOUDP-453193 + CLOUDP-453196: Support vX.Y.Z tags (centralized version logic, release process) CLOUDP-453193: Centralize git tag version logic and support vX.Y.Z tags Oct 28, 2026
…g_prefix

Drop the goreleaser monorepo tag_prefix so bare vX.Y.Z tags drive
releases (twin of CLOUDP-453185 / #4837), switch scripts/release.sh to
the vX.Y.Z tag format and update RELEASING.md. No git_tag_aliases change
needed: this project defines none, so git_tag_only variants trigger on
any tag.
@fmenezes fmenezes changed the title CLOUDP-453193: Centralize git tag version logic and support vX.Y.Z tags CLOUDP-453193 + CLOUDP-453196: Support vX.Y.Z tags (centralized version logic, release process) Oct 28, 2026
… key

Twin of CLOUDP-453186 / #4838: download the OSS goreleaser release
(v2.18.2, with retries as fixed in CLOUDP-456003) instead of the Pro
tarball, drop the goreleaser_key expansion and GORELEASER_KEY export,
bump the config to version: 2 (--clean instead of the removed --rm-dist,
drop the removed rlcp field). The remaining v2 error (prebuilt builder)
is removed by PR mongodb#140, which must merge first.
@fmenezes fmenezes changed the title CLOUDP-453193 + CLOUDP-453196: Support vX.Y.Z tags (centralized version logic, release process) CLOUDP-453193: Migrate to vX.Y.Z tags: centralize version logic, release process and GoReleaser OSS Oct 28, 2026
@fmenezes
fmenezes marked this pull request as ready for review October 29, 2026 15:47
@fmenezes
fmenezes requested a review from a team as a code owner October 29, 2026 15:47
@fmenezes
fmenezes requested review from daneshqureshi and removed request for a team October 29, 2026 15:47
@danielblanco96
danielblanco96 merged commit 728e538 into mongodb:main Oct 29, 2026
18 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.

2 participants