Repository navigation
fix(pr-pipeline): stop fix-ci re-dispatching a head it already skipped - #8455
Conversation
A fix-ci-context skip (a closed pull request or no failing check) ran no fix-ci job, so no pr-unblock / fix-ci check landed on the head, and fix-ci-dispatch.mjs, which dispatches any head without one, sent the same lowest-numbered pull requests on every run. A new fix-ci-not-run job posts fix-ci neutral not-applicable on that head through report-check-run, as publish-feedback-not-run does for address-feedback. Closes #8445 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
|
claude-security-review reviewed No security findings in PR #8455 at head fb5ce20. The PR adds a
I did not consider whether a neutral check could hide a later failing check on the same head from the dispatcher. That is functional behaviour, not a security issue, and falls outside this lane. |
|
claude-review reviewed No findings. I reviewed the 4-file diff against the PR context and #8445, and I did not run the tests or the workflow. Closing issue #8445. The issue says "A fix-ci run that skips records a terminal result for that head (a neutral check run, or an escalation), so the dispatcher counts it as handled and moves on." The change meets that. The issue's second ask was to find why Job conditions.
Tests. Extracting Docs and changelog. The Observation, not a defect. A neutral |
… test comment comment-hygiene flagged callers.test.mjs:254 as tracker-ref:issue-reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #8445
Hold: a human merges this (it adds a workflow job).
Summary
When
fix-ci-contextskipped (a closed pull request, or a head with no failing check), the run posted nopr-unblock / fix-cicheck run.fix-ci-dispatch.mjsdispatches any red lanes-App head that has no such check run, lowest PR number first, up tofix-ci-per-run. So #8171 and #8074 took both slots on every main push, and every other red lane PR got no slot.Fix
.github/workflows/pr-unblock.yml: a newfix-ci-not-runjob runs whenfix-ci-contextwroteproceed=falsewith no escalation reason and a head SHA. It postspr-unblock / fix-cineutralnot-applicableon that head throughreport-check-run'snot-run-reason. This is the same pattern aspublish-feedback-not-run, with the samechecks: write+contents: readand base-tip code only. The dispatcher already counts a neutral check that is notuntrusted-triggeras handled (fix-ci-dispatch.mjs:91-99), so the script itself is unchanged.docs/conventions/pr-pipeline/pr-run-activity.md: the fix-ci step 1 now says that a skip posts this neutral check.Why #8171 and #8074 show a red
ci-statuswith no failing check: an earlier full run failed one lane (check-skillson #8171,lint-repoon #8074) and recorded the commit statusci-lanes=failure. A later contract-onlypull_requestevent ranpr-require-checksagain with every lane skipped. That run posted newerskippedcheck runs under the same names, and itsci-statusfailed on theci-lanesstatus left by the earlier run.fix-ci-context.mjskeeps only the latest run per check name (failingChecks), so theskippedrun hides the real failure and the context counts 0 failing checks. That is a separate defect and is not changed here.Verification
node --test .github/actions/resolve-config/callers.test.mjs: 15/15 pass. The new test evaluates the job'sif:(it runs on a skip, and does not run on proceed, an escalation, or a kill-switch stop). It runs the job'sreport-check-runstep and checks that the posted check ispr-unblock / fix-ci, neutral,not-applicable, on the gated head. It then passes that check, as the listing returns it, tofix-ci-dispatch.mjs'sskipReason, which now reports the head as handled.actionlintandzizmor --offlineonpr-unblock.yml: clean.scripts/check-affected.sh: 5 passed, 3 skipped.Related
docs/adr/0051-start-pr-fix-ci-from-workflow-run-for-same-repository-trusted-prs.md)🤖 Generated with Claude Code