Skip to content

test: characterize obs_output_set_service (Refs #5664) - #5667

Draft
zackees wants to merge 1 commit into
masterfrom
test/output-set-service
Draft

zackees wants to merge 1 commit into
masterfrom
test/output-set-service

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #5664

Adds direct characterization of obs_output_set_service through the actual libobs export before extraction or a future Rust swap. Five cases pin NULL-output diagnostics, all 15 refusal-state combinations and warning precedence, first/repeated attachment, transfer from an active old output, and replacement of an already attached service. Full object snapshots verify only the existing links change. The former service retaining its reverse link is characterized, not endorsed.

The portable private-layout fixtures use no core startup, heap allocation, hardware, or own threads. The canonical test graph registers the fixture exactly once, with explicit SIMDe and Windows pthread dependencies. No production code, existing C test, public header, or Rust changes occur here. A separate stacked PR extracts the C body verbatim; Rust replacement is a later unit.

HOLD: backpressure is closed; keep DRAFT and auto-merge off until admission reopens. Serialize graph-changing promotions and confirm the issue claim is accepted before promotion.

Validation: the new five-case fixture and unchanged test_output_service_getter pass 25 repetitions each against both C-reference and hybrid libobs, with ldd proving backend selection and identical 1,769 exported symbols. This was checked on the standalone characterization and the final extracted tree. Full SOLDR_PORCELAIN=0 ./lint passed (273.8 s); sole primary clud-review is CLEAN; build-group tests pass 10/10 and canonical graph ordering passes 2/2. Merge-tree simulations against #5654, #5660, #5661, #5625, and #5632 are clean. The standard Windows eight Rust category binaries link successfully. Complete Windows MSVC x64 and Darwin arm64 inventories also link successfully: 85 selected targets per alias, comprising hybrid libobs, 83 normal Rust-static fixtures, and the explicitly appended new actual-library setter fixture. Both alias exit codes and the overall wrapper are zero, and the new fixture compilation/link entries are present. These are cross-link checks; native execution on those hosts is not claimed. Client lint passes all six targets (35.7 s for characterization, 24.0 s for extraction), but missing xmllint prevents complete client-check proof, so ordinary PR CI remains required.

Landing order: the adjacent preferred-size2 extraction for #5666 reports conflicts with this service extraction in obs-output.c.h and libobs.core-output+.h.c (graph clean). Land service prerequisites first, then replay the preferred-size2 extraction while preserving both includes/removals. Earlier named-neighbor simulations above remain clean.

@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/output-set-service branch from 9eab1b8 to df2e597 Compare November 26, 2026 05:03
@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":"1a371e8bc576a915376715bf91ad39d30518b860","coverage":"all-tracked-applicable-files","diff":["test/cmocka/build/test-graph.json","test/cmocka/test_output_set_service.c"],"head":"d8c7642acca68bb025d27c4ab862fb2856427a53","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":"8b27f30be1d2bb590941e52e5dc26cb48703270eb906990c27b219ad4d1dde56","tree":"c8abfa30919e65db94a51b72fcabf37360957300"}}

Ci-Attestation: {"at":1795669124,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":82,"stamp":"65ffa288cf55ea6e50c539251a456257","tree":"c8abfa30919e65db94a51b72fcabf37360957300","v":1,"via":"run"}
Ci-Attestation: {"at":1795669124,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":82,"stamp":"eb34961baa22644ddc5ef180f04d6579","tree":"c8abfa30919e65db94a51b72fcabf37360957300","v":1,"via":"run"}
Ci-Attestation: {"at":1795669124,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":82,"stamp":"d1a71f8a14d80483b48e4828e9056426","tree":"c8abfa30919e65db94a51b72fcabf37360957300","v":1,"via":"run"}
Ci-Attestation: {"at":1795669124,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":82,"stamp":"a3674ead2c5f781127dbc27768167978","tree":"c8abfa30919e65db94a51b72fcabf37360957300","v":1,"via":"run"}
Ci-Attestation: {"at":1796412299,"gate":"general/all/client-lint","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"e59f71ff5166e77bb0ce1ef0e6fff17f","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1795669124,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":82,"stamp":"43da2d00e40295830a02b2c03abda882","tree":"c8abfa30919e65db94a51b72fcabf37360957300","v":1,"via":"run"}
Ci-Attestation: {"at":1796412300,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"bab797e382b10bc9877d784be3771705","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412300,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"ba47970eb6e90dced72b53d20e337027","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412300,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"41d761c8b6448a7661fe46628c6d0f6b","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412300,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"924abb7bab0cd283603b536dd76b6308","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412299,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"d88e7339b770ba504c3d4d478e2f4548","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412299,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"6538030448fb79d200d7b078e5c33770","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412300,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"2ea4f04d58a46ebc1c48785696aaeb23","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412300,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"1313a56fea0a366fc5330a320412a353","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412299,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"cf40c416f9ae3da828bd757f108417b8","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412300,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"42f29b4fa16a4987170762cc1e649890","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412299,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"e902d6dee053e3ec803b27c11473955e","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1796412299,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1f9a9884997f334dc201b539e50994a6d09183ef822bb84f27c3ac7c8a66bf4d","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":27,"stamp":"3e758ad20f922f4b3726748232e1cd70","tree":"c0feef3bffc699dcd2592189eeb2292fa0b8dfd5","v":1,"via":"run"}
Ci-Attestation: {"at":1795669395,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"2c3e8cbfbd7b9600f34095b3dd0bd9acc48b7e55a275faaccff5ee79a4f59f3e","lane":"client-test-x86_64-unknown-linux-gnu","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":269,"stamp":"bb8d036a0ef1d5e55b8f64794447ccbe","tree":"c8abfa30919e65db94a51b72fcabf37360957300","v":1,"via":"run"}
@zackees
zackees force-pushed the test/output-set-service branch from df2e597 to 56ecae8 Compare December 4, 2026 19:25

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