Skip to content

ci: run every pull request check in one queued CI run - #8356

Merged
oferchen merged 1 commit into
masterfrom
ci/one-pr-at-a-time
Nov 10, 2026
Merged

oferchen merged 1 commit into
masterfrom
ci/one-pr-at-a-time

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

Make each pull request one CI run, so the FIFO queue gives one pull request the whole runner pool at a time. No test is dropped and no required context changes.

Before: every workflow had its own pr-queue. CI ran for one pull request while the upstream testsuite ran for another, splitting the pool across pull requests. Measured in the first ~70 minutes after the queue landed: 0 of 25 CI runs finished and 1 of 25 testsuite runs.

After: ci.yml calls the four upstream testsuite legs and the two Windows bake legs, so a pull request's whole check set is a single run in a single queue.

  • Testsuite legs: same caller job ids (upstream-testsuite, -tcp, -macos, -macos-tcp) calling the same reusable workflows with the same inputs. The <caller job> / <reusable job> contexts the ruleset requires are unchanged. They run on pull requests only; master pushes skip them, as before.
  • upstream-testsuite-3.5.1.yml: no longer triggers on pull_request, so each context has exactly one publisher. It keeps the nightly schedule (README badge) and bootstrap dispatch.
  • windows-nightly-long-path / case-insensitive: move from pull_request to workflow_call, keep their schedules, and drop queue: max.
  • Superseded commits: queue: max cannot cancel a run whose commit has since been replaced. The merge train cancels those runs, and runs whose required job already failed.

Tests

tools/tests/test_uts_badge_workflows.py now asserts the new design:

  • ci.yml publishes every required testsuite context.
  • ci.yml and the gate call the legs identically: same job ids, reusable workflow and inputs, and ci.yml's manifests are the gate's non-bootstrap paths.
  • Only ci.yml and the gate call the testsuite, and the gate has no pull_request trigger.
  • One queued run carries every pull request check, and the bake legs are workflow_call only.

A mutation (pointing one ci.yml leg at another leg's manifest) fails test_ci_and_the_gate_call_the_testsuite_identically.

Test plan

  • python3 -m unittest tools.tests.test_uts_badge_workflows tools.tests.test_uts351_manifests: 18 OK, 1 skipped (needs the extracted 3.5.1 tree).
  • tools/ci/check_pr_check_name_uniqueness.py: 80 pull_request check names, each with one publisher.
  • Full tools/tests discovery: the only error, test_run_interop_ports, also fails on unchanged master; it is environment-bound.
  • This PR's own run: every required context reports from the single CI run.

The pull request queue held one run per workflow, so CI for one pull
request ran beside the upstream testsuite for another and the runner
pool was split between pull requests. ci.yml now calls the upstream
testsuite legs (same caller job ids, so the required contexts are
unchanged) and the two Windows bake legs, so a pull request is one run
and the queue gives it the whole pool. upstream-testsuite-3.5.1.yml
keeps the nightly badge and bootstrap dispatch; the Windows legs keep
their schedules. No test is dropped.
@github-actions github-actions Bot added the ci label Nov 10, 2026
@oferchen
oferchen merged commit 45af2ca into master Nov 10, 2026
3 checks passed
@oferchen
oferchen deleted the ci/one-pr-at-a-time branch November 10, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant