Skip to content

refactor(ci): simplify pr-require-checks.yml workflow (part 1 of 4) - #15870

Merged
kyle-sexton merged 2 commits into
mainfrom
refactor/simplify-pr-require-checks-p1
Nov 13, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
refactor/simplify-pr-require-checks-p1

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15826

session: Simplify E2 A

Summary

Runs /simplify on the first quarter of .github/workflows/pr-require-checks.yml (E2 chunk S071, part 1 of 4). The file had 7759 lines at origin/main; part 1 owns lines 1-1940, so the header and the jobs that start there: mark-lanes, select-tests and lint-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:

  • The contract-only predicate is in every job's if: except ci-status and its alias report-ci-status (header and select-tests), not ci-status alone.
  • select-tests permissions: the queue-hold step reads only the pull request (queueHolds takes {pull, tracker, lanes}), not its head's commit statuses, and pull-requests: read is granted to other jobs too; the queue-hold read leaves ok=true once the module and wrapper read (the tracker config is optional).
  • select-tests filter groups: manifests and lint_shell do 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 carry run_workflows == 'true', now listed.
  • The stale-base step declines on every non-pull_request event, not only merge_group; the lane-coverage step also checks that every gate step feeds its aggregator; every uses: ./.github/actions/... carries the zizmor self-repository ignore, not only download-full-history.

Moved: the 43-line select-tests prose sat above mark-lanes: and spoke of "every row below", about 750 lines before those rows; it now sits directly above select-tests:, reworded where it was wrong (run_shell has no docs_only term; 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' unused statuses: read, and the last mark-lanes retry's 15 s sleep before exit 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=4 on the 30 node test files that name this workflow: 4034/4034 pass.
  • scripts/run-test-file.sh on 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 under uv run --with pyyaml (PASS=10, PASS=3).
  • Left to CI: the full .github suite (ci-status).

Follow-ups

  • select-tests grants statuses: read, which no step uses since the queue-hold step stopped reading commit statuses.
  • The check-plugins budget comment says 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.
  • The "Report docs-irrelevant checks" echo names fewer gated steps than now gate on run_workflows, and gates on run_full == 'false' while the steps gate on run_workflows == 'true'.
  • Save the pip cache lacks the steps.pip_cache.outcome == 'success' term Save the npm cache has.

Related

Part of #15694 (E2, the /simplify epic's workflow group). Parts 2-4: S072 (#15830), S073 (#15851), S074.

🤖 Generated with Claude Code

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>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 06:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T06:06:29.461319Z a74d890 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 15ce368a8b7e6e488ffba09bacb3add430b5ccf7: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15870, incremental since a74d8908

No security issues found. This lane already reviewed an earlier head, so this review was blocking only.

Scope: I read the whole incremental diff for the one listed file, .github/workflows/pr-require-checks.yml. That file is on the trusted-path list and holds the ci-status hold steps, so I read its change with that in mind.

What changed: One line inside a YAML comment block (around line 1441). # Every \uses: ./.github/actions/...` in this repository carriesbecame# Every call of a local action in this repository carries. The line is a comment, so the workflow parses the same as before. No trigger, permissions:block,if:, env:, step, uses:pin orrun:` body changes.

Trust controls: The change does not widen the trusted-trigger check, the lane token scope or the kill switch. It does not weaken any merge hold either, because no ci-status hold step's code changes.

Instruction surface: No standing instruction, block list or allowlist is removed or narrowed.

PR context: It contains no embedded instructions aimed at the lane.

Prior finding: The comment with no line anchor from head a74d8908 reported 0 findings, so there is nothing to carry forward.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 15ce368a8b7e6e488ffba09bacb3add430b5ccf7: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15870, incremental since a74d890

No findings. This round was blocking only, because the lane already reviewed an earlier head.

Scope: I read the whole incremental change to the one listed file, .github/workflows/pr-require-checks.yml, which is a trusted path. The change is one comment line: uses: ./.github/actions/... becomes "a call of a local action". The commit message says the reword keeps that literal path out of a zizmor comment. Only the wording changed. The comment still says what the code does: the next paragraph explains the # zizmor: ignore[self-repository] convention, and nothing here changes a trigger, job, if:, env value, output, permission or run: body.

Closing issue #15826:

  • Behavior unchanged, and job ids and triggers unchanged: still met.
  • The diff edits only the listed file: still met.
  • The pull request stays within 400 changed lines: still met.
  • ci-status green: left to CI. I ran nothing.

Prior findings: the earlier summary comment had no findings, so nothing carries over. The note about the unused statuses: read grant still applies and was not counted then either. The pull request lists it under Follow-ups.

Spend: none. The change is comments only.

Verifier dropped 0 of 0 candidates.

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>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit f7cd039 Nov 13, 2026
68 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/simplify-pr-require-checks-p1 branch November 13, 2026 06:38
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify the pr-require-checks.yml workflow (part 1 of 4)

1 participant