Skip to content

test(cmocka): test_deinterlace_mode_load waits up to 10 s (#3390) - #3434

Merged
vpacher merged 2 commits into
masterfrom
fix/3390-yadif-time-limit
Nov 1, 2026
Merged

vpacher merged 2 commits into
masterfrom
fix/3390-yadif-time-limit

Conversation

@vpacher

@vpacher vpacher commented Nov 1, 2026

Copy link
Copy Markdown
Member

Fixes #3390. Refs #3238.

Why

In the asan job (run 41281819710), valid_modes_unchanged failed at test_deinterlace_mode_load.c:353 on the loaded Yadif 2x check:

2 of 89 output frames showed the source: ......
the source draws nothing

A check pushes frames at the canvas rate until 3 output frames show the source, for at most MAX_PUSH_FRAMES (90, 3 s). In the same run another check needed 62 frames. On a local build box the asan build needs far fewer, even with 12 runs at a time:

Mode Frames until 3 showed the source (mean / max, 24 loaded runs)
Disable to Yadif (0 to 7), out-of-range modes, field order 3.0 to 5.0 / 12
Yadif 2x (8), loaded from a collection 6.3 / 14
Yadif 2x (8), set 4.6 / 6

So Yadif 2x is the slowest mode, but the source does draw; on the CI runner (4 vCPUs, llvmpipe under ASan, the rest of the pool running) it took longer than 3 s. The failure did not reproduce locally.

What changes

MAX_PUSH_FRAMES goes from 90 (3 s) to 300 (10 s). A source that draws still reaches MIN_DRAWN (3) after a few frames and ends the check, so a passing run takes as long as before; only a check that fails waits the whole time. MIN_DRAWN and every assertion stay as they were. The flaky entry of the test leaves the sanitizer known list.

Commits

  • RED 77118c2: drops the known-list entry, so the asan job counts the test again. The RED evidence is the CI run above.
  • GREEN 787eb85: the limit.

Tests

The table above: 6 runs alone and 24 runs 12 at a time of the asan build, none failing. Tier 2 passes in the local gate. Local gate, stamped head 787eb85: 4 min 24 s (lint 40 s, rust-test 82 s, cross 23 s, tier2-linux 263 s).

Checklist

🤖 Generated with Claude Code

vpacher and others added 2 commits November 1, 2026 16:21
…in (#3390)

Drop its flaky entry from the sanitizer known list. In the asan job
(run 41281819710), valid_modes_unchanged failed at
test_deinterlace_mode_load.c:353 on the loaded Yadif 2x check:

  2 of 89 output frames showed the source: ......
  the source draws nothing

A check pushes frames for at most MAX_PUSH_FRAMES (90, 3 s) until 3
output frames show the source; in the same run another check needed
62. On a local build box the asan build needs at most 14 for Yadif 2x
(6.3 on average), even with 12 runs at a time, so the runner's slower
llvmpipe under ASan is what runs out of the 3 s.

Fails: the asan job, as in run 41281819710 (not reproduced locally).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MAX_PUSH_FRAMES goes from 90 (3 s) to 300 (10 s). A source that draws
still reaches MIN_DRAWN (3) after a few frames and ends the check; only
a check that fails waits the whole time. MIN_DRAWN and every assertion
stay as they were.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d secs=264 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run,macos-native:n/a,windows-native:n/a
Ci-Attestation: {"at":1793546741,"gate":"rust/all/fmt","host":"linux-x86_64","key":"93b5107790470852ac1f41a018f7e452f485961b142a31e3804f36d218f444ae","lane":"lint","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":40,"stamp":"dfad1da920f52a8f0b0338aeb7de56a0","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
Ci-Attestation: {"at":1793546741,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"93b5107790470852ac1f41a018f7e452f485961b142a31e3804f36d218f444ae","lane":"lint","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":40,"stamp":"cd67b02a435170d984f388076e777325","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
Ci-Attestation: {"at":1793546741,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"1da33e8749db84f41911364b7b59e6749c154c5e832274116a411b5f62c57b39","lane":"rust-test","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":82,"stamp":"2eb8f4d07997c179d861fd59101fb7e5","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
Ci-Attestation: {"at":1793546741,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"7db1373f23f2db954da08475ce73938202ba55a9cd2c92cdcc9ef62696bec96b","lane":"cross","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":24,"stamp":"3a17375aa94811fe4e5f97aa31055f0d","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
Ci-Attestation: {"at":1793546741,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"7db1373f23f2db954da08475ce73938202ba55a9cd2c92cdcc9ef62696bec96b","lane":"cross","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":24,"stamp":"882336761761241d40f872c0e799204f","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
Ci-Attestation: {"at":1793546741,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"7db1373f23f2db954da08475ce73938202ba55a9cd2c92cdcc9ef62696bec96b","lane":"cross","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":24,"stamp":"f5d861318c44f27f0eba7bd3c52114cc","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
Ci-Attestation: {"at":1793546741,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"7db1373f23f2db954da08475ce73938202ba55a9cd2c92cdcc9ef62696bec96b","lane":"cross","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":24,"stamp":"9304d96a1608aa3f94874b564d333a6e","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
Ci-Attestation: {"at":1793546741,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"b51ed6265c1b793be689a0737007c0e945c6d489cb1c071fb8a659259f0d9685","lane":"tier2-linux","parents":["77118c21b965983583268cb334b05b9612af80bc"],"secs":263,"stamp":"aff83dd52ac04ebb10d53c543f2fd677","tree":"f5ab96e8c44c223e0114cbb1d68ecb3dcdd2c55d","v":1,"via":"run"}
@vpacher
vpacher requested a review from zackees as a code owner November 1, 2026 15:26
@vpacher
vpacher enabled auto-merge November 1, 2026 15:26
@vpacher
vpacher added this pull request to the merge queue Nov 1, 2026
Merged via the queue into master with commit 5511a97 Nov 1, 2026
36 checks passed
@vpacher
vpacher deleted the fix/3390-yadif-time-limit branch November 1, 2026 15:37
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: test_deinterlace_mode_load's Yadif 2x check runs out of time in the asan job

1 participant