Repository navigation
Closed
Description
Summary
Four parity tests from our ports are still marked SLOW by nextest's 10 s budget at the reduced parity level (the remaining rows of part A of #2888 that are ours; #3103 and #3110 fixed the other two):
| Test | Time | Source | Cause |
|---|---|---|---|
output::encoder_bind_parity::callers_match_c_over_sequences |
~15 s (SLOW on master 1b3a74f) | #2511 | 20,000 proptest cases written as a struct literal, so OBS_PARITY_CASES doesn't scale it |
source::deinterlace_pacing_parity::buffered_walk_sequences |
~14 s (SLOW on 1b3a74f) | #1954, #2009 | 2,000 fixed sequences, each run through five walk variants |
source::deinterlace_pacing_parity::sequences_reach_every_branch |
~12 s (SLOW on 1b3a74f) | #1954 | 2,000 fixed sequences, each run through the C and the Rust model |
source::video_tick_parity::parity_proptest_tick_runs |
10.4 s in #3012's queue run | #2448 | to measure: not SLOW on 1b3a74f |
Plan
One PR for the four.
- Measure each test alone in the debug build at
OBS_PARITY_CASES=reduced, and profile where a case spends its time. - First remove per-case cost that isn't the test (setup, repeated building, clones, allocations), keeping the case counts, as test: Bound our four slowest parity tests (#2891) #2898 did for
audio_discard_parity. - Only then reduce counts, through
obs_c_oracle::parity::cases/parity::keep/scaled_size, so thefulllevel (local runs, nightly, release) keeps the written counts. - Rebuild each mutant its source PR reported and run the test alone at the reduced level, 5 runs each, and check it is still killed.
sequences_reach_every_branchkeeps its assertion that every branch is reached more than 100 times.
Acceptance
- Each test takes about 5 s or less in the CI debug build at the reduced level, at least well under 10 s; the PR reports before and after.
- The source PRs' mutants are still killed at the reduced level (table in the PR).
- The "Test cost" line (testing-policy "Test time").
- No change outside these test files and their shared test helpers.
Refs #2888
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
rdoupe commentedon Oct 31, 2026
Claiming: #3167
OBS_PARITY_CASES=reduced) and profile where each case spends its time.parity::cases/parity::keep/scaled_size, so thefulllevel keeps the written counts.One PR for the four, expected today (2026-10-31).
rdoupe commentedon Oct 31, 2026
Fixed by PR #3240 (merged through the queue as dde8cf6), together with #3173 (for #3172), which had already built proptest and its generator at opt-level 3.
callers_match_c_over_sequences,sequences_reach_every_branchandparity_proptest_tick_runsmeasured about 1 s or less locally (reduced level, debug build).buffered_walk_sequences: the pacing model keeps pending arrivals in place withretain()instead of building a new Vec each tick, and the 2,000 sequences are formatted only when an assertion fails. It went from 4.16 s to 2.93 s (median of 6 alternating runs). No case count, strategy or assertion changed, so the source PRs' mutants meet the same tests.What is left: the CI-runner time of
buffered_walk_sequences. The PR estimates 8 to 10 s there, the budget is 10 s, and the queue run's Fast Gate passed. I could not read its per-test times, so the CI figure is not confirmed. No follow-up issue: nothing else in this issue's scope is open. If that test shows as SLOW in a later Fast Gate run, file a new issue for it with the CI time.Refs #2888
test: Cut per-tick copies in the 2x pacing model (obs-rust#3240)