Repository navigation
publish-verify: skip superseded push heads in the scheduled sweep - #1290
Merged
Merged
Conversation
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
force-pushed
the
upgrade/publish-verify-sweep-superseded
branch
from
October 6, 2026 00:16
0459ec6 to
7a1362e
Compare
This was referenced Oct 6, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The scheduled
--recentsweep now applies #1277's superseded rule to every push head: a head whose publish run did not succeed, on amainthat 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_FILEoverrides),publish_conclusion(any green re-run wins, else the newest conclusion, else empty),select_unsuperseded(callsscripts/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 throughselect_unsuperseded; superseded ones printskip <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).scripts/verify-published-artifacts.sh --recentagainst today's main skipped exactly the eight cancelled heads (8 superseded push head(s) skipped) and checked the 8 published ones.make actionlintclean;bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //scripts/...clean;make format-checkclean.Closes #1282
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr