Skip to content

ci: cancel superseded nix-image builds per ref - #1251

Merged
c-vigo merged 1 commit into
release/1.4.1from
bugfix/1250-nix-image-cancel-superseded
Jul 22, 2026
Merged

c-vigo merged 1 commit into
release/1.4.1from
bugfix/1250-nix-image-cancel-superseded

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a workflow-level per-ref concurrency block with cancel-in-progress: true to nix-image.yml, so a release train's manifest-sync push cancels the guaranteed-red build started by the changelog-freeze push one commit earlier (visible since #1236 dropped the paths: filter).

Per-ref grouping keeps the epic branch and dispatches on other refs independent; cancelled runs only produce disposable nix-dev* discovery tags and idempotent Cachix paths, both fully regenerated by the superseding run. Structure asserted test-first in tests/test_workflow_cachix.py (RED confirmed before the fix).

Closes #1250
Refs #1250

Verification

  • actionlint clean; zizmor finding-set diff shows zero new findings (removes one pedantic concurrency-limits finding)
  • Full pre-commit suite green; tests/test_workflow_cachix.py 5/5

A release train's changelog-freeze push to dev starts a discovery build
whose baked-CHANGELOG checksum mismatch is guaranteed red until the
manifest-sync push lands one minute later. Group runs per ref with
cancel-in-progress so the sync build supersedes the doomed freeze build
instead of painting a red run every train; distinct refs stay
independent.

Refs: #1250
@c-vigo
c-vigo merged commit 2110a0f into release/1.4.1 Jul 22, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1250-nix-image-cancel-superseded branch July 22, 2026 16:01
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