Repository navigation
[3008.x] version: constrain git-describe --match to v3008.* on 3008.x - #70170
Merged
dwoz merged 1 commit intoAug 28, 2026
Merged
Conversation
Commit f3ffc8f (originally landed on 3007.x) added `--match v3007.*` to salt.version's git-describe call to keep 3008.x tags from hijacking version detection on 3007.x when a reverted mis-merge left 3008.x commits reachable. That commit got merged forward into 3008.x on 2026-08-25 (via 17c1f44 "Merge remote-tracking branch 'origin/3007.x' into merge/3007.x/3008.x-08-25-26") without updating the constraint to this branch's major. Result on 3008.x: git describe skips every v3008.* tag and reports "v3007.14-N-gSHA". Downstream: - __discover_version() sees parsed.major=3007 < saltstack_version.major=3008 and takes the "lift baseline" branch, replacing the parsed base with SaltVersionsInfo.current_release() (=ARGON, info=3008 only, no minor). - Minor defaults to 0. - Every nightly RPM/DEB on 3008.x since the merge has been labeled salt-3008.0+N-... instead of salt-3008.2+N-... Fix is one-line: change v3007.* -> v3008.*. Same intent as the original 3007.x commit (constrain to the branch's own major), adapted to 3008.x's calver line. git describe now returns v3008.2-<ahead>-gSHA, __discover_version() parses it directly (same major, no lift-baseline needed), and RPM/DEB packages get the correct salt-3008.2+N-... version prefix. Verified in the salt-nightlies 3008.x run 33122447777 (post-saltstack#70162 merged): produces salt-3008.0+2651.gfd8241adb4 instead of the expected salt-3008.2+2651.gfd8241adb4. This one-line fix restores the correct minor. Master is unaffected -- it uses `--match v[0-9]*` (no branch-major constraint).
6 of 7 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes salt-3008.x nightly packages coming out as
salt-3008.0+N-...instead of the expectedsalt-3008.2+N-.... Root cause is a leftover--match v3007.*constraint that got merged forward from 3007.x on 2026-08-25 and never rebased to 3008's own major.What issues does this PR fix or reference?
Discovered when verifying nightly signing on saltstack/salt-nightlies run 33122447777: all 32 packages signed correctly, but named
salt-3008.0+2651.gfd8241adb4instead ofsalt-3008.2+2651.gfd8241adb4.Same regression fingerprint I noted earlier in this cycle but didn't chase — worth chasing now that everything else works.
Root cause chain
f3ffc8f (2026-08-18, targeting 3007.x): "Constrain git-describe tag match to v3007.* on 3007.x". Legitimate fix — 3007.x had unwanted
v3008.1tags reachable in the graph from a reverted mis-merge, sogit describewas pickingv3008.1-N-gSHAon 3007.x and breaking docs. Constraint tov3007.*fixed 3007.x.17c1f44 (2026-08-25): Routine merge-forward
3007.x → 3008.xbrought the constraint over without updating it tov3008.*.Result on 3008.x since Aug 25:
git describe --match v3007.*skips everyv3008.*tag (v3008.0, v3008.1, v3008.2, and their rc/patch variants) and reports the branch asv3007.14-<ahead>-gSHA.In
__discover_version(),parsed.major = 3007 < saltstack_version.major = 3008triggers the "lift baseline" code path that replaces the parsed base withSaltVersionsInfo.current_release()(ARGON,info=(3008,)— no minor). Minor defaults to 0.Every 3008.x nightly RPM/DEB since the merge has been labeled
salt-3008.0+N-....Fix
One-line change (plus comment update):
Same intent as the original 3007.x commit: pin
git describeto only consider tags from the branch's own calver line so unrelated tags don't hijack the detected version. Just adapted to 3008.x's own major.Impact
git describereturnsv3008.2-<ahead>-gSHAon 3008.x.__discover_version()parses it directly (parsed.major == saltstack_version.major, no lift-baseline branch taken).salt-3008.2+N-...correctly.--match v[0-9]*— no branch-major constraint since master doesn't need one).Local verification
pre-commit: isort/black/Lint Salt/bandit all pass.
Merge requirements satisfied?
Commits signed with GPG?
No.