Skip to content

perf(ci): oversubscribe Fast Gate nextest to 8 threads with native_build capped at 2 (#3071) - #3082

Merged
zackees merged 3 commits into
masterfrom
perf/3071-fast-gate-nextest-oversubscribe
Oct 30, 2026
Merged

zackees merged 3 commits into
masterfrom
perf/3071-fast-gate-nextest-oversubscribe

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

What

Fast Gate's nextest step now runs --test-threads 8 on the 4-vCPU runner, and every native_build::* test is placed in a nextest test group capped at 2 concurrent tests.

RED

ci/test_nextest_oversubscription.py (commit b40f3f50a) fails on origin/master:

FAIL: test_native_build_group_is_capped_at_two
AssertionError: 'native-build' not found in {}
FAIL: test_both_profiles_put_native_build_in_the_group
AssertionError: profile default has no native-build group override
ERROR: test_default_threads_oversubscribe_the_ci_runner
AttributeError: module 'oversubscription_gate' has no attribute 'DEFAULT_TEST_THREADS'
Ran 4 tests - FAILED (failures=2, errors=1)

ci/test_rust_execution.py::test_workspace_uses_bounded_runner_then_all_doctests pins the literal --test-threads 4 and is updated in the GREEN commit.

GREEN

91445826d — the four new cases and the updated ci/test_rust_execution.py pass; uv run ci/local_gate.py --only self-test ends == 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 5 native_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

…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
@zackees
zackees marked this pull request as ready for review October 30, 2026 17:33
@zackees
zackees added this pull request to the merge queue Oct 30, 2026
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Worker tick: the PR's own lanes are green end to end on 1932765749 — Build 🧱 / Fast Gate ⚡ 5m43s, CI Gate ✅, Format 🔍 / checks, Validate Data 🕵️, CI Mode 🛂, Event Data 🔎. Marked ready and handed off to the coordinator with auto-merge on.

Still post-merge observation only: the issue's second acceptance item (no native_build::* timeout across ≥5 merge-queue runs) needs the queue runs after this lands, which the coordinator can read from ci/queue_report.py.

@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Evidence for the draft: the 8-thread Fast Gate ran clean on this branch.

  • Run 41096657304 (head 91445826d, 2026-10-30 17:11Z): Build 🧱 / Fast Gate ⚡ passed, 17:12:13Z → 17:17:56Z.
  • Unit Tests (changed crates) 🧪 inside it: 17:14:34Z → 17:17:50Z (196 s) at --test-threads 8 on the 4-vCPU runner, zero timeout / timed out lines in the step log, i.e. no native_build::* timeouts.
  • All non-skipped checks on the PR pass (6 pass, 29 skipped by path filters).

The remaining acceptance item (no native_build::* timeout across at least 5 merge-queue runs) can only be observed after merge, so I am marking this ready and turning on auto-merge; the queue runs supply that observation.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 30, 2026
@zackees
zackees added this pull request to the merge queue Oct 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 30, 2026
@zackees
zackees added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit 08749f4 Oct 30, 2026
35 checks passed
@zackees
zackees deleted the perf/3071-fast-gate-nextest-oversubscribe branch October 30, 2026 18:45
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