Skip to content

[3008.x] version: mark ARGON (3008) as released - #70162

Merged
dwoz merged 1 commit into
saltstack:3008.xfrom
dwoz:dwoz/backport/70161-to-3008.x
Aug 27, 2026
Merged

dwoz merged 1 commit into
saltstack:3008.xfrom
dwoz:dwoz/backport/70161-to-3008.x

Conversation

@dwoz

@dwoz dwoz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Backport of #70161 to 3008.x. Same one-line fix.

Without this, nightly RPMs from saltstack/salt-nightlies 3008.x continue to be labeled salt-3007.14+N-0.x86_64.rpm instead of the expected salt-3008.2+N-0.x86_64.rpm.

See #70161 for the full analysis and regression window (introduced 2026-08-25 by the 3007.x → 3008.x merge).

Fix

-    ARGON         = SaltVersion("Argon"        , info=3008)
+    ARGON         = SaltVersion("Argon"        , info=3008,       released=True)

Merge requirements satisfied?

  • Docs
  • Changelog — not applicable
  • Tests written/updated — not applicable

Commits signed with GPG?

No.

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.
@dwoz
dwoz requested a review from a team as a code owner August 27, 2026 18:54
@dwoz
dwoz merged commit 972deae into saltstack:3008.x Aug 27, 2026
18 checks passed
dwoz added a commit that referenced this pull request Aug 27, 2026
…name

#70162 marked ARGON released=True on 3008.x 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 was
correct for 3007.x but wrong once 3008.x updated the released
flag. Every 3008.x PR started failing here (e.g. #70157 CI).

Rather than bump the hardcoded codename 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.

Verified locally: contract-based assertion passes with the current
SaltVersionsInfo table state on this branch (expected=Argon/3008,
current=Argon/3008).
dwoz added a commit that referenced this pull request Aug 28, 2026
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-#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).
@dwoz
dwoz deleted the dwoz/backport/70161-to-3008.x branch November 13, 2026 08:29

This branch was previously deployed

1 inactive deployment
ci — 54e8259b Deployed Aug 27, 2026 by dwoz via Build Onedir Packages / Windows (amd64) #26791
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.

1 participant