Skip to content

publish: concurrent runs race on the same chart version tag — older build overwrote newer (77a7d45 over 95b158e), deploy silently lacked #689 #692

Closed

Description

@bpalermo

Summary

Two publish runs for consecutive merges to main raced on the same chart version tag, and the older build won:

run commit chart push
33968277499 95b158e (#689, newer) Pushed: …/charts/aether:0.92.1 at 13:15:59Z, digest daf71cfe…
33968245408 77a7d45 (#688, older) Pushed: …/charts/aether:0.92.1 at 13:16:03Z, digest 6916729a…

helm pull --version 0.92.1 at 13:18Z returned digest 6916729a… with appVersion: 77a7d45 — the older build. The upgrade to helm rev193 at 13:16:27Z deployed it, so #689's change was silently absent from a deploy that was believed to include it. Caught only because the deploy check compares the chart's appVersion to the expected commit.

Why

.github/workflows/publish.yaml triggers on every push to main with no concurrency group, and the aether chart is published under its bare Chart.yaml version (0.92.1), which does not change per commit. Any two merges within the ~4-minute publish duration can therefore write the same tag in either order. The crds, prober, and udsecho charts already avoid this by suffixing the commit (prober:0.2.0-95b158e…); the main chart does not.

Fix (either is sufficient; both are cheap)

  1. Serialise publishes: add concurrency: { group: publish-main, cancel-in-progress: false } to publish.yaml so runs for main queue in order. This alone makes last-writer-wins equal newest-writer-wins.
  2. Make the tag unambiguous: publish the main chart as <version>-<sha> like the sibling charts (or additionally push a <version> tag only from the serialised workflow). Deploy tooling would then pin --version 0.92.1-95b158e…, which is also what the soak records already quote.

Also worth a one-line guard in the deploy procedure (already done by hand today): after helm upgrade, assert helm get metadata … appVersion equals the intended commit, or fail.

Impact today

Recovered by gh run rerun 33968277499 (re-pushing daf71cfe…) and a second helm upgrade. No production impact beyond one extra fleet roll. Related: #679 (the other "nothing validates what actually landed" gap), #689 (the change that went missing).

Activity

  1. bpalermo commented on Sep 5, 2026

    @bpalermo
    OwnerAuthor

    Validated after the #713 merge: the publish run for 3093d6b pushed both charts/aether:0.92.5 and charts/aether:0.92.5-3093d6ba866bc94c690cbb5c9915c4d31dc11e56 (helm show chart on the suffixed tag returns appVersion: 3093d6ba…), and the four merges tonight (#710 → #711 → #713 → #712 → #714) were serialised by the publish-main concurrency group with no overlap. The deploy-time guard (helm get metadata … appVersion must contain the intended sha) is in the runbook and was applied for rev199.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions