Skip to content

version: mark ARGON (3008) as released - #70161

Merged
dwoz merged 1 commit into
saltstack:masterfrom
dwoz:dwoz/fix/argon-released-true
Aug 27, 2026
Merged

dwoz merged 1 commit into
saltstack:masterfrom
dwoz:dwoz/fix/argon-released-true

Conversation

@dwoz

@dwoz dwoz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Flips released=True on the ARGON (3008) SaltVersion entry in salt/version.py so SaltVersionsInfo.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 as salt-3007.14+N-0.x86_64.rpm instead of salt-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:

CHLORINE = SaltVersion("Chlorine", info=3007, released=True)
ARGON    = SaltVersion("Argon",    info=3008)           # ← missing released=True
POTASSIUM = SaltVersion("Potassium", info=3009)

SaltVersionsInfo.current_release() iterates and returns "the last codename with released=True". With ARGON unflagged, it returns CHLORINE (3007). The code path in __discover_version() then lifts git describe's output to current_release() when the parsed major is older than the hardcoded major — so git describe output like v3007.9-2643-gca4940b8f0 gets normalized to 3007.14+2643.gca4940b8f0 instead of a proper 3008.2+2643.gca4940b8f0.

Regression window on 3008.x

  • Aug 19 (build 210): salt-3008.2+210.g9a41326f33-0.x86_64.rpm — correct.
  • Aug 25: Merge remote-tracking branch 'origin/3007.x' into merge/3007.x/3008.x-08-25-26 (commit 17c1f44bb3fa) merged 3007.x's version.py (where ARGON is correctly not released) into 3008.x, un-flipping the flag.
  • Aug 26 onward: every 3008.x nightly labeled 3007.14+N.

Master has the same bug and would have the same symptom on its nightlies once those start succeeding again.

Fix

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

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?

  • Docs
  • Changelog — not applicable (metadata flip fixing a version-string CI regression; nothing user-facing beyond nightly package naming which is a moving target anyway)
  • Tests written/updated — not applicable (single-value metadata, verified by running the CI itself post-merge)

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 dc5dbff into saltstack:master Aug 27, 2026
15 of 19 checks passed
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.
@dwoz
dwoz deleted the dwoz/fix/argon-released-true branch November 13, 2026 08:29

This branch had an error being deployed

1 failed deployment
ci — 4c8764bb Deployed Aug 27, 2026 by dwoz via Build Onedir Packages / macOS (arm64) #26790
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