Skip to content

fix(build): derive the version from release tags only - #4791

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-4790
Nov 14, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-4790

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

build.rs asks vergen for git describe --tags, so the nearest tag of any name becomes the reported version. The lightweight release-recovery-nov14 tag, pushed on 9ececf3 for the v0.82.0 recovery dispatch, is now the nearest tag to main. As a result, every build of main reports release-recovery-nov14-N-g<sha> in wt --version and wt config show. The [VERSION] snapshot filter in tests/common/mod.rs only recognizes v-semver or bare hashes, so three config_show snapshot tests fail. They failed on the macOS and Windows jobs of the affected run. ci and coverage stayed green because their shallow checkouts fetch no tags, so describe falls back to the bare hash. affected checks out with fetch-depth: 0.

This PR restricts describe to v[0-9]* tags. Builds from main now report v0.82.0-N-g<sha> again, and a checkout without release tags still falls back to the bare hash through --always. On Windows, vergen runs the command through cmd /c without quotes, which passes v[0-9]* through literally.

Verification: with the recovery tag fetched, test_config_show_bash_matched_exe_emits_alias_hint failed locally with the same release-recovery-nov14-1-g4ad95fa64 diff as CI. After the change, all 238 config_show integration tests pass and wt --version prints v0.82.0-2-g4ad95fa64.

Refs #4790 — automated triage

build.rs ran `git describe --tags`, so any nearer non-version tag became
the reported version. The lightweight `release-recovery-nov14` tag on
9ececf3 made every build of main report
`release-recovery-nov14-N-g<sha>`, which the `[VERSION]` snapshot filter
does not recognize, failing three `config_show` snapshot tests on the
affected workflow's macOS and Windows coverage jobs. Restrict describe to
`v[0-9]*` tags.

Refs #4790
@worktrunk-bot worktrunk-bot added the automated-fix Automated CI fix label Nov 14, 2026
@max-sixty
max-sixty merged commit 9e90bda into main Nov 14, 2026
36 of 45 checks passed
@max-sixty
max-sixty deleted the fix/issue-4790 branch November 14, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-fix Automated CI fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants