You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Recover PR UT Coverage when a selected runner pool stalls - #508
Use spare CS capacity for MatrixOne main and 4.2-dev UT Coverage. The hosted preflight reads four sites in parallel under a 15-second budget. Two observed idle runners can take work through the shared CS label. Otherwise the two groups divide the verified online and cold slots. With one verified slot for two groups at initial placement, group 0 takes CS and group 1 can use Shanghai. An incomplete inventory can still supply CS offers. Unmatched groups keep the shared queue. Read-only capacity setup
Cold capacity accounts for CPU, memory, Pod limits, pending ARC demand and space for a whole DirectPV work volume. The collector overlaps the two ARC set lists and reads each site’s storage inventory alongside its nodes and Pods. It gives slower online observations six seconds when two cold sites are already available. A removed host counts as exhausted only when ARC also confirms no spare registered runner. Incomplete reads and ambiguous cache-node identities keep the shared CS fallback available. Each group owns one reservation, including on the shared path. This costs one initial child dispatch per group, admission polling and artifact transfer.
Any preflight label older than three minutes is refreshed before dispatch. The first queue recheck is at three minutes for an exact pool and five minutes for the shared label. A group already at its selected site keeps its place during the initial five-minute window. A stalled reservation can then try another CS pool. If only one CS slot remains and the pool previously selected for the sibling shows startup progress, the waiting group can take that slot. The selector retains this hint only for its current reservation. When the startup is at an unrelated pool, Shanghai can serve the overflow group. A lone group prefers available CS capacity. The sibling grant lookup is needed only when it changes the route.
A healthy bound runner gets time to register on a cordoned node or a node with a new NoSchedule taint. Backoff, an unhealthy node and an untolerated NoExecute taint end that protection. After a handoff from an exact CS pool, a replacement with feasible startup demand has up to 30 minutes from its own dispatch before another verified cold slot can take over. A ready alternative can take over at a checkpoint.
Each group can try up to four placements within the original 84-minute queue budget. While another placement is possible, the selector rechecks capacity every five minutes after the initial startup window. A live reservation keeps its place when no alternative is confirmed. On long waits, GitHub assignment polling backs off to one minute with a final check before expiry. A failed-only rerun first confirms that its previous grants are terminal, then takes a fresh capacity snapshot. Selection and waiting for UT completion share the original six-hour hosted job limit. A handoff checks assignment and a current destination before cancellation. A rejected cancellation gets a fresh placement check. Repeated definite rejections keep the current reservation. Slow termination confirmation also refreshes the next destination. The selector rechecks the parent before publishing one grant. A GitHub cooldown resumes on the same reservation and counts against the queue budget. Both sites report the same UT step and support checkout with the workflow token.
Verification
On 808163d an isolated selector refreshed a 12-minute-old shared label using live CS inventory. The drill held the job observation at queued, injected one rejected cancellation (HTTP 429, 2-second cooldown), and withdrew the alternative offer. The original cs-mty-nc-n1-pr-v1 worker received the group's only grant. GitHub recorded one child and the sample job succeeded. Selector · CS worker
The current Linux suite passed 250 tests with three existing expected failures. In a replay with all 11 CS pools observed, refreshing the old shared decision changed time to grant from 6m30s to 1m30s. Revalidating a rejected cancellation preserved JED and changed 7m30s to 4m30s. The 83 historical assignment samples retained their grant times and GitHub request counts. PR workflow validation
On 1f722b1 a live exercise completed two withdrawals and granted the replacement. The isolated harness kept two test reservations queued and supplied a stuck ARC startup observation. It replaced the 30-minute registration window with 120 seconds. GitHub confirmed both cancellations in sequence, then group 1 acquired cs-ruh-nc-n2-pr-v1 and group 0 acquired cs-mty-nc-n1-pr-v1. The replacement was held for 139.3 seconds. Each group published one grant and the two sample coverage profiles merged. GitHub-hosted jobs also queued independently of CS capacity. The inventory job queued for 11m31s and the final merge queued for 24m21s before running for 24 seconds. Controlled handoff · Merged sample
On 1f722b1 the isolated MatrixOne Actions run used the exact collector and worker pool checks. Both sampled jobs took real capacity, group 0 on cs-mnl2-nc-n1-pr-v1 in 13 seconds and group 1 on cs-mty-nc-n1-pr-v1 in 10 seconds, measured from job creation to start. The hosted inventory job itself queued for 101 seconds and its collector took 8.83 seconds. Native placement
Replayed the observed waits for 83 CS workers from both protected branches (49 main, 34 release) through the selector while withholding capacity evidence. CI main at 51450fb and this revision both admitted all 83. The earlier PR head admitted 70. All 13 waits over 30 minutes eventually passed UT in production. The longest took 58m09s. Production sample
With production timers, an unregistered MTY replacement gave way to RUH at 33 minutes. A healthy MTY replacement registering at 22 minutes kept its reservation. A separate replay made RUH available only from minute 31 to 42. The group acquired RUH at minute 35. An assignment at 83m47s still obtained its grant. With a removed host, the collector distinguished confirmed exhaustion, a surviving registration and an unavailable ARC API.
On 1f722b1 the Linux scripts suite passed 248 tests with three existing expected failures. An independent allocation check exercised 6,880 two-group decisions. PR workflow validation
On 2bdb4ce the isolated Actions run read real capacity in two CS sites. The harness held group 0's grant, forced group 1's first reservation to stay queued and injected the capacity transition using 30- and 60-second checkpoints. Group 1 cancelled its JED reservation, ran on cs-ruh-nc-n0-pr-v1 and received its grant before group 0 dispatched. Group 0 then ran on cs-mty-nc-n1-pr-v1. Each group got one grant and both sample profiles merged. Run · Group 1 · Group 0 · Merged profile
With production timers in a controlled Linux replay, group 1 acquired MNL2 at 11 minutes while group 0 took 22 minutes to register on MTY after its handoff. On aee326f the same slow-start replay reached the 30-minute deadline. Two groups already on different single-slot sites both acquired runners at 3m30s in five replays, with zero withdrawals or sibling reads. On aee326f the slower group took 6m30s. Cordoning a healthy node preserved the same four-minute registration. With a third-party startup, the groups used CS and Shanghai when their common pool failed before or after the first checkpoint.
On 2bdb4ce the Linux scripts suite passed 244 tests with three existing expected failures. All 165 focused tests passed on macOS. An independent allocation check covered 30,096 first-checkpoint decisions with overlapping or distinct held pools, partial inventories, cold slots and idle runners. PR workflow validation
Update the MatrixOne dispatch endpoint on main to the common CI worker and update both protected caller pins. The endpoint must understand exact CS pool labels before the callers start issuing them. The final canary used an isolated MatrixOne branch. Production still uses its current pins.
XuPeng-SH
changed the title
Use one native UT Coverage queue across CS and Shanghai
Select native UT Coverage runners using verified CS capacity
Nov 29, 2026
XuPeng-SH
changed the title
Select native UT Coverage runners using verified CS capacity
Recover PR UT Coverage when a selected runner pool stalls
Nov 29, 2026
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
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.
Goal
Use spare CS capacity for MatrixOne
mainand4.2-devUT Coverage. The hosted preflight reads four sites in parallel under a 15-second budget. Two observed idle runners can take work through the shared CS label. Otherwise the two groups divide the verified online and cold slots. With one verified slot for two groups at initial placement, group 0 takes CS and group 1 can use Shanghai. An incomplete inventory can still supply CS offers. Unmatched groups keep the shared queue. Read-only capacity setupCold capacity accounts for CPU, memory, Pod limits, pending ARC demand and space for a whole DirectPV work volume. The collector overlaps the two ARC set lists and reads each site’s storage inventory alongside its nodes and Pods. It gives slower online observations six seconds when two cold sites are already available. A removed host counts as exhausted only when ARC also confirms no spare registered runner. Incomplete reads and ambiguous cache-node identities keep the shared CS fallback available. Each group owns one reservation, including on the shared path. This costs one initial child dispatch per group, admission polling and artifact transfer.
Any preflight label older than three minutes is refreshed before dispatch. The first queue recheck is at three minutes for an exact pool and five minutes for the shared label. A group already at its selected site keeps its place during the initial five-minute window. A stalled reservation can then try another CS pool. If only one CS slot remains and the pool previously selected for the sibling shows startup progress, the waiting group can take that slot. The selector retains this hint only for its current reservation. When the startup is at an unrelated pool, Shanghai can serve the overflow group. A lone group prefers available CS capacity. The sibling grant lookup is needed only when it changes the route.
A healthy bound runner gets time to register on a cordoned node or a node with a new
NoScheduletaint. Backoff, an unhealthy node and an untoleratedNoExecutetaint end that protection. After a handoff from an exact CS pool, a replacement with feasible startup demand has up to 30 minutes from its own dispatch before another verified cold slot can take over. A ready alternative can take over at a checkpoint.Each group can try up to four placements within the original 84-minute queue budget. While another placement is possible, the selector rechecks capacity every five minutes after the initial startup window. A live reservation keeps its place when no alternative is confirmed. On long waits, GitHub assignment polling backs off to one minute with a final check before expiry. A failed-only rerun first confirms that its previous grants are terminal, then takes a fresh capacity snapshot. Selection and waiting for UT completion share the original six-hour hosted job limit. A handoff checks assignment and a current destination before cancellation. A rejected cancellation gets a fresh placement check. Repeated definite rejections keep the current reservation. Slow termination confirmation also refreshes the next destination. The selector rechecks the parent before publishing one grant. A GitHub cooldown resumes on the same reservation and counts against the queue budget. Both sites report the same UT step and support checkout with the workflow token.
Verification
808163dan isolated selector refreshed a 12-minute-old shared label using live CS inventory. The drill held the job observation at queued, injected one rejected cancellation (HTTP 429, 2-second cooldown), and withdrew the alternative offer. The originalcs-mty-nc-n1-pr-v1worker received the group's only grant. GitHub recorded one child and the sample job succeeded. Selector · CS worker1f722b1a live exercise completed two withdrawals and granted the replacement. The isolated harness kept two test reservations queued and supplied a stuck ARC startup observation. It replaced the 30-minute registration window with 120 seconds. GitHub confirmed both cancellations in sequence, then group 1 acquiredcs-ruh-nc-n2-pr-v1and group 0 acquiredcs-mty-nc-n1-pr-v1. The replacement was held for 139.3 seconds. Each group published one grant and the two sample coverage profiles merged. GitHub-hosted jobs also queued independently of CS capacity. The inventory job queued for 11m31s and the final merge queued for 24m21s before running for 24 seconds. Controlled handoff · Merged sample1f722b1the isolated MatrixOne Actions run used the exact collector and worker pool checks. Both sampled jobs took real capacity, group 0 oncs-mnl2-nc-n1-pr-v1in 13 seconds and group 1 oncs-mty-nc-n1-pr-v1in 10 seconds, measured from job creation to start. The hosted inventory job itself queued for 101 seconds and its collector took 8.83 seconds. Native placement51450fband this revision both admitted all 83. The earlier PR head admitted 70. All 13 waits over 30 minutes eventually passed UT in production. The longest took 58m09s. Production sample1f722b1the Linux scripts suite passed 248 tests with three existing expected failures. An independent allocation check exercised 6,880 two-group decisions. PR workflow validation2bdb4cethe isolated Actions run read real capacity in two CS sites. The harness held group 0's grant, forced group 1's first reservation to stay queued and injected the capacity transition using 30- and 60-second checkpoints. Group 1 cancelled its JED reservation, ran oncs-ruh-nc-n0-pr-v1and received its grant before group 0 dispatched. Group 0 then ran oncs-mty-nc-n1-pr-v1. Each group got one grant and both sample profiles merged. Run · Group 1 · Group 0 · Merged profileaee326fthe same slow-start replay reached the 30-minute deadline. Two groups already on different single-slot sites both acquired runners at 3m30s in five replays, with zero withdrawals or sibling reads. Onaee326fthe slower group took 6m30s. Cordoning a healthy node preserved the same four-minute registration. With a third-party startup, the groups used CS and Shanghai when their common pool failed before or after the first checkpoint.2bdb4cethe Linux scripts suite passed 244 tests with three existing expected failures. All 165 focused tests passed on macOS. An independent allocation check covered 30,096 first-checkpoint decisions with overlapping or distinct held pools, partial inventories, cold slots and idle runners. PR workflow validationRollout
Update the MatrixOne dispatch endpoint on
mainto the common CI worker and update both protected caller pins. The endpoint must understand exact CS pool labels before the callers start issuing them. The final canary used an isolated MatrixOne branch. Production still uses its current pins.