Skip to content

publish: a commit merged to main can silently publish nothing (queued run superseded) #880

Closed

Description

@bpalermo

Summary

A commit merged to main can end up with no published chart and no published images, silently. It happened today to f332061 (the cosign PR #875).

Evidence

The publish run for f332061 reports cancelled, and it never started a single job:

$ gh run view <id> --json status,conclusion,jobs
{"conclusion":"cancelled","jobs":[],"status":"completed"}

GHCR confirms nothing was pushed for it (463 tags on charts/aether, queried with ?n=1000):

8d0d5da   0.93.1-8d0d5da683f7055acebf5f9d3318f10b82ce81e0
c6b7198   0.93.2-c6b7198d3f0cbaf4affc3353302e6e62e2bd7a2c
ba43258   0.93.2-ba43258a26b9214e7e0550e0216db61a2d28dcff
bf2acf7   0.93.2-bf2acf76394b271780bce20de525aa263e9515b5
f332061   *** MISSING ***

Timeline (all 2026-09-20, from gh run list --workflow=publish.yaml):

19:20:35  6ac9a6c  in_progress   <- holds the concurrency group
19:26:15  f332061  queued        <- cancelled when the next run queued
19:41:47  e3b58e6  queued        <- superseded it

Cause

.github/workflows/publish.yaml:

concurrency:
  group: publish-main
  cancel-in-progress: false

cancel-in-progress: false protects the running run. It does not make the queue a queue: GitHub holds at most one pending run per concurrency group, and a newly queued run cancels the older pending one. So supersession still happens — at queue time rather than at run time.

That is precisely the outcome the comment above the block says it is preventing:

cancel-in-progress: false because a publish is not a redundant check to be
superseded: cancelling one mid-push would leave the images pushed and the chart
not (or the chart pushed against a half-published image set).

The reasoning is right about the mid-push hazard. It just does not deliver "every commit gets published", which is what #692 needs and what a reader of the comment would conclude.

Why it matters

  1. The commit-suffixed tag stops being a reliable deploy coordinate. Per publish: concurrent runs race on the same chart version tag — older build overwrote newer (77a7d45 over 95b158e), deploy silently lacked #689 #692 the charts/aether:<version>-<full sha> tag exists because the bare <version> tag "does not change per commit, so it alone cannot tell you which commit is deployed". If the tag can silently not exist, helm upgrade against a specific main commit fails with a registry 404 and the operator has to go work out why.
  2. It is silent. The run's conclusion is cancelled, not failure, so it does not read as a broken build in the Actions UI and raises nothing.
  3. Unsigned by omission. Now that ci(publish): sign every published image with cosign, keyless #875 signs images in this workflow, a superseded commit produces no images and no signatures. Nothing distinguishes "this commit was never published" from "this commit was published but not signed" without querying the registry.
  4. This is the No shell script in the root workspace is linted: the shellcheck aspect has no sh_* target to visit #853 family: a control that is configured, looks correct, and does not do the thing its comment claims.

Suggested direction

Not proposing a specific fix; options worth weighing:

Whichever way it goes, the acceptance criterion should be demonstrable: merge two commits inside one publish window and show that both end up with a commit-suffixed chart tag (or that the gap is reported). A fix that cannot be seen to fail is not a fix (#853).

Not affected

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