Skip to content

test: characterize caption text2 API gates and duration bits (Refs #5678) - #5680

Draft
zackees wants to merge 1 commit into
masterfrom
test/5678-output-caption-text2
Draft

zackees wants to merge 1 commit into
masterfrom
test/5678-output-caption-text2

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #5678.

HOLD: backpressure is closed. Leave this PR DRAFT and unarmed; land-drafts may promote it only after admission reopens and graph serialization permits. The claim is pending, with no refusal or competing implementation found.

Add direct actual-library characterization of obs_output_output_caption_text2 before its separate verbatim extraction and later Rust swap. The existing text suite pins pagination; the legacy text1 suite reaches the queue through its wrapper. These six cases call text2 itself to pin its own NULL diagnostic, inactive short circuit before reading NULL text, sparse independent tracks, copied text and repeated append order, empty-page behavior, caller duration on every page, and exact duration bits including signed zero, negative values, infinities and a quiet NaN payload (characterized, not endorsed).

The synthetic fixture supplies the real private fields/mutexes used by the exported library function, frees every queued allocation, and checks the allocation balance. No API replacement, running renderer, new Rust test executable, existing C test edit or public header change. The canonical graph registers the portable target once and explicitly links SIMDe for Darwin and pthreads on Windows.

Characterization has no failing RED implementation: it records the current C behavior. Extraction follows in its own PR; the Rust swap and its RED/GREEN remain future work. Tier 1/3 do not apply to this C-only prerequisite; Tier 2 owns the real API checks, and no protocol implementation changes require Tier 4.

Linux baseline evidence on the pre-extraction tree: build_ci_audit/char-caption-text2/focused-tier2.py reuses the standard Tier 2 image and this slot's warm build volume, builds both libraries and the three caption fixtures, verifies each selected libobs loader path, compares exports, and runs each fixture 25 consecutive times per backend. All passed; exports IDENTICAL (1769). Artifact local-test-rQ6gfs.log. This is focused local evidence; the full required suite remains with hosted Tier 2. The initially started full inventory was intentionally stopped (exit 137) and replaced by this focused replay; it is not reported as a full-suite pass.

The sole read-only pre-push review found no issues. Graph ordering (2/2) and Windows diagnostic contract checks (4/4) pass.

The final extraction tree also passed the same focused Linux 3-fixture x25 x2 replay with verified loaders and 1,769 identical exports (local-test-FIQo93.log). Full SOLDR_PORCELAIN=0 ./lint passed, exit 0 / final lane lint: ok (153.8s) (local-test-LbsoYI.log). Cross-link evidence will be appended before handoff.

Final serialized cross-link check: uv run --no-project --with cmake==3.31.10 --with ninja==1.13.0 build_ci_audit/char-caption-text2/cross-links.py passed (wrapper exit 0, explicit Windows/Darwin alias exits 0; artifact local-test-zGmPNf.log). It runs the standard eight Windows Rust category links, then each complete native inventory with the new shared-library fixture explicitly appended. Each recorded inventory contains 85 targets: hybrid libobs, 83 existing Rust-static fixtures and test_output_caption_text2. Both Ninja logs confirm new fixture compilation and linking. Windows native inventory finished in 147.56 s, Darwin arm64 in 110.33 s. These are link checks; native Windows/macOS runtime and the full Tier 2 suite remain hosted validation.

Publication through ./push passed all-six-target client lint/Dylint (characterization 17.9 s, extraction 26.8 s). Missing xmllint prevented complete client-check evidence; ordinary required PR CI remains enabled. No hosted checks were awaited, and auto-merge remains off.

The separate extraction is #5681, stacked on this characterization head.

@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/5678-output-caption-text2 branch from 2c32473 to 41237f3 Compare November 26, 2026 06:14
@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_caption_text2.c"],"head":"91679ceda97d9a22e18736a1be67369ac49cc22d","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":"77681778082e495a5824e4f9805357bd9fc0e98e0513c7488b020d7957208e18","tree":"1b98951cf3aeccaaa5b9c6d122648f7c98c6feb8"}}

Ci-Attestation: {"at":1795673391,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":80,"stamp":"72c7641b44c15b0e6cc75ac2d9851c17","tree":"1b98951cf3aeccaaa5b9c6d122648f7c98c6feb8","v":1,"via":"run"}
Ci-Attestation: {"at":1795673391,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":80,"stamp":"9245ab6a080ea9597b08a73edbf25942","tree":"1b98951cf3aeccaaa5b9c6d122648f7c98c6feb8","v":1,"via":"run"}
Ci-Attestation: {"at":1795673391,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":80,"stamp":"12d612b667b75851f3504b1de410b4bc","tree":"1b98951cf3aeccaaa5b9c6d122648f7c98c6feb8","v":1,"via":"run"}
Ci-Attestation: {"at":1795673391,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":80,"stamp":"640028af395acff069cdfe4888b2e9f4","tree":"1b98951cf3aeccaaa5b9c6d122648f7c98c6feb8","v":1,"via":"run"}
Ci-Attestation: {"at":1796409805,"gate":"general/all/client-lint","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"8c48b0c7c3a0a2fe5b40fb8669265254","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1795673391,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":80,"stamp":"abb1151f8daa51b4a971ca3fa84c0170","tree":"1b98951cf3aeccaaa5b9c6d122648f7c98c6feb8","v":1,"via":"run"}
Ci-Attestation: {"at":1796409807,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"2e5926ec2f45a52e2edf199a2aa30af4","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409807,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"9a2d33f16a1838bbc4ae20326ce566b1","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409807,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"a016f17d4de9652b34789eddaf388dfa","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409807,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"9a6073c5a27ecfc1572cc62168ab1cc1","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409806,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"798d1dbaf6e5b34b9b7a2fe96ccd224f","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409806,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"f4aeed5c4e4f7e00f40d528d3f6c6c61","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409807,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"9ffdf8d2f1ea2008267d824eff329536","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409807,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"75fbc4ebae834581dc45add2ac98d6d9","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409806,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"21f58f7431930c6e568d1202f525d781","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409806,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"59ada2859f3ed7ad1ee492293f3d2523","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409806,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"2b61abb04c0bb6c905b6f3fca81a9d63","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1796409806,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ed6ff4b27965cc7620bb3ab22b019ab979bf5b55c88d6e72e9e78aa96a12385e","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":511,"stamp":"5c112fdb04cfef84545531d8bc31bc1e","tree":"59913df442417470e92f154f9df750bdbc6796ae","v":1,"via":"run"}
Ci-Attestation: {"at":1795673655,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"c9932136e55968d5712695743e3b3f3be5b8e9e1125185f6370d8abe6f6a61f0","lane":"client-test-x86_64-unknown-linux-gnu","parents":["1a371e8bc576a915376715bf91ad39d30518b860"],"secs":263,"stamp":"e92a27dbf3ff0636e6efd87917fec6a6","tree":"1b98951cf3aeccaaa5b9c6d122648f7c98c6feb8","v":1,"via":"run"}
@zackees
zackees force-pushed the test/5678-output-caption-text2 branch from 41237f3 to 00b1af2 Compare December 4, 2026 18:43

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