Repository navigation
infra(obs-c-oracle): scale parity proptest cases by CI level (#2593 part B) - #2991
Merged
Merged
Conversation
…2593) 5 of 6 parity_cases tests fail against the identity stub.
…(GREEN, #2593) parity::cases(n) keeps n when unset/full, 10% for reduced (floor 64), or a percent. Every ProptestConfig::with_cases(N) in the parity modules goes through it; assertions unchanged. build-project.yaml sets reduced for pull_request, merge_group and master push; schedule, dispatch, tags and release branches keep full depth.
zackees
commented
Oct 30, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review: LGTM. scale is total (overflow-safe via u64, floor capped at n, typos panic), unit tests sit in the existing oracle suite (no new binary), the conversion is mechanical with no assertion/strategy changes, and full depth stays on schedule/dispatch/tags/release branches as decided in #2593. Watch: every crate whose parity module now names obs_c_oracle::parity needs obs-c-oracle as a dev-dependency; the CI build confirms it. Queue on green.
This was referenced Oct 30, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2593 (part B, as decided in #2593 (comment)). Part A is separate.
What
obs_c_oracle::parity::cases(n)(rust/obs-c-oracle/src/parity.rs) readsOBS_PARITY_CASES:full→n(local runs, nightly, release gate keep full depth)reduced→ 10% ofn, never below 64 (ornif smaller)1..=100→ that percent; anything else panics, so a typo never silently cuts coverage.Needed because an explicit
ProptestConfig::with_cases(N)ignoresPROPTEST_CASES.ProptestConfig::with_cases(N)in the parity modules (129 files, all crates) now readswith_cases(obs_c_oracle::parity::cases(N)). One mechanical substitution; no assertion, strategy or written count changed. Nowith_cases(parity site is left unconverted..github/workflows/build-project.yamlworkflow-level env:reducedforpull_request,merge_groupandpushtorefs/heads/master;fullfor schedule, workflow_dispatch, tags and release branches. No new workflow file.ci/local_gate.pypasses the environment through, so every Rust test lane picks it up.rust/obs-c-oracle/tests/oracle/parity_cases.rs, in theobs-utillibrary harness): no new test binary.RED → GREEN
test(obs-c-oracle): ... stub (RED, #2593)):scaleis the identity;soldr cargo test -p obs-util --lib -- parity_cases→ 5 of 6 fail (onlyfull_keeps_the_written_countpasses).Times (local, debug,
obs-tests-corebinary, filtered per module)source::video_tick_parityhotkey::translations_paritysource::audio_timing_parityobs_core::audio_mix_parityobs_core::audio_discard_parity_parityinobs-tests-core(894 tests)The remaining reduced time is fixed per-test cost (chosen cases, layout checks, oracle setup) that case scaling does not touch.
Notes
./lintpasses withOBS_GATE_SKIP_SELF_TEST=1. Without it,ci/test_check_changes.pyerrors locally withgit: command not foundin a stripped-PATH subprocess (NixOS host, unrelated to this change; the Checks job runs it).