Skip to content

test(cmocka): run test_media_cover_art_monitor in the timing lock (#3421) - #3425

Merged
vpacher merged 2 commits into
masterfrom
fix/3421-cover-art-timing
Nov 1, 2026
Merged

vpacher merged 2 commits into
masterfrom
fix/3421-cover-art-timing

Conversation

@vpacher

@vpacher vpacher commented Nov 1, 2026

Copy link
Copy Markdown
Member

Fixes #3421. Refs #3238, #3418.

Why

In the asan pass of #3418 (run 41302253353), mp3_cover_restart_monitored got no packet on its first play within the test's window (first play: 0 packets), then 41 on the second play. The test passed in the 8 earlier asan runs. It plays real media in real time, so under the sanitizer pool's load it can miss its window, like the four tests that already hold the timing lock (#3238).

What changes

test/cmocka/tests.d/test_media_cover_art_monitor.cmake adds RESOURCE_LOCK timing next to the test's TIMEOUT. The sanitizer pool runs it alone after the other tests; in Tier 2, ctest only keeps it from overlapping the other timing tests. The test itself is unchanged.

Commits

  • RED 41863dd: the harness test (ci/test_sanitize_harness.py, TimingLockTest) lists it with the timing tests. Fails test_timing_tests_hold_the_timing_lock.
  • GREEN 894a52f: the lock.

Tests

  • ci/test_sanitize_harness.py: OK.
  • Local gate, stamped head 894a52f: 5 min 36 s (lint 88 s, rust-test 136 s, cross 112 s, tier2-linux 266 s).

Checklist

🤖 Generated with Claude Code

vpacher and others added 2 commits November 1, 2026 13:09
…#3421)

In the asan pass of #3418 (run 41302253353), mp3_cover_restart_monitored
got no packet on its first play within the test's window ("first play:
0 packets"), then 41 on the second; it passed in the 8 earlier asan
runs. It plays real media in real time, so under the pool's load it can
miss its window, like the four tests that already hold the lock.

The harness test now lists it with the timing tests.

Fails: test_timing_tests_hold_the_timing_lock.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ck (#3421)

RESOURCE_LOCK timing next to its TIMEOUT, so the sanitizer pool runs it
alone after the other tests; in Tier 2 ctest only keeps it from
overlapping the other timing tests. The test itself is unchanged.
Harness tests: OK.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=5762caaa8d23b0dae231fb856086fdd41c7d8a34 secs=336 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run,macos-native:n/a,windows-native:n/a
Ci-Attestation: {"at":1793535327,"gate":"rust/all/fmt","host":"linux-x86_64","key":"10d11312ce8f0ba8026b23ebc401f1330d39cf312408c6e91169481ce28bdd5e","lane":"lint","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":88,"stamp":"bc3a83851cec2626f907e79d28bf6515","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
Ci-Attestation: {"at":1793535327,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"10d11312ce8f0ba8026b23ebc401f1330d39cf312408c6e91169481ce28bdd5e","lane":"lint","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":88,"stamp":"f6cca8041d4f8164e24f71be1d7bbbdb","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
Ci-Attestation: {"at":1793535327,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"144d002bc8e21901a3fd3e1063542f6e32cc3dec20169b28f319a3c734cff420","lane":"rust-test","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":136,"stamp":"cdf4e9c643abad232904b61c0f29dfc6","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
Ci-Attestation: {"at":1793535327,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"c974981c4f833c0daf94f04131edd2ed8208df056d7adee2401d9afc889b6fad","lane":"cross","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":112,"stamp":"bc18fe56838813e9d76d09512bb4ea4a","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
Ci-Attestation: {"at":1793535327,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"c974981c4f833c0daf94f04131edd2ed8208df056d7adee2401d9afc889b6fad","lane":"cross","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":112,"stamp":"aeaa5b7d4eb2763dffb440ff8b57ace2","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
Ci-Attestation: {"at":1793535327,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"c974981c4f833c0daf94f04131edd2ed8208df056d7adee2401d9afc889b6fad","lane":"cross","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":112,"stamp":"3915545780f73e38850c29bb7cdf7f2c","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
Ci-Attestation: {"at":1793535327,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"c974981c4f833c0daf94f04131edd2ed8208df056d7adee2401d9afc889b6fad","lane":"cross","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":112,"stamp":"a195e7db0014a32c3fcbf168993cdcd1","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
Ci-Attestation: {"at":1793535327,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"3f073008d1613c4c64210f14a40a193f56e8502badf3847268e62749c70d4380","lane":"tier2-linux","parents":["41863dd8da7725aa0401de35f2f3538c3f835eaf"],"secs":266,"stamp":"d51453975fbdf3a6a91fb8a844dee3ed","tree":"5762caaa8d23b0dae231fb856086fdd41c7d8a34","v":1,"via":"run"}
@vpacher
vpacher requested a review from zackees as a code owner November 1, 2026 12:16
@vpacher
vpacher enabled auto-merge November 1, 2026 12:16

@zackees zackees left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: LGTM. This follows the established RESOURCE_LOCK timing pattern (#3238), and the TIMING_TESTS_D list keeps the guard test in sync. It's a real-time media test, so serializing it under asan is the right fix rather than widening its window.

@vpacher
vpacher added this pull request to the merge queue Nov 1, 2026
Merged via the queue into master with commit a719d27 Nov 1, 2026
41 checks passed
@vpacher
vpacher deleted the fix/3421-cover-art-timing branch November 1, 2026 12:32
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_media_cover_art_monitor misses its window under load in the asan pool

2 participants