Skip to content

test: characterize obs_encoder_update (Refs #5687) - #5692

Draft
zackees wants to merge 1 commit into
masterfrom
test/5687-encoder-update
Draft

zackees wants to merge 1 commit into
masterfrom
test/5687-encoder-update

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Pins the current obs_encoder_update behavior through the real shared-library API in eight portable cmocka cases: NULL encoder/settings, settings merge and ownership without codec data or update callback, immediate inactive update (including a false callback result), active ungrouped deferral/coalescing, grouped request/reset/coalescing state, and callback reentry. The fixture initializes the private fields this API consumes and starts no media or codec threads.

Refs #5687

HOLD: keep DRAFT and auto-merge OFF while backpressure is CLOSED or claim acceptance is pending. Separate extraction #5693 is stacked on this characterization; the Rust swap is later work.

Registered once in the canonical test-graph.json with explicit SIMDe and conditional Windows pthread dependencies. No Rust, existing C-test, public-header, workflow, WebSocket or user-visible behavior changes. This establishes the C baseline; Rust RED/GREEN and Tier 1/differential coverage belong to the later swap. Tier 4 does not apply to this unit.

Validation: the new fixture and unchanged encoder_init/fallback each passed 25 repetitions against C-reference and hybrid libobs before and after extraction, with loader paths verified and all 1769 exports identical (local-test-dIgrBH.log and local-test-vvq0Ao.log). Full SOLDR_PORCELAIN=0 ./lint passed in 236.8s (local-test-sVw0Bx.log); sole primary clud-review CLEAN for both PRs. The ignored harness uses Xvfb -noreset for repeated existing startup fixtures. Publication passed all-six-target client Clippy/Dylint in 33.7s; missing xmllint retains ordinary hosted CI. Native Windows/macOS runtime execution is not claimed.

Windows eight Rust category executables linked successfully. Windows MSVC x86_64 and Darwin arm64 each linked hybrid libobs, all 83 normal Rust-static fixtures, and explicit new shared test_encoder_update (85 targets per alias). Overall command exit0 and both explicit alias exits0; compilation and link lines for the new fixture were verified on each target (local-test-dk8WOf.log). Native Windows/macOS execution was not performed.

@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 25, 2026
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 25, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In progress in obs-rust Multiview Nov 25, 2026
@zackees
zackees force-pushed the test/5687-encoder-update branch from 0f21e90 to 34aca05 Compare November 26, 2026 07:22
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Stalled in obs-rust Multiview Nov 29, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Stalled to Needs fix in obs-rust Multiview Dec 4, 2026
Client-Checks: {"checks":{"base":"8a8e7b63feb4fce649904a2bd30152463438d087","coverage":"all-tracked-applicable-files","diff":["test/cmocka/build/test-graph.json","test/cmocka/test_encoder_update.c"],"head":"fd659982466e44b2e3af0757a4a3cfda5f8ea98b","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":"a39f2121353dad8c3aa0f7d555bab36d53e3d7897d9f2022328a0317d7956237","tree":"aa9d0c7a119e9e1c9c88040355b6dd25b3ce0431"}}

Ci-Attestation: {"at":1795677468,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8a8e7b63feb4fce649904a2bd30152463438d087"],"secs":87,"stamp":"d90fb88caf5656c87eec1af74b67ab84","tree":"aa9d0c7a119e9e1c9c88040355b6dd25b3ce0431","v":1,"via":"run"}
Ci-Attestation: {"at":1795677468,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8a8e7b63feb4fce649904a2bd30152463438d087"],"secs":87,"stamp":"45cf06ac45ec05c5a40cb9f4d89380c0","tree":"aa9d0c7a119e9e1c9c88040355b6dd25b3ce0431","v":1,"via":"run"}
Ci-Attestation: {"at":1795677468,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8a8e7b63feb4fce649904a2bd30152463438d087"],"secs":87,"stamp":"8b11395846800021269a7546c981f166","tree":"aa9d0c7a119e9e1c9c88040355b6dd25b3ce0431","v":1,"via":"run"}
Ci-Attestation: {"at":1795677468,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8a8e7b63feb4fce649904a2bd30152463438d087"],"secs":87,"stamp":"6a481c175ddd88924b905351d3b1823f","tree":"aa9d0c7a119e9e1c9c88040355b6dd25b3ce0431","v":1,"via":"run"}
Ci-Attestation: {"at":1796411258,"gate":"general/all/client-lint","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"fa1544497dc1a658832948148feac9e0","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1795677468,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8a8e7b63feb4fce649904a2bd30152463438d087"],"secs":87,"stamp":"5a015ddc74c3a60bcd757104988d9138","tree":"aa9d0c7a119e9e1c9c88040355b6dd25b3ce0431","v":1,"via":"run"}
Ci-Attestation: {"at":1796411264,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"ab68f7353e57c9d37d881ec4b0b128c9","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411264,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"4ef5fb6adfce15c0d4669aa609e3e6f4","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411262,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"3f2e73ba310ca41576e6cb7653e14075","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411262,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"15fe9ae0a66336d0ccc3aec63a5d12a2","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411259,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"4c27267dce9e4f7563346bbe61516f0b","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411260,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"c27d128bd9c28fec40766637a15156d3","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411263,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"13c3f8899aacdac1699fb3b754899018","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411263,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"9cb81ed0a23ac5efa01119a68518c8e5","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411260,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"d8888bf244712be55ebb20753887ee3a","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411261,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"6229123b292117fda6769e7b04517579","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411258,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"5fed272559417cefd54ce47f232109b9","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1796411259,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"c88fd4c187b2c0f737a2440efd7b3a74d686a38bec1ff600e6115e220ed82b0d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":53,"stamp":"03d2dccf2452461749f91693f6353fa9","tree":"e744da2e4be07bd511d64d97a140b6f7d51ec7e7","v":1,"via":"run"}
Ci-Attestation: {"at":1795677740,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"727cb117ae3e2f84c617b6b9067405c184efb10ec496801900144a776f4c2ddc","lane":"client-test-x86_64-unknown-linux-gnu","parents":["8a8e7b63feb4fce649904a2bd30152463438d087"],"secs":271,"stamp":"fd19b6a4988b28bd3c2af4621789385a","tree":"aa9d0c7a119e9e1c9c88040355b6dd25b3ce0431","v":1,"via":"run"}
@zackees
zackees force-pushed the test/5687-encoder-update branch from 34aca05 to a3770c7 Compare December 4, 2026 19:07

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