Skip to content

test: Warm up and allow one late hold in the deinterlace 2x field order test - #458

Merged
zackees merged 1 commit into
masterfrom
fix/456-deinterlace-flake
Oct 13, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/456-deinterlace-flake

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Closes #456 (both of the issue's options).

  • Signature 1, startup underrun: each case now calls warm_up() before recording. It pushes WARMUP_FRAMES (6) black frames, which classify() can't recognise, at the source rate, then waits until the canvas has rendered WARMUP_TICKS (4) more frames, for at most 2 s. The first measured frame no longer pays for a cold render path.
  • Signature 2, load-induced hold: one field may be held one frame longer than the cadence allows. Two over-long holds, or a hold longer than that, still fail. Unbuffered cases stay unlimited as before.
  • Unchanged: the field-order checks (steps back in time, skipped fields, fields shown). They are what guard the bug: libobs: Yadif 2x shows bottom-field-first video out of order (upstream #6061) #316 product bug.

Verified: rust/tools/linux-validate/run.sh --repeat 30 --tests test_deinterlace_2x_field_order ran 30 consecutive passes with ENABLE_RUST_LIBOBS OFF and ON, plus the full suite (146/146) in each. The local gate passed and is stamped.

Note: this is a fork-added test (a52bee1), not an upstream C test.

…er test

The first measured frame paid for a cold render path (startup underrun:
fields 2-23 never shown), and a single late tick under load held one
field a frame past the cadence. Each case now pushes black warm-up
frames and waits for output before recording, and one field may be held
one frame longer than the cadence allows; two such holds, or a longer
one, still fail. Order checks (steps back in time, skipped fields) are
unchanged.

Closes #456

Local-Gate: v1 tree=3a2136b2db4bc872456f330f24ac0017c17a8a85 secs=209 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791868837,"gate":"rust/all/fmt","host":"linux-x86_64","key":"c3b0303caff730736f012354535ec489334f7a0c9b085136b17e2b45003439fb","lane":"lint","parents":["483c0f341b1cc18f2e72ec053e91351af2b26b5d"],"secs":21,"stamp":"58bad744ae9572afb9f07045fde80f90","tree":"3a2136b2db4bc872456f330f24ac0017c17a8a85","v":1,"via":"run"}
Ci-Attestation: {"at":1791868837,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"c3b0303caff730736f012354535ec489334f7a0c9b085136b17e2b45003439fb","lane":"lint","parents":["483c0f341b1cc18f2e72ec053e91351af2b26b5d"],"secs":21,"stamp":"6c5225979839df44b1a474cdcf53603f","tree":"3a2136b2db4bc872456f330f24ac0017c17a8a85","v":1,"via":"run"}
Ci-Attestation: {"at":1791868837,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"9e122132ed795df18a9743281a99d50a5359e3121e0f2909d4ac4fa20dbe487a","lane":"rust-test","parents":["483c0f341b1cc18f2e72ec053e91351af2b26b5d"],"secs":122,"stamp":"cc3726c4540a67cd75293acd1bd1c9d8","tree":"3a2136b2db4bc872456f330f24ac0017c17a8a85","v":1,"via":"run"}
Ci-Attestation: {"at":1791868837,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"b894a669eab11d2270509a78d4aa5ade82c2aa00cd1ee4069c6ea7b6f84e9604","lane":"tier2-linux","parents":["483c0f341b1cc18f2e72ec053e91351af2b26b5d"],"secs":65,"stamp":"31ad2a651bf918feabc2e910d4294ef2","tree":"3a2136b2db4bc872456f330f24ac0017c17a8a85","v":1,"via":"run"}
@zackees
zackees merged commit 1c3961a into master Oct 13, 2026
20 checks passed
@zackees
zackees deleted the fix/456-deinterlace-flake branch October 26, 2026 15:44
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.

test_deinterlace_2x_field_order is timing-sensitive (yadif 2x 60i into 60): startup underrun and load-induced hold

1 participant