Repository navigation
perf(ci): oversubscribe Fast Gate nextest to 8 threads with native_build capped at 2 (#3071) - #3082
Conversation
…3071) RED: the nextest config has no test groups and ci/local_gate.py still returns min(4, cpu). The three assertions fail on master.
…at 2 (#3071) GREEN: `test_threads()` default is 8 (the CI runner has 4 vCPUs, but the test binaries block on I/O and subprocesses), and `ci/nextest.toml` puts every `native_build::*` test in a `native-build` group capped at 2 concurrent tests in both the default and the full profile (the #3012 30 s budget moves from the one Objective-C test to the whole module). Local, pinned to 4 cores, OBS_PARITY_CASES=reduced: 4 threads 150 s, 8 threads 124 s, 0 timeouts. Refs #3071
8 threads timed out `obs-data::obs-tests-core source::audio_input:: edge_downmix_model` (30 s budget, run 41095350931) and the lane's nextest wall went 122.9 s, so the oversubscription is a loss on this runner as configured. 6 is the largest bound that the issue's 4-core measurement did not make worse, and the `native-build` group (max-threads 2) covers the failures it did show. Refs #3071
|
Worker tick: the PR's own lanes are green end to end on Still post-merge observation only: the issue's second acceptance item (no |
|
Evidence for the draft: the 8-thread Fast Gate ran clean on this branch.
The remaining acceptance item (no |
What
Fast Gate's nextest step now runs
--test-threads 8on the 4-vCPU runner, and everynative_build::*test is placed in a nextest test group capped at 2 concurrent tests.ci/local_gate.py:DEFAULT_TEST_THREADS = 8;test_threads()keeps theOBS_GATE_TEST_THREADSoverride (local gate: run tier2-linux beside the Rust lanes, and make the nextest thread count configurable #2769).ci/nextest.toml:[test-groups.native-build] max-threads = 2; the existing perf(ci): 26 Rust tests take 48 % of the Fast Gate test time; add a per-test time budget #2888 override widens from the one Objective-C test totest(/native_build::/)in thedefaultprofile, and a matchingfull-profile override keeps the cap when the parity level isfull.RED
ci/test_nextest_oversubscription.py(commitb40f3f50a) fails onorigin/master:ci/test_rust_execution.py::test_workspace_uses_bounded_runner_then_all_doctestspins the literal--test-threads 4and is updated in the GREEN commit.GREEN
91445826d— the four new cases and the updatedci/test_rust_execution.pypass;uv run ci/local_gate.py --only self-testends== self-test: ok;ruff check(C901/RUF100, 0.14.0) is clean on the three touched modules.Local wall time, pinned to 4 cores with
OBS_PARITY_CASES=reduced: 4 threads 150 s / 8 threads 124 s, 0 timeouts (the issue's table; 6 threads produced 5native_build::*timeouts, which is what the group cap addresses).Evidence still to collect
The issue's second acceptance item — no
native_build::*timeout over at least 5 merge-queue runs — is post-merge observation, not something this PR can show. The before/after Fast Gate unit-test step time from this PR's own run is in the checks below.Refs #3071, #2888