Skip to content

ci: rank concurrent merge-queue runner selections so simultaneous groups can't overcommit the Dell - #5312

Merged
zackees merged 2 commits into
masterfrom
infra/select-race
Nov 20, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/select-race

Conversation

@zackees

@zackees zackees commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Concurrent merge-group selectors could exceed MQ_RUNNER_MAX_RUNS because a successful selector released its reservation before its heavy-job labels appeared in the jobs API. Keep that run's provisional Dell commitment until the route is visible. Earlier unresolved queued/in-progress runs retain priority by creation time, then run ID; visible live Dell runs count regardless of age.

This closes the successful-selector visibility gap in the existing ranking without a lock, jitter, another API request, or changes to the default three-run busy-Dell policy. Unknown conclusions also retain reservations. Hosted routing, finished Dell work, failed/cancelled/skipped selectors and terminal runs still release capacity. Vanished-peer/API uncertainty keeps the current selection hosted. Brief under-use during API visibility lag is intentional; arbitrary omission of peers from an otherwise accepted API listing remains a snapshot limitation.

Validation:

  • RED 4a95d4fd3: focused fake-API regressions failed with 21 assertion failures. The same-second race admitted all three recorded IDs when only one slot remained; the recorded pre-heavy-job visibility window also failed.
  • GREEN: uv run --no-project ci/test_select_mq_runner.py passes 110 tests. The burst matrix checks all three selectors independently, querying newest first, across queued/in-progress runs, absent/running/successful/unknown selectors, 0–3 visible commitments and caps 1–3. Exactly the earliest min(3, max(0, cap - committed)) candidates choose Dell.
  • Existing ci: queue on a busy Dell instead of falling back to slower hosted runners #5291 admission cases remain green, including busy-Dell queueing, the default/configured caps and conservative missing-current snapshots. New vanished-peer and same-second cancellation cases pass.
  • uv run --no-project python -m unittest discover -s ci -p 'test_member_pr_routing.py': 30 passed. uv run --no-project ci/test_ci_scope.py: 65 passed.
  • One local clud-review reviewer: clean; focused race regression passed.

Local RED and separate GREEN commits are published together under the focused CI/configuration exception. Rust/C ABI/differential/protocol tiers do not apply to this Python routing change; required PR and merge-queue CI remain unchanged. No native platform implementation changes, so no native-coverage label is selected.

Refs #4839 #4896.

Exact local RED command (exit 1, 21 assertion failures; the vanished-peer and cancellation cases already passed):

uv run --no-project ci/test_select_mq_runner.py \
  InflightAdmissionTest.test_same_second_selectors_reserve_unknown_routes_until_heavy_jobs_appear \
  InflightAdmissionTest.test_recorded_peer_before_heavy_jobs_does_not_fail_probe \
  InflightAdmissionTest.test_vanished_peer_jobs_use_hosted_instead_of_releasing_reservation \
  InflightAdmissionTest.test_cancelled_same_second_run_releases_provisional_reservation

GREEN command uv run --no-project ci/test_select_mq_runner.py exits 0 (110 tests, including all four RED command cases).

Full local lint: timeout 1800s env SOLDR_PORCELAIN=0 ./lint exited 0; final result == lane lint: ok (453.2s). The report wrapper returned an unknown parser verdict, so the exit status and final underlying lint result were checked directly.

Final publication evidence: ./push exited 0, publishing RED and GREEN together at signed head a80ca6ff93777904f4cab934c50db5e7ff4de8a2. Complete prooft evidence includes 19 Ci-Attestation records plus Client-Checks: all six targets' clippy/Dylint, full repository self-tests and data validators, general lint and Linux host tests. Client analysis took 128.9 s; the complete host-test lane took 1,405.7 s. Workspace results: 9,264 passed, six skipped, one leaky (source::async_upload::edge_prop_levels); alternate obs-util: 920 passed. Documentation and Windows GNU test-link checks also passed. The leaky marker was accepted by the existing test profile; it is not represented as an entirely warning-free run. Soldr also warned about its shared broker's differing image and unspecified debug-profile defaults; all lanes completed successfully.

These ci/** changes retain ordinary required PR CI under the base-owned trust-surface policy, regardless of complete local evidence. Hosted PR/MQ results and production simultaneous-selector behavior are not yet observed.

…ups can't overcommit the Dell

Refs #4839 #4896

Ci-Attestation: {"at":1795134889,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":343,"stamp":"55514c657d3f6c60c974bb3f0bd96eb5","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134889,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":343,"stamp":"d53efeb5e5432b04f20b9804610ecfb4","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134889,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":343,"stamp":"474ee799ca7a37bc0c2339e9beee8082","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134889,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":343,"stamp":"9db37f5f6ab44a5e4686f87a9aa0b809","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134530,"gate":"general/all/client-lint","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"20c871aa44dc6314f643ac3bee24f1b4","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134889,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":343,"stamp":"19e74c93e954ff18c97e118b08b2cc20","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134535,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"282775296e475cf1fc9b209fe3707839","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134535,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"fd5baa9c7f63c71d3df3245f2e7efd90","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134533,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"2d1af13c324b8e9050b966d2555eba8c","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134534,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"72fbbd995e48c5b5daf728d9c745473b","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134531,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"52a92ffe38bbbb956dfa38c7033df407","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134531,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"a9965fc3990fa0d5f1e07e706db19ffe","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134534,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"2ef01018502291ab08b36609e9695cec","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134534,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"5d4ac9e91d135e66ca974cbe0205dd12","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134532,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"a0fa2d1bab51b106823b2f6903ac3d74","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134532,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"993cf0423b16595890b16195a359e60f","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134531,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"6e93cbbfccec06a56b166a60b3d5ea67","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795134531,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"198f913dcac75b63f720562d3078edc840bd572dd7dbf33cca1c6fd5676eecad","lane":"client-lint","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":130,"stamp":"f78a076c93513403f55e575633b26834","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}
Ci-Attestation: {"at":1795136298,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"6b007c6042d18e3eff27e52a8df915ff60246966689681f53c0a93b422c24adf","lane":"client-test-x86_64-unknown-linux-gnu","parents":["4a95d4fd37f8a736dd66136a178e8b2adc6586d8"],"secs":1406,"stamp":"d6ee6cab7a6eb502aef1d39b04b99efc","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"773b235f63fb02f9bad6d258cd859a166b490a84","coverage":"all-tracked-applicable-files","diff":["ci/select_mq_runner.py","ci/test_select_mq_runner.py","docs/ci-tooling.md"],"head":"8f94174217d80963827aac75d070b6df91432893","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"c01782705aac25ec9e0a2ad725414539d07660a27eade4d3cb77e561c88f9937","tree":"02c0e2b2d725f789ff882bd916b83ada02e1a866"}}
@zackees
zackees enabled auto-merge November 20, 2026 01:00
@zackees
zackees added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit 168d102 Nov 20, 2026
46 checks passed
@zackees
zackees deleted the infra/select-race branch November 20, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant