Skip to content

test: Bound our four remaining slow parity tests (#2888) #3167

Closed

Description

@rdoupe

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.

  1. Measure each test alone in the debug build at OBS_PARITY_CASES=reduced, and profile where a case spends its time.
  2. 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.
  3. Only then reduce counts, through obs_c_oracle::parity::cases / parity::keep / scaled_size, so the full level (local runs, nightly, release) keeps the written counts.
  4. 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_branch keeps 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

Activity

  1. added
    infra
    on Oct 31, 2026
  2. rdoupe commented on Oct 31, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #3167

    1. Measure the four tests alone (debug build, OBS_PARITY_CASES=reduced) and profile where each case spends its time.
    2. Remove per-case cost that isn't the test first (setup, repeated building, clones), keeping the counts.
    3. Then reduce counts through parity::cases / parity::keep / scaled_size, so the full level keeps the written counts.
    4. Rerun the source PRs' mutants (obs-output: Port the encoder binding checks #2511, obs-source: Port the 2x deinterlace frame pacing #1954/bug: libobs: buffered 2x deinterlacing flags a recycled frame and skips fields after it falls behind #2009, obs-source: Port the source video tick decisions #2448) against each test alone at the reduced level, 5 runs each.

    One PR for the four, expected today (2026-10-31).

  3. added
    ready
    on Oct 31, 2026
  4. rdoupe commented on Oct 31, 2026

    @rdoupe
    CollaboratorAuthor

    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.

    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

  5. added a commit that references this issue on Oct 31, 2026
    dde8cf6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions