Repository navigation
refactor(ci): simplify pr-require-checks.yml workflow (part 1 of 4) - #15870
Conversation
Comments only, in the header and the jobs that start in the first quarter of the file (mark-lanes, select-tests, lint-repo): move the select-tests prose from above mark-lanes to its own job, correct comments that misdescribe the code (report-ci-status also lacks the contract-only predicate, the queue-hold step reads no statuses and pull-requests: read is granted elsewhere too, which lint-repo steps gate on run_workflows, the stale-base step declines on every non-PR event, the lane-coverage step also checks the aggregator feed, every local action carries the self-repository ignore), replace history narration with present-tense rationale, and rewrap comments that broke mid-sentence or ran past the width. Closes #15826 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis 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 Security review: PR #15870, incremental since
|
|
claude-review reviewed Code review: PR #15870, incremental since
|
test_merge_holds_sync.py scrapes `uses: ./.github/actions/<dir>` from the workflow text, comments included, and read the comment's `./.github/actions/...` as an action directory that does not exist. Name the calls in words instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #15826
session: Simplify E2 A
Summary
Runs
/simplifyon the first quarter of.github/workflows/pr-require-checks.yml(E2 chunk S071, part 1 of 4). The file had 7759 lines atorigin/main; part 1 owns lines 1-1940, so the header and the jobs that start there:mark-lanes,select-testsandlint-repo. Every edit is a comment: the parsed workflow, and so every trigger, job, step,if:, env line, output, permission and printed line, is unchanged.Fix
Comments that misstated the code:
if:exceptci-statusand its aliasreport-ci-status(header andselect-tests), notci-statusalone.select-testspermissions: the queue-hold step reads only the pull request (queueHoldstakes{pull, tracker, lanes}), not its head's commit statuses, andpull-requests: readis granted to other jobs too; the queue-hold read leavesok=trueonce the module and wrapper read (the tracker config is optional).select-testsfilter groups:manifestsandlint_shelldo not repeat the toolchain paths either, so the comment names the groups that do.lint-repo's header said only actionlint and two schemas gate on the diff; eight steps carryrun_workflows == 'true', now listed.pull_requestevent, not onlymerge_group; the lane-coverage step also checks that every gate step feeds its aggregator; everyuses: ./.github/actions/...carries the zizmor self-repository ignore, not onlydownload-full-history.Moved: the 43-line
select-testsprose sat abovemark-lanes:and spoke of "every row below", about 750 lines before those rows; it now sits directly aboveselect-tests:, reworded where it was wrong (run_shellhas nodocs_onlyterm; the detector self-test runs before the detector, not first).Also: history narration ("the previous shape", "was pinned to nothing", "as before", an incident timeline) is rewritten as present-tense rationale with the issue references kept; a garbled dispatch sentence in the header is rewritten against
pr-merge.yml; three repeated paragraphs are dropped; about fifteen comments that broke mid-sentence or ran past the width (up to 112 columns) are rewrapped.Left out to stay under the 400-line cap, or because they change behavior: the queue-hold comment's rewrap (only its one wrong clause is fixed), the check-plugins budget figure (see Follow-ups),
select-tests' unusedstatuses: read, and the last mark-lanes retry's 15 s sleep beforeexit 1.Verification
actionlint .github/workflows/pr-require-checks.yml: clean;node scripts/check-artifact-retention.mjs: 152 upload steps match.scripts/check-docs-only-gate.sh --check: "73 reference(s) across 9 consumer job(s), all in the sanctioned form".scripts/check-lane-coverage.sh --check: "all 12 lane(s) reachable from ci-status.needs; all 83 gate step(s) fed to the aggregator".node --test --test-concurrency=4on the 30 node test files that name this workflow: 4034/4034 pass.scripts/run-test-file.shon the 36 shell test files that name it: all FAIL=0. Two (run-hygiene-gate.test.sh,ci-test-node-stop-commands.test.sh) need PyYAML, which this machine's python3 lacks; they pass underuv run --with pyyaml(PASS=10, PASS=3)..githubsuite (ci-status).Follow-ups
select-testsgrantsstatuses: read, which no step uses since the queue-hold step stopped reading commit statuses.2, held at the floor of 3, but the rule above it gives ceil(max(1.5 x 81, 1.1 x 94) / 60) = 3; worth re-measuring with check-managed-files, which has no budget row.run_workflows, and gates onrun_full == 'false'while the steps gate onrun_workflows == 'true'.Save the pip cachelacks thesteps.pip_cache.outcome == 'success'termSave the npm cachehas.Related
Part of #15694 (E2, the /simplify epic's workflow group). Parts 2-4: S072 (#15830), S073 (#15851), S074.
🤖 Generated with Claude Code