Repository navigation
ci: rank concurrent merge-queue runner selections so simultaneous groups can't overcommit the Dell - #5312
Merged
Conversation
…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"}}
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.
Concurrent merge-group selectors could exceed
MQ_RUNNER_MAX_RUNSbecause 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:
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.uv run --no-project ci/test_select_mq_runner.pypasses 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 earliestmin(3, max(0, cap - committed))candidates choose Dell.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.clud-reviewreviewer: 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):
GREEN command
uv run --no-project ci/test_select_mq_runner.pyexits 0 (110 tests, including all four RED command cases).Full local lint:
timeout 1800s env SOLDR_PORCELAIN=0 ./lintexited 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:
./pushexited 0, publishing RED and GREEN together at signed heada80ca6ff93777904f4cab934c50db5e7ff4de8a2. Complete prooft evidence includes 19Ci-Attestationrecords plusClient-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); alternateobs-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.