Repository navigation
perf(pr-pipeline): skip pr-feedback-dispatch jobs that can only find nothing - #9345
Conversation
…nothing The dispatch job now starts only for review runs on a work-resolve-issue lane branch, the only branches the lanes App opens PRs from; every other run spent a runner and one GITHUB_TOKEN read to learn the PR was not the App's. post-verify-notes no longer starts for a skipped pr-verify run, which uploaded no verdict to list. 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-review needs no new review of No findings. I read the diff and the PR context, and checked the new gates against Changes reviewed
Checks
Manifests, hold classes and closing issue
|
|
claude-security-review reviewed No security findings in this pull request. I read the full diff and the PR context. I did not read the files outside the diff, such as The change makes two edits to
critical-findings: 0 |
No related issue: GITHUB_TOKEN pool exhaustion 2026-10-23 05:26Z
Summary
pr-feedback-dispatch starts a runner for every completed review and pr-verify run, and most of those runs read the API once just to learn there is nothing to do. This PR moves two of those decisions into job-level
if:gates, so those runs make no API call and start no runner.Measured from the logs of 164 non-skipped runs, 04:46 to 05:40Z. The cost is the script's own
api-callscounter, and setup-node found Node in the tool cache in all 163 logs that reached that step:skippedcommits/{sha}/pulls), now 0Fix
dispatchalso requiresstartsWith(github.event.workflow_run.head_branch, 'work-resolve-issue/issue-')on the review-run arm. The lanes App opens PRs only from validated lane branches:report-outcome.mjschecks the branch withisLaneBranchbeforePOST /pulls, and all 285 lanes App PRs in this repo match the prefix. The pr-verify arm, whose branch ismain, is unchanged. The script still checks the PR author.post-verify-notesalso requiresconclusion != 'skipped'. A skipped pr-verify run ran no job, so it has no verdict to post. Afailureorcancelledrun still lists its artifacts.The pr-merge reads and the dispatch POST are untouched.
Verification
node --test .github/scripts/pr-unblock/workflow-gates.test.mjs .github/scripts/pr-unblock/feedback-dispatch.test.mjs .github/actions/resolve-config/feedback-dispatch.test.mjs: 90 pass.laneBranchIssue, so renaming the lane branch fails CI instead of silently stopping dispatches.actionlintis clean on the workflow.Related
🤖 Generated with Claude Code