Repository navigation
version: mark ARGON (3008) as released - #70161
Merged
Merged
Conversation
The `SaltVersionsInfo` table in `salt/version.py` had CHLORINE (3007) marked `released=True` but ARGON (3008) not, even though 3008.0, 3008.1, and 3008.2 have all been tagged and shipped. `SaltVersionsInfo.current_release()` iterates the version list and returns the last codename with `released=True`. With ARGON missing the flag it returns CHLORINE, which then gets used as the baseline in `__discover_version()`. On the 3008.x branch that produces version strings like `3007.14+2643.gca4940b8f0` for nightly builds -- packages end up named `salt-3007.14+N-0.x86_64.rpm` instead of the expected `salt-3008.2+N-0.x86_64.rpm`. Regression window on 3008.x: introduced by the 2026-08-25 merge from 3007.x (commit 17c1f44 "Merge remote-tracking branch 'origin/3007.x' into merge/3007.x/3008.x-08-25-26"). Prior nightlies were correctly labeled -- e.g. build 210 from 2026-08-19 shipped as `salt-3008.2+210.g9a41326f33`. Master has the same bug and was similarly affected (though master nightlies have been failing for other reasons and nobody noticed). Fix is a one-line flip: ARGON = SaltVersion("Argon", info=3008, released=True) Needs to be backported to 3008.x. Any active supported release branch whose `current_release()` should return ARGON needs the same. Discovered while verifying nightly RPM signing on a live 3008.x build (salt-nightlies run 33103981309): "Prepare Release" step printed "3007.14+2643.gca4940b8f0" from a 3008.x checkout.
3 tasks
3 tasks
dwoz
added a commit
that referenced
this pull request
Aug 27, 2026
…name #70161 marked ARGON released=True on master so SaltVersionsInfo.current_release() now returns ARGON. The regression test test_current_release_matches_maintenance_branch_67061 was asserting the pre-flip codename by name (CHLORINE), which needed bumping to ARGON. Rather than bump the hardcoded value with every release cycle (and reintroduce this same failure mode next time POTASSIUM or its successors flip to released=True), assert the *contract* that current_release() is documented to satisfy: return the last codename in SaltVersionsInfo.versions() with released=True. released = [v for v in SaltVersionsInfo.versions() if v.released] assert released, "SaltVersionsInfo table has no released codenames" expected = released[-1] current = SaltVersionsInfo.current_release() assert current == expected, "..." Same regression-protection value against the original #67061 bug (current_release() walking to the first *un*-released codename would still fail this assertion), zero per-release-cycle churn. Failure message names both the expected and actual codenames. Sibling PR: 3008.x -- SaltProject/salt#70167.
This branch had an error being 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?
Flips
released=Trueon the ARGON (3008)SaltVersionentry insalt/version.pysoSaltVersionsInfo.current_release()returns ARGON instead of CHLORINE (3007) on the 3008.x line. Fixes a version-string regression that was making nightly RPMs come out assalt-3007.14+N-0.x86_64.rpminstead ofsalt-3008.2+N-0.x86_64.rpm.What issues does this PR fix or reference?
Discovered while verifying nightly RPM signing on saltstack/salt-nightlies run 33103981309 (a 3008.x dispatch). The "Prepare Release" step printed
Prepare Release: 3007.14+2643.gca4940b8f0— but the branch is 3008.x and the head_sha lives well past v3008.2.Root cause
salt/version.py:SaltVersionsInfo.current_release()iterates and returns "the last codename withreleased=True". With ARGON unflagged, it returns CHLORINE (3007). The code path in__discover_version()then liftsgit describe's output tocurrent_release()when the parsed major is older than the hardcoded major — sogit describeoutput likev3007.9-2643-gca4940b8f0gets normalized to3007.14+2643.gca4940b8f0instead of a proper3008.2+2643.gca4940b8f0.Regression window on 3008.x
salt-3008.2+210.g9a41326f33-0.x86_64.rpm— correct.Merge remote-tracking branch 'origin/3007.x' into merge/3007.x/3008.x-08-25-26(commit17c1f44bb3fa) merged 3007.x's version.py (where ARGON is correctly not released) into 3008.x, un-flipping the flag.3007.14+N.Master has the same bug and would have the same symptom on its nightlies once those start succeeding again.
Fix
Needs to be backported to 3008.x separately; opening that PR alongside.
Local verification
pre-commit run --files salt/version.py: all applicable hooks pass.Merge requirements satisfied?
Commits signed with GPG?
No.