Repository navigation
fix(pr-pipeline): stop duplicate and pointless lane runs - #7842
Conversation
- pr-unblock dispatch.mjs skips a PR while a resolve-conflicts run for it is queued or in progress, matched by pr-unblock.yml's run-name the way feedback-dispatch.mjs already does; an unreadable run listing dispatches nothing. - pr-feedback-dispatch.yml starts no runner for a review run GitHub skipped. - pr-refine.yml skips fix-docs on pull_request events of a PR a bot opened, which claude-code-action refuses. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43
claude-code-action refuses a non-human actor, so skip fix-docs when github.event.sender.type is Bot. A human push to a bot-opened PR (a lanes App PR) still runs fix-docs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43
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 needs no new review of No security issues found in PR #7842 at 75f0f9d. I read the full diff and checked that
|
|
claude-review needs no new review of No findings on head 75f0f9d. I read the full diff (7 files) and checked the cross-file links against the checkout. I did not run the tests.
|
Closes #7836
Closes #7838
Closes #7839
Summary
Three lane triggers spent runners or model runs that could only duplicate work, skip, or fail. Each now stops before the runner or the dispatch.
Fix
.github/scripts/pr-unblock/dispatch.mjslistspr-unblock.ymlruns once per dispatcher run and skips a PR while a run titledpr-unblock resolve-conflicts #<n>(therun-nameinpr-unblock.yml) is not completed, the same filterfeedback-dispatch.mjsuses (it reuses that module'srunTitle). A failed run listing dispatches nothing and counts as a failure, so a read error cannot double the spend; the next main push retries..github/workflows/pr-feedback-dispatch.ymladdsgithub.event.workflow_run.conclusion != 'skipped'to the jobif:..github/workflows/pr-refine.ymlalso skipsfix-docsonpull_requestevents whengithub.event.sender.type == 'Bot'. claude-code-action refuses on the actor, so the gate checks the actor; a human push to a bot-opened PR (a lanes App PR) still runsfix-docs. No bot is added to any allowlist.pr-unblock.ymlnames both readers of its run title;pr-unblock-dispatch.ymlsays itsactions: writealso lists runs (write includes read, so no permission change).Verification
dispatch.test.mjs: skip while a resolve-conflicts run for the PR isqueued,in_progress,waitingorpending(mirrors the feedback-dispatch test; the title is read frompr-unblock.yml'srun-name); an unreadable listing dispatches nothing. A finished run, another PR's run, or another activity's run does not hold the dispatch. The adapter test checks the runs endpoint.workflow-gates.test.mjs: evaluates each jobif:from the workflow file. pr-feedback-dispatch:skippeddoes not run,success/failure/cancelleddo. pr-refine: a standards-sync bot's push, a draft, and the lanes App's own push skip; a human's push (to any PR, bot-opened included) and a dispatch run. Red against both the baseif:and an author-type (user.type) variant.npm testin.github/scripts/pr-unblock: 273 pass, 0 fail..github/actions/check-trusted-trigger: 217 pass..github/actions/resolve-config: 314 pass.scripts/check-affected.sh --tests: 5 passed, 4 skipped.scripts/affected-tests.sh --run: every selected shell suite passed.actionlinton the four changed workflows: clean.zizmor1.30.0: no findings.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43