Repository navigation
ci: run every pull request check in one queued CI run - #8356
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlcalls 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.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.pull_request, so each context has exactly one publisher. It keeps the nightly schedule (README badge) andbootstrapdispatch.pull_requesttoworkflow_call, keep their schedules, and dropqueue: max.queue: maxcannot 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.pynow asserts the new design:pull_requesttrigger.workflow_callonly.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.tools/testsdiscovery: the only error,test_run_interop_ports, also fails on unchanged master; it is environment-bound.