fix(helm-deploy-eks): makeLatest legacy → true (legacy semver broken on rc tags)#156
Conversation
…broken) Follow-up to #155. Tested `legacy` against encodium/batch rc.9 vs rc.12 on 2026-07-13 and it did NOT re-designate. GH's semver comparator appears to treat `2026-07-09` in the prerelease identifier as an alphanumeric segment (hyphens present), then compares subsequent segments incorrectly — so `-rc.2026-07-09.12` does not rank above `-rc.2026-07-09.9` in its impl. Switching to `make_latest: true`. Semantic under RT v2: 'latest release' = whatever is currently running in prod. Every successful prod deploy re-designates latest. Rollback deploys of older rc's correctly move latest backwards to reflect what's actually deployed — which is what you want during an incident anyway (latest = truth of what's live). Main-branch clean tags (`vX.Y.Z`) go through a different action on create (not PATCH) and use normal semver ordering — not affected by this change.
PR SummaryLow Risk Overview Comments document why Reviewed by Cursor Bugbot for commit 39c1dfa. Bugbot is set up for automated code reviews on this repo. Configure here. |
Follow-up to #155. Tested
legacyagainst encodium/batch rc.9 vs rc.12 today — it did NOT re-designate. Diagnosis:GH's semver comparator treats
2026-07-09in the prerelease identifier as an alphanumeric segment (hyphens present), then compares subsequent segments incorrectly. So-rc.2026-07-09.12does not rank above-rc.2026-07-09.9in GH's implementation.Verified: PATCH with
make_latest: legacy→ rc.9 stayed latest. PATCH withmake_latest: true→ rc.12 became latest.Semantic change
legacy): GH re-evaluates via semver. Broken for our tag shape.true): every successful prod deploy re-designates as latest.Rollback behavior changes: under
true, rolling back to an older rc makes THAT rc latest (accurately reflecting what's live). Underlegacywe'd have kept the newer rc as latest despite older code running.trueis the more useful semantic during incidents.Not affected
vX.Y.Z) go through mathieudutour/ncipollo on release CREATE, not PATCH. Normal semver ordering applies there — no impact.