Skip to content

test: source_profiler_parity::parity_random_sequences finds Rust/C differences in about half of runs #1930

Closed

Description

@rdoupe

obs_core::source_profiler_parity::parity_random_sequences, from #1887, fails on current master in about half of all runs. Each run draws new random sequences, so it looks flaky, but the failures are real Rust/C differences for some inputs. They are not caused by tests interfering with each other: running only this test file fails 4 of 8 runs, and the whole source_profiler filter fails 7 of 8.

Repro (master c9a6cce13):

cargo test -p obs-data --test obs-tests-core source_profiler_parity

One failure (others fail at the sample check, line 420, or the entry check, line 469):

panicked at rust/obs-core/tests/obs_core/source_profiler_parity.rs:397:13:
state after op 12: Frame(FrameOp { ticks: [Some(981948), Some(487254), Some(117347)], renders: [[], [398317, 452181], [37772, 574487]], gpu_ticks: None, disjoint: false, frequency: 1000000000, null_handles: false })
  left: (false, false, 1, [0, 0], 5)
 right: (false, false, 0, [0, 0], 5)

In the oracle, the profiler is disabled but the timer-range index is 1; on the Rust side it is 0. The sequence before that failure starts with Async(1, …), Reset(2, 1), GpuEnable(true), and then a disjoint GPU frame.

Seed: proptest saves the failing case to rust/obs-core/tests/proptest-regressions/source_profiler_parity.txt. It wasn't checked in, so CI and local runs draw fresh cases every time. Once the cause is fixed, committing that file would pin this case as a regression test.

This came up while running the obs-tests-core suite for #1929; that PR doesn't touch the source profiler.

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    Member

    Claiming: #1930. Plan: reproduce with the saved proptest case, find where the Rust timer-range index diverges from the C on a disabled profiler with a disjoint GPU frame, fix the Rust (RED: commit the regression seed; GREEN: the fix).

  2. added
    claimed
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions