Skip to content

publish-verify: skip superseded push heads in the scheduled sweep - #1290

Merged
bpalermo merged 1 commit into
mainfrom
upgrade/publish-verify-sweep-superseded
Oct 6, 2026
Merged

bpalermo merged 1 commit into
mainfrom
upgrade/publish-verify-sweep-superseded

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 5, 2026

Copy link
Copy Markdown
Owner

What

The scheduled --recent sweep now applies #1277's superseded rule to every push head: a head whose publish run did not succeed, on a main that has since moved past it, is skipped with a ::notice:: (and a job-summary line) instead of being reported as missing artifacts.

  • scripts/push-heads-lib.sh: github_publish_conclusions (one page of main's publish runs, PUBLISH_RUNS_FILE overrides), publish_conclusion (any green re-run wins, else the newest conclusion, else empty), select_unsuperseded (calls scripts/publish-verify-superseded.sh decide, the same function the workflow_run path uses, so the rule is not restated).
  • scripts/verify-published-artifacts.sh --recent: push heads go through select_unsuperseded; superseded ones print skip <sha> (superseded push head …). The quiet-day fallback picks the newest push head that was not superseded. The --recent: summary line counts superseded heads.
  • docs/runbook.md: the rule, its overrides, "pin the head that superseded it".

Still checked (so red stays red): main's head, any head whose publish succeeded, any head with no publish run on record (#880's "a run that never existed"), a run still without a conclusion. Fail closed: an unreadable run list or an unknown main head means nothing is skipped.

No workflow change in this PR (that is the next PR in the stack).

Why

The 2026-10-05 22:44 sweep (run 37384419419) went red with 176 of 736 artifacts "missing". All of them belong to the eight consecutive publishes that the next merge cancelled while they were pending (b1dc1c0 … 28b2680), between two successful publishes (65e473a, df3a113).

Proof

  • bazel test //scripts/...: 4/4 pass, including the new //scripts:push_heads_superseded_test (17 cases, using the canned 10-05 run list: cancelled heads superseded; success, re-run-to-green, still-main's-head, no-run-on-record and no-conclusion all checked; unknown or malformed main head and an empty run list skip nothing).
  • Live, read-only, from a workstation: scripts/verify-published-artifacts.sh --recent against today's main skipped exactly the eight cancelled heads (8 superseded push head(s) skipped) and checked the 8 published ones.
  • make actionlint clean; bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //scripts/... clean; make format-check clean.

Closes #1282

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

The workflow_run path skips a commit whose publish did not succeed once
main has moved past it (#1277); the --recent sweep still demanded
commit-addressed artifacts for every push head, so the 2026-10-05 sweep
(run 37384419419) went red on the eight consecutive publishes that the
next merge cancelled while pending (b1dc1c0..28b2680: 176 of 736
artifacts "missing").

The sweep now applies the same function to each push head
(select_unsuperseded in scripts/push-heads-lib.sh calls
publish-verify-superseded.sh decide): a superseded head is printed as
`skip <sha> (superseded push head ...)` with a ::notice:: and a job-summary
line; main's head, a head whose publish succeeded (any green re-run wins)
and a head with no publish run on record are still checked. An unreadable
run list or an unknown main head skips nothing. The quiet-day fallback
picks the newest push head that was not superseded.

Test: //scripts:push_heads_superseded_test, canned 2026-10-05 runs.

Closes #1282

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo force-pushed the upgrade/publish-verify-sweep-superseded branch from 0459ec6 to 7a1362e Compare October 6, 2026 00:16
@bpalermo
bpalermo merged commit cc3fbe3 into main Oct 6, 2026
25 checks passed
@bpalermo
bpalermo deleted the upgrade/publish-verify-sweep-superseded branch October 6, 2026 00:26
bpalermo added a commit that referenced this pull request Oct 6, 2026
…er pipefail (#1304)

The covered-set lookup was `printf '%s\n' "$covered" | grep -qxF "$f"` under
`set -euo pipefail`. grep -q exits at its first match; when printf still has
output left it dies of SIGPIPE, the pipeline returns 141, and a covered file
is reported as uncovered (#1290's first CI run, e2e/agent-restart-gap.sh).
Use `grep -qxF -- "$f" <<<"$covered"`.

//scripts:check_shell_lint_test runs the check against a fake `bazel query`
and fake `git ls-files`. The fake covered set is ~1 MiB with the real labels
sorting first, so the old shape fails every time, not by luck; an
anti-vacuity case rebuilds the old lookup and asserts it does fail there.

Closes #1297


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
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.

ci: the publish-verify sweep will go red on superseded push heads

1 participant