Skip to content

fix(ci): tolerate active queue probe visibility races (Refs #5181, #5135) - #5186

Merged
zackees merged 2 commits into
masterfrom
fix/5181-mq-probe-races
Nov 19, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/5181-mq-probe-races

Conversation

@zackees

@zackees zackees commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Refs #5181. Refs #5135.

Busy merge queues were sent to hosted runners when the active-run API returned a short page whose length disagreed with total_count, or when a peer selector had completed before its heavy jobs were visible. Active-run collection now follows full pages to a terminal short page and retries count/ID mismatches from page one, at most twice under the existing request budget and deadline. A consistent count or two consecutive matching unique-ID sets completes the snapshot. All observations remain available so a terminal run cannot regain a reservation through a stale duplicate.

A completed peer with no visible live Dell jobs releases its undecided reservation. Queued/in-progress Dell-labelled jobs still consume capacity. Real API errors and unresolved collections still select hosted, and failures name the run/status or jobs probe and the sanitized reason. No workflows, repository variables or host configuration change.

The selection logs for jobs 135252064776, 135255344431, 135255351789 and 135255359883 confirm the short-page count-mismatch path, rather than the page-limit path. Job 135263147877 failed while inspecting peer 44435792436: its selector finished at 01:18, but its heavy jobs started at 01:26, after the 01:22 probe. The heavy-labels decision is an Actions output consumed by Build, which REST jobs do not expose. The fixture records real identities/times/labels and explicitly replays the missing response shape; the original failing response bodies and exact counts were not retained.

RED eb58011: uv run --no-project ci/test_select_mq_runner.py ran 97 tests with 12 failures and 3 errors. GREEN: the same command passes all 98 tests, including count drift, page shifts, bounded instability, completed-peer visibility, terminal duplicates, live Dell commitments and sanitized API diagnostics. Local clud-review is clean after its terminal-duplicate finding was addressed. The standalone ./lint invocation stopped at C901; the helper extraction fixes it and targeted ruff C901/RUF100 passes. Publication through ./push succeeded on signed head f80ffa0. Its complete client-lint lane passed (21.4 s), including clippy and Dylint on all six targets; repository self-tests/data validation passed; client-test passed (847.6 s), including all 9,118 workspace tests and the additional feature configurations. Optional Swift evidence was unavailable (exit 75); this change has no Swift files. Rust/C ABI and protocol tiers do not apply to this focused Python CI fix. Post-deployment Dell routing and utilization remain unmeasured.

)

Ci-Attestation: {"at":1795053756,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":226,"stamp":"4f7a6fc70c6968c34b70f2d6744c22fc","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053756,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":226,"stamp":"316260c90f4670e7e10c1cf7db0be339","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053756,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":226,"stamp":"ab80d15171d22971f3baa36020cba985","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053756,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":226,"stamp":"4339fee14d74e855f16b7d99c379bf86","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"general/all/client-lint","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"2101f562938f902112fc4b436cfd401d","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053756,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":226,"stamp":"e6d3494dd8c060825615e25768e18d34","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"7920bbfb7946b09988e1249d23ea7470","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"313e0eb66c52996475dbef09baba82df","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"38e0a926a7c99190738be9eaa3c3b306","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"97f2c2a038a934d31dcf168bfbb3c55d","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"6afaf5091ac2476c92c98971d108d8ce","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"96e786a1a8fe23a8110cba51337b0d75","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"da14645444ebb67fcb044b8eab1937ff","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"83ef7063b25019ef428c436f9e850d79","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"e33457877edb587322bf76a09241b81b","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"40ef2eba3136623e1f4ae51934ab3d8a","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"e1f470418d778febf17d6c3c59b9752e","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795053529,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"35a3e2e13ae98b1e17a0dded620323f75547ad660c4716efb98e772e834570c2","lane":"client-lint","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":21,"stamp":"374fb74f13ef89b6b68eebd457e75beb","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}
Ci-Attestation: {"at":1795054604,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"0babf01eaeea125b95322ae4cb082eba680866422a21164484055e3ae0bb2aea","lane":"client-test-x86_64-unknown-linux-gnu","parents":["eb5801164017a04ae9291e978b44e5532154d90c"],"secs":847,"stamp":"04d9cf16dd2bc6ddc072173bb61b9064","tree":"884c76495e33943c18fa664302402f5baea1235e","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"66483e5ef1c34d3222ae85a8028b09598dafcd2f","coverage":"all-tracked-applicable-files","diff":["ci/fixtures/mq-probe-races.json","ci/select_mq_runner.py","ci/test_select_mq_runner.py","docs/ci-tooling.md"],"head":"41b080feebbc14aa11e196d7184f15e04d82d112","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":"2ca66c5739f02c9179f4f28e4658cd4be66f53673219a5dd5ec9663919954fd9","tree":"884c76495e33943c18fa664302402f5baea1235e"}}
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees enabled auto-merge November 19, 2026 02:17
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees added this pull request to the merge queue Nov 19, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 19, 2026
@zackees
zackees added this pull request to the merge queue Nov 19, 2026
Merged via the queue into master with commit ccda709 Nov 19, 2026
43 checks passed
@zackees
zackees deleted the fix/5181-mq-probe-races branch November 19, 2026 03:19
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