Skip to content

test: drop test_transition_load_release from the known-flaky list (Fixes #4800) - #5413

Merged
rdoupe merged 1 commit into
masterfrom
fix/transition-load-release-unflake
Nov 21, 2026
Merged

rdoupe merged 1 commit into
masterfrom
fix/transition-load-release-unflake

Conversation

@rdoupe

@rdoupe rdoupe commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #4800

test_transition_load_release is in test/cmocka/known-flaky.txt because its old-source checks failed under parallel load: line 360 ("'load release old' is still referenced after its last owner let go"), then line 378 as a cascade. That was the race #5407 fixed. released_source_is_destroyed() releases the source and calls obs_wait_for_destroy_queue(), and this fixture resets video without audio, so before #5407 the wait skipped the video thread and tick_sources() could still hold its tick reference. With the race fixed, the test no longer needs the merge-queue retry, so this drops its line. #4680 (test_source_transition_slots) is a different case (no destroy-queue wait) and keeps its line.

Evidence

To make the race reproducible on demand, I put a temporary os_sleep_ms(30) into tick_sources() (libobs/obs-video.c.h) right after it takes its source references. That keeps the references held for most of each 33 ms frame. It was a local edit only and is not in this PR.

RED: injected delay plus the obs_wait_for_destroy_queue() from before #5407 (d8562f7e2^), with the test unchanged:

OBS_CTEST_JOBS=10 uv run rust/tools/linux-validate/run.py --repeat 3 --tests test_transition_load_release
after the load: 'load release old' is still referenced after its last owner let go
[   LINE   ] --- /ro/test/cmocka/test_transition_load_release.c:360: error: Failure!
after the load: slot A holds 'load release old 2', expected 'load release new 2'
after the load: 'load release old 2' is still referenced after its last owner let go
[   LINE   ] --- /ro/test/cmocka/test_transition_load_release.c:378: error: Failure!
	954 - test_transition_load_release (Failed)

These are the same lines and messages as the failure in #4800.

GREEN: the same injected delay with master's obs_wait_for_destroy_queue():

   5/1074 Test  #954: test_transition_load_release ....   Passed    0.54 sec

(Both injected runs also fail some timing tests, such as the deinterlace field-order and async-rotation tests, because a 30 ms stall in every tick breaks them. They fail with and without #5407 and have nothing to do with this test.)

Without the injection, on this branch (the flaky-list line removed, so nothing retries it):

OBS_CTEST_JOBS=10 uv run rust/tools/linux-validate/run.py --repeat 30 --tests test_transition_load_release
== [OFF] ctest                      100% tests passed, 0 tests failed out of 1074
== [OFF] ctest --repeat until-fail:30 -R test_transition_load_release   100% tests passed
== [ON] ctest                       100% tests passed, 0 tests failed out of 1074
== [ON] ctest --repeat until-fail:30 -R test_transition_load_release    100% tests passed

./lint passes.

🤖 Generated with Claude Code

 #4800)

Its failure (line 360: the old source still referenced after the test
released it, then the cascade at line 378) was the video-only
obs_wait_for_destroy_queue() race fixed by #5407: the fixture resets
video without audio, so the wait skipped the video thread and
tick_sources() could still hold its tick reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ci-Attestation: {"at":1795267090,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":94,"stamp":"6882c56d1c536618a8f52273b7c8251c","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795267090,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":94,"stamp":"9c4001d03ff7fb326d45a0a4c93017c5","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795267090,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":94,"stamp":"a9cda3d8ec5a5400d2c7b1ab1c13ef89","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795267090,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":94,"stamp":"261f31ec219cf87bbcaa7eb0119e2832","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"general/all/client-lint","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"f4450303f13a11bcb8b6d65427003d50","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795267090,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":94,"stamp":"ec954ec998b35d01aca8c1e20ef4241c","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"f1bd2901f6ce7cf7bf3f4e0670fb04e1","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"73eaa3b56de14822a5e5cb3d8640704a","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"8feb7dc9d21ed472e82bf14ddc1b1ff1","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"b7d6396ff0f7ab5db941cf0927c57132","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"f77658c325404c9e36a315140ae46913","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"162beee1be7d659c18e67ce7fdbd5732","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"2f7e6db301c2774522f9e659fe4ebda6","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"809da28f6b4d4c75f69735aa5695feed","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"a52cf0e6ec33421e4d9c6138d78928e8","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"d77a433cd73ad0ab243f4e08c7d4cdfb","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"c2ba24c5d9e68dce1993842cde26ff1c","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795266996,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"62a80741fe3d385360d0cc6fb0e1a85558c840b35762306960818cbec9290545","lane":"client-lint","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":67,"stamp":"977bf69b08e5eb900831112e38b2a54a","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}
Ci-Attestation: {"at":1795267305,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"4c28bab027efbecd5ff4ca7a50f69be0d32d875847ec1c8e6e4553eea6deb95f","lane":"client-test-x86_64-unknown-linux-gnu","parents":["c0bf2355b1ecd3b440cec361233880788697e799"],"secs":214,"stamp":"520c5fda3c6a907cccd2b44373411d76","tree":"c9bd152da2beb9e4cd477c591bd6634490846245","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"c0bf2355b1ecd3b440cec361233880788697e799","coverage":"all-tracked-applicable-files","diff":["test/cmocka/known-flaky.txt"],"head":"fa2bc50a585615262e632a398cf39cbd1d059540","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"54fec83d2e7d034fbd5a560ff3ab36d8a5721fcec89aff97accb0bf3d38b4b80","tree":"c9bd152da2beb9e4cd477c591bd6634490846245"}}
@rdoupe
rdoupe marked this pull request as ready for review November 21, 2026 13:22
@rdoupe
rdoupe requested a review from zackees as a code owner November 21, 2026 13:22
@github-actions github-actions Bot added the claim-conflict A PR closing reference conflicts with the issue claim label Nov 21, 2026
@github-actions

Copy link
Copy Markdown

Claim conflict: keep this PR out of the merge queue until resolved.

@github-actions github-actions Bot removed the claim-conflict A PR closing reference conflicts with the issue claim label Nov 21, 2026
@rdoupe
rdoupe enabled auto-merge November 21, 2026 13:26
@rdoupe
rdoupe added this pull request to the merge queue Nov 21, 2026
Merged via the queue into master with commit 03363e9 Nov 21, 2026
47 of 48 checks passed
@rdoupe
rdoupe deleted the fix/transition-load-release-unflake branch November 21, 2026 14:03
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.

bug: libobs: transition load ownership checks fail on parallel master Tier 2

1 participant