Repository navigation
ci(pr-pipeline): alert when pr-merge's post-merge check stays unreadable - #11382
Conversation
The monitoring lane gains signal 11, post-merge unreadable. It reads the pr-merge-post-merge-report artifacts that post-merge-dispatch keeps per sweep, from trusted scheduled or manual pr-merge runs on main only, newest first, and fires when the newest 4 all exited 3. The rolling issue names the newest report's reason, only notifies, and closes on the next readable report. No report within 70 minutes is a gap, so an open issue is not cleared without a readable sweep. The pr-merge run list is now read once and shared with the budget source; readArtifact can return named files from a multi-file artifact. Closes #9170 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgauhM9QMc1vRhujf3L
The owner's 2026-10-22 record asks for an ::error beside the issue: each monitoring run prints one while post-merge unreadable fires. The test fixtures now carry the reason a real exit-3 report held (pr-merge run 41067582241, 2026-10-30), whose zip layout and post-merge-code text the reader was checked against. Refs #9170 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgauhM9QMc1vRhujf3L
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 144f1ce627
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed No security findings. critical-findings: 0 I read the whole diff (11 files). Only Checked:
Spend: the monitor adds 2 to 5 REST calls per hourly run against the No plugin manifest files changed, so there are no |
|
claude-review reviewed No blocking or advisory findings. I read the whole diff and the code it touches ( Closing issue #9170, as amended by the 2026-10-26 comment
Checks against the workflow
Cost Embedded text |
… progress post-merge-dispatch uploads its report before the merge and enable-auto-merge jobs that need it finish, so the newest report usually belongs to a run still in progress. The shared pr-merge run list asked for completed runs only, which left that report out of the trusted set: four older exit-3 reports could raise signal 11, and a raised alert could not clear until the whole run completed. The list now takes every status; the budget source keeps its completed-only filter. No extra call. Refs #9170 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgauhM9QMc1vRhujf3L
Post-merge mutation testingKilled 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #9170
Summary
When pr-merge's post-merge check exits 3 (unreadable), merges hold and the only output is a
::warning. On 2026-10-30, every post-merge-dispatch sweep from 11:00 to 16:29Z exited 3 ("at the 1000-run search cap"). That held every merge candidate for about 5 hours, and nobody was alerted. Following the owner's 2026-10-26 amendment on #9170, this adds signal 11,post-merge unreadable, tomaintenance-monitor-signals. It uses a constant threshold of 4 consecutive sweeps, only notifies, and clears itself. pr-merge is unchanged, and there is no new config key, counter or issue filing.Fix
collect.mjs, new sourcepost-merge reports: reads thepr-merge-post-merge-reportartifacts thatpost-merge-dispatchkeeps for each sweep, newest first. Only runs in the trusted pr-merge run set are read (scheduled or manual, onmain, own head), so reports from a fork, a PR or an unlisted run are never read. The read stops at the first report that is not exit 3, or after 4 reports. A run that kept no report (not live, or stopped by a rate limit) neither counts toward the streak nor resets it. If no trusted report is newer than 70 minutes, the source records a gap rather than a clear, so an open issue stays open until a sweep reads again. The pr-merge run list is now read once and shared with the budget source.signals.mjs,postMergeUnreadableFindings: fires when all 4 newest reports are exit 3 (POST_MERGE_UNREADABLE_SWEEPS = 4, the owner's constant). The summary names the newest report'sreasonin inert form. The fingerprint is that reason with its digits masked, so a cause that persists is written once rather than every hour.observedAtis the newest report's time, so a new streak after a clear reopens the same issue.monitor.mjs: while signal 11 fires, each run prints one::errorline. This keeps the owner's 2026-10-22 "emit::error" requirement, which the 2026-10-26 amendment did not drop.readArtifactcan now return named files from an artifact that holds several.issues.mjs: signal 11 is registered inSIGNALS, and the new source maps to it inSOURCES. The signals table indocs/conventions/pr-pipeline/README.mdand apr-pipelinechangelog fragment are added.Per-run GitHub call delta (budget is 250,
CALL_BUDGET):Detection latency: the monitor runs hourly at :52, so the issue lands about 1 to 2 hours after a streak starts.
Verification
post-merge-code(3) andpost-merge.jsonat its root;.reasonisunreadable: post-merge-detect-silent-revert.yml push runs: total_count 1239, 1000 returned, at the 1000-run search cap;origin/main, the new tests fail (7 failures;signals.test.mjsfails at import).node --test .github/scripts/maintenance-monitor-signals/*.test.mjspasses 92 of 92. The tests cover:::error.scripts/check-affected.sh --tests: 11 passed, 5 skipped.scripts/check-line-citations.pyrc=0.scripts/check-changelog-fragments.sh --checkand--check-required origin/mainpass.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgauhM9QMc1vRhujf3L