Skip to content

test: characterize obs_scene_prune_sources (Refs #5731) - #5737

Draft
zackees wants to merge 1 commit into
masterfrom
scene-prune-sources-5731
Draft

zackees wants to merge 1 commit into
masterfrom
scene-prune-sources-5731

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #5731.

obs_scene_prune_sources had no direct C test (only the preserved obs-websocket test calls it). This adds actual-library cmocka characterization, registered once in test-graph.json (core suite, w32-pthreads on Windows as in #5696): empty scene no-op; live items kept in order across repeated prunes; a removed source's item stays until pruned, then item_remove fires once with that item, it is detached (obs_sceneitem_get_scene NULL) and the remaining order is kept; several removed sources prune in one pass in scene order; a removed source inside a group is pruned through the group walk while the group item stays.

Test only; no product code, existing C tests or public headers changed. Verbatim extraction follows as stacked draft #5738; the Rust swap follows after both land.

Local evidence (head ec90ee1): focused Tier 2 replay in the linux-validate container, test_scene_prune_sources + test_scene_bounds_type_range x3 against BOTH libobs-c-reference and hybrid libobs (ldd-verified backend), exported symbols identical (1769). SOLDR_PORCELAIN=0 ./lint ok (240 s). Not run locally: full Tier 2 suite, macOS/Windows execution. merge-tree clean vs #5629 #5630 #5650 #5674 #5701 #5708.

Unarmed draft: admission (ci/backpressure.py) closed at publish.

🤖 Generated with Claude Code

Direct actual-library cmocka characterization: empty scene no-op, live
items kept in order, removed sources pruned with item_remove signalled
and the item detached, all removed sources pruned in one pass, and
removed sources inside a group pruned through the group walk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ci-Attestation: {"at":1795693549,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"f763de77f4f715f20ef798ef70ef2d74","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"ad44d33530a71628fb6b4f8252b96a73","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"bdfffda3cdba3f27a17870d68d893a2a","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"4babb666113e6ffc3f0171436680da69","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693453,"gate":"general/all/client-lint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"3ed249099fec0284464e2962bbbd4aee","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"07082f3a7cfb001b2c91aa19acd4263e","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"382594b6fd2ef5107ffe235fdf82d57a","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"7061e4a443452d74c8e29aa099de03a0","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"40e206fce5be9e812c326fd1ef3b5156","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"4e299496d65cfbce86a4ead9d6444605","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"9db19b9d9c537d6e1bfb74dca7d56949","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"bd9f2e033f53df922f510b7b5d687a59","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"8a207f2cf910448422ba6fdc486f3c9e","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"1977a3cc1598126e4ef5155a714b3592","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"3784af6eacf404d5ef65e2fbb09eb36b","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"0e84c4d411479e953008b9d4c414fadd","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693453,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"051d7b4c7e34efeb74da4670e9dfe0ef","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"dcc699c0beeeda9345e7758e98f4ab55","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693895,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"4a21f70d4c7a429c95a8880de5c76849ca06836ddb22e4c3ad89a18b61c17c21","lane":"client-test-x86_64-unknown-linux-gnu","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":344,"stamp":"b93b5ad683baa724f921fd452fe00723","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"e8cbea4dd0142b45229389ff871e402fda40050a","coverage":"all-tracked-applicable-files","diff":["test/cmocka/build/test-graph.json","test/cmocka/test_scene_prune_sources.c"],"head":"c17bcce862b2460d13d6f460bb5204902dd83b1b","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.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 21503\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"75e09dea89f854394a09ff3b1ccbcd1715e26c9851c27e38674ca5e1e8b391e6","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc"}}
@zackees
zackees force-pushed the scene-prune-sources-5731 branch from 8178c80 to b52ebae Compare December 4, 2026 18:35

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs fix

Development

Successfully merging this pull request may close these issues.

1 participant