Skip to content

ci/build: share native link support across Rust-static consumers - #5246

Merged
zackees merged 31 commits into
masterfrom
infra/5219-shared-native-link-support
Nov 20, 2026
Merged

zackees merged 31 commits into
masterfrom
infra/5219-shared-native-link-support

Conversation

@zackees

@zackees zackees commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Standalone Rust-static consumers could select OBS DLL allocator/logger imports before their own Rust objects and omit private C adapters. CMake and Cargo-native consumers now share a demand-linked manifest of real support members and their owning native dependencies. MSVC consumers retain OBS headers while selecting the static component without the full OBS DLL import library. Fixture recording providers keep their compile definitions and precedence; ELF and Darwin preserve their declared provider order.

The cross-link inventory follows generated Rust archive link arguments as well as CMake dependencies, including consumers without a _rust suffix. It uses RelWithDebInfo and audits the MSVC provider boundary even when LLD accepts a mixed import/static link. Context and weak-reference implementations were extracted unchanged into production units shared with support; oracle paths follow that extraction. Newly merged output, graphics and audio-capture adapters are included in the shared manifest.

The latest repair restores find_service after #5272 extracted it from obs-service.c.h into obs-service-find.c.h. Master includes the lookup in its production core-output unity group. Standalone support still included the old lifecycle source, so pulling an obs_output COFF object left the extracted lookup undefined in nine unrelated hotkey fixtures. A separate lazy archive member now includes the real production lookup for both support consumers.

RED: run 44628094583, Windows cross-link job and native Windows Tier 2 job at 65a5084d1 fail the same nine hotkey targets with find_service. GREEN repair commit: 8a33d34e414438604d91e74a7f6ddd6f96386135 (proof/signing amendments preserve the validated source tree).

Validation of this repair:

  • Complete ci/windows_link_check.py: eight Windows category binaries, 71 Windows and 71 Darwin Rust-static fixtures, and both hybrid libraries linked. All nine RED targets now link; the MSVC provider audit passed.
  • Whole native_build:: module: 324 passed plus two isolated child tests.
  • soldr cargo fmt --all --check: passed with matching input evidence.
  • 60 shared-support, inventory, portability and checker self-tests passed.
  • Audit of master bea1a54c3: all 913 targets, 33 retained native support fragments and four folded CMake/native fragments preserve their support. Clean-merge audits preserve the newer hotkey helper in all nine repaired targets. The final audit against master 3b8563940 preserves support for all 917 targets and confirms that all 38 shared members and their production includes exist.

Publication through ./push passed complete client lint, including Clippy and Dylint on all six supported targets, all repository self-tests/data validators, 9,266 workspace tests (six configured skips), 920 utility feature tests, doctests and Windows GNU category links. The final commit is signed. Optional Swift proof was unavailable because swift-format is absent; no Swift file changed. Hosted PR/queue checks remain the merge gate.

Earlier prerequisite validation also passed every Linux Rust-static target and both C-reference/hybrid runtime suites. Windows and Darwin local checks link binaries without executing them; fresh native Windows runtime validation remains hosted. Existing C tests, public C headers, WebSocket sources and workflow files are unchanged by the repair.

Test cost for the original added Rust regressions: longest 0.0167 s over 25 runs each, peak child RSS 15,328 KiB, no test-owned threads. This repair adds no Rust test or test executable.

Refs #5219
Refs #5145

@zackees zackees changed the title build: preserve fixture-owned adapter compile definitions (Refs #5219) ci/build: share native link support across Rust-static consumers Nov 19, 2026
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees enabled auto-merge November 19, 2026 14:28
@zackees zackees added pool-active Pool worker owns this PR; automated rebases must skip it and removed pool-active Pool worker owns this PR; automated rebases must skip it labels Nov 19, 2026
@zackees
zackees force-pushed the infra/5219-shared-native-link-support branch from 42ecc1a to 94e8fa1 Compare November 19, 2026 16:33
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees force-pushed the infra/5219-shared-native-link-support branch from 94e8fa1 to 15467c3 Compare November 19, 2026 18:39
@zackees
zackees disabled auto-merge November 19, 2026 18:58
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees force-pushed the infra/5219-shared-native-link-support branch from 15467c3 to d7d9198 Compare November 19, 2026 21:06
@zackees
zackees enabled auto-merge November 19, 2026 21:07
@zackees
zackees force-pushed the infra/5219-shared-native-link-support branch from d7d9198 to 65a5084 Compare November 19, 2026 22:22
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 20, 2026
@zackees
zackees added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit fa2c3ec Nov 20, 2026
45 checks passed
@zackees
zackees deleted the infra/5219-shared-native-link-support branch November 20, 2026 03:10
rdoupe added a commit that referenced this pull request Nov 20, 2026
After obs_output_valid()'s exact NULL diagnostic, the safe query returns
the output's own last_error_message, else the first error of the video
encoder slots in ascending order, else of the audio slots, else NULL.
Each field is read lazily, so nothing below a hit is read. The pointer is
borrowed unchanged, empty and non-UTF-8 strings included: no copy, cache,
reference or lock. The shim reads through the existing production
adapters of the output error slot, the video and audio slots and the
encoder error field, so no new layout crosses the ABI.

The output-encoder-getters and encoder-last-error adapters join the shared
Rust-static support manifest (#5246) as lazy members, so a standalone
Rust-static fixture that pulls this query links their real C.

The original moves whole into libobs.ported-output-get-last-error, which
only the C reference builds; the hybrid core-output group drops it and
the Rust symbol is exported in its place.

    soldr cargo test -p obs-data --test obs-tests-core -- output::output_get_last_error
    test result: ok. 8 passed; 0 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ci-Attestation: {"at":1795147788,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":94,"stamp":"b53fc5864663a9fa213962e48cfaff47","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147788,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":94,"stamp":"429c8d4a91d3a818c5598c63b8d2d9f4","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147788,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":94,"stamp":"cbb8bce94c1b700306b2299a352cdb94","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147788,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":94,"stamp":"40e6cecda41b24dde0f79f687bcedeb8","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"general/all/client-lint","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"07c944530f5730a258ce5dc416eb5c27","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147788,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":94,"stamp":"5ceb60eca544e127400854bb4e900019","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"b5d8363392c4e564349c2860ef045870","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"db301e1a0c813d9534b3b7a1cb2e5228","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"a809086b725b8e36943e88aa9e9b8a03","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"f467c22101309214f4dc6e31a309ef77","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"b5f36d586b97b8ccef30f2aec23aefd2","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"31a1deefc4ef4c1549e02b4a2d1bab4d","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"440eaa5d5a31a8d8ccfd9a55c2f4b338","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"71c98b5afafd89fa413b077e69fa7e5f","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"4daeb44db1974ac4409d2bb6414711b2","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"68cb096151affdfa1d29c1bac6cdae41","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"877c07051438b0873641c344ab01687b","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"c1a3ba6cdb85c4e097013f414fe92d5c5c35c5cf92e57ccd97a802e277bfde24","lane":"client-lint","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":56,"stamp":"de2385c5b01f56834670d11911aad94a","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}
Ci-Attestation: {"at":1795147942,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"d2f1504d0b7ce1efdafe57cf8dabb4511ce3c225544232476b96106a01590e5e","lane":"client-test-x86_64-unknown-linux-gnu","parents":["686a5396b69bd003e81ba508cee3ddda822d823c"],"secs":153,"stamp":"c21a63ae5bdc1cbc981e6e78da032884","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"0f5f3e10e5509eafe8a72d1ea4b17b6101049ab9","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-output+.h.c","libobs/build/libobs.ported-output-get-last-error+.h.c","libobs/build/ported-source-sets/output-get-last-error.json","libobs/cmake/rust-exports.d/obs-output-output_get_last_error.txt","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_output_get_last_error_swap_is_registered.rs","rust/obs-c-oracle/oracle/output_get_last_error.c","rust/obs-output/src/ffi/mod.rs","rust/obs-output/src/ffi/output_get_last_error.rs","rust/obs-output/src/lib.rs","rust/obs-output/src/output_get_last_error.rs","rust/obs-output/tests/output/main.rs","rust/obs-output/tests/output/output_get_last_error.rs","rust/obs-output/tests/output/output_get_last_error_parity.rs","test/cmocka/build/rust-static-support.json","test/cmocka/encoder-last-error-link-support.c","test/cmocka/output-encoder-getters-link-support.c"],"head":"3e11e4aab3150f68bff83b4380337614509af3e6","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":"1bbb0f0ee7af9ea6265c7bd9ec80db9132b5325864d807f902c5cad0e9474933","tree":"fef1412fc7ae8ea235625f6c013e0e55a8300ae8"}}
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 20, 2026
rdoupe added a commit that referenced this pull request Nov 20, 2026
After obs_output_valid()'s exact NULL diagnostic, the safe query returns
the output's own last_error_message, else the first error of the video
encoder slots in ascending order, else of the audio slots, else NULL.
Each field is read lazily, so nothing below a hit is read. The pointer is
borrowed unchanged, empty and non-UTF-8 strings included: no copy, cache,
reference or lock. The shim reads through the existing production
adapters of the output error slot, the video and audio slots and the
encoder error field, so no new layout crosses the ABI.

The output-encoder-getters and encoder-last-error adapters join the shared
Rust-static support manifest (#5246) as lazy members, so a standalone
Rust-static fixture that pulls this query links their real C.

The original moves whole into libobs.ported-output-get-last-error, which
only the C reference builds; the hybrid core-output group drops it and
the Rust symbol is exported in its place.

    soldr cargo test -p obs-data --test obs-tests-core -- output::output_get_last_error
    test result: ok. 8 passed; 0 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ci-Attestation: {"at":1795149547,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"cc0cd657d7bd1a832cfc96f2dc28d417","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"f6ef1480ab57055cf2eb5938dc182649","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"40b0d2ef6e67b6332883a22ad8c155ae","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"383b71a2930be42bfa75281b5a6156d1","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"general/all/client-lint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"1e4ae35a2c5d8884e2ba11338b059ebe","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"2c756a19935b9720f35cc6a389059f03","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"638955ddd09abed3ebe2ffeb6494fe23","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"8db470d3a2ee442b21a5b018b1e39d11","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"dd2cc8b0c804e63b750e59a79b4f291d","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"2f33d6b2c2d916f6820bee9e6e31e187","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"3482edd14b020d82ce754814f83d174b","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"eda5d3a091a9bbe839be2b3f40bb1bc0","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"1252c0da17a78d0e1cfc2c1505d7d6c1","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"9dd71355a58432db86bef1f67493b585","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"fc366cfada738139ce20209a99ba0f4d","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"4d0bf2cbe88e7d37683d2c17ac0c3e5a","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"f6d107f0810c75e6470168f50046593c","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"b9b38f958b396e356a67b9934d5c7736","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149699,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"4439d6bfffcb54359f4819d9b4b3f50919a8bfaf34620c5dc8ae6ae704514203","lane":"client-test-x86_64-unknown-linux-gnu","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":150,"stamp":"7f77e2922b55ebb951c101d3af11ff10","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"5bc3cf493a27ddbc58ca0609a1e3eba587201586","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/build/libobs.core-output+.h.c","libobs/build/libobs.ported-hotkey-combination-background-id+.h.c","libobs/build/libobs.ported-output-get-last-error+.h.c","libobs/build/ported-source-sets/hotkey-combination-background-id.json","libobs/build/ported-source-sets/output-get-last-error.json","libobs/cmake/rust-exports.d/obs-hotkey-combination_background_id.txt","libobs/cmake/rust-exports.d/obs-output-output_get_last_error.txt","libobs/obs-hotkey-combination-background-id-fields.c.h","libobs/obs-hotkey-combination-background-id-lock.c.h","libobs/obs-hotkey-combination-background-id.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_hotkey_combination_background_id_swap_is_registered.rs","rust/obs-build/tests/native/registration/canonical_output_get_last_error_swap_is_registered.rs","rust/obs-c-oracle/oracle/hotkey_combination_background_id.c","rust/obs-c-oracle/oracle/output_get_last_error.c","rust/obs-hotkey/src/combination_background_id.rs","rust/obs-hotkey/src/ffi/combination_background_id.rs","rust/obs-hotkey/src/ffi/mod.rs","rust/obs-hotkey/src/lib.rs","rust/obs-hotkey/tests/hotkey/background_query_parity.rs","rust/obs-hotkey/tests/hotkey/combination_background_id.rs","rust/obs-hotkey/tests/hotkey/combination_background_id_parity.rs","rust/obs-hotkey/tests/hotkey/main.rs","rust/obs-output/src/ffi/mod.rs","rust/obs-output/src/ffi/output_get_last_error.rs","rust/obs-output/src/lib.rs","rust/obs-output/src/output_get_last_error.rs","rust/obs-output/tests/output/main.rs","rust/obs-output/tests/output/output_get_last_error.rs","rust/obs-output/tests/output/output_get_last_error_parity.rs","test/cmocka/build/rust-static-support.json","test/cmocka/encoder-last-error-link-support.c","test/cmocka/output-encoder-getters-link-support.c"],"head":"7b338f3317cc2ef668b938b8306cd42595f75000","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":"e2c4b173bfe783cdb6381a80c8edc19b42f2bb916108a6c8f6744a1e42df042e","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d"}}
rdoupe added a commit that referenced this pull request Nov 20, 2026
After obs_output_valid()'s exact NULL diagnostic, the safe getter
returns the output's borrowed context.name pointer, read once through the
private obs_output_get_name_context_name() adapter: no copy, cache,
reference or lock, and NULL, empty and non-UTF-8 names come back
unchanged.

The adapter joins the shared Rust-static support manifest (#5246) as a
lazy member, so a standalone Rust-static fixture that pulls the getter
links its real C.

The original moves whole into libobs.ported-output-get-name, which only
the C reference builds; the hybrid core-output group drops it and the
Rust symbol is exported in its place.

    soldr cargo test -p obs-data --test obs-tests-core -- output::output_get_name output::interleave
    test result: ok. 73 passed; 0 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ci-Attestation: {"at":1795166687,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"a80aa6ab8d996bc123f554c816ec497c","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"a115f5a822a05ef893f0f8b1863d6d2b","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"8c7435bb1dbd749e91e1bfc62124b445","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"558b808c91263b94add310ba8b9b4c11","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"general/all/client-lint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"1fe2f1b5ccf360d9937e69aaedec0cad","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"8b3b31f71efc515f5bfc0595fae27a7a","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"861025b77b3edd97871f2ab615bb8278","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"e7a6d27997dfee6bfe38814acab7064d","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"ea4dadf615000282424a556f5c960f53","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"4da888ef5a62ff5a7217e28b45950ea1","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"ab2db4ab59cdacf6279f670a0a15fe4c","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"d1a0b2a9860e02da1e5a9e79e90c6ef0","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"d676da58ee4022a420c729467541492f","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"0946882b9546b7a0632a89628c9e8ebb","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"1acb66375a62177b5869d3acc4bcca19","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"f99405bdb82a30c9034319561d9045f5","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"9a16934117276256560f02fec20d885f","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"35f41ca5770ac83667b680a54debf5fc","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166829,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"3189028b6269f043b306f36cdfa6f1f983790dcbf787a12a08a4802f70e68c42","lane":"client-test-x86_64-unknown-linux-gnu","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":142,"stamp":"58be6e03e0c66814aace0a739d0e73da","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"52ccd8385b7bbdd7451bfd314112f4339073ae6b","coverage":"all-tracked-applicable-files","diff":["ci/test_bench_libobs_stand_ins.py","libobs/build/libobs.core-output+.h.c","libobs/build/libobs.ported-output-get-name+.h.c","libobs/build/ported-source-sets/output-get-name.json","libobs/cmake/rust-exports.d/obs-output-output_get_name.txt","libobs/obs-output-get-name-fields.c.h","libobs/obs-output-interleave-name-fields.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_output_get_name_swap_is_registered.rs","rust/obs-c-oracle/benches/port_comparison.rs","rust/obs-c-oracle/oracle/output_get_name.c","rust/obs-c-oracle/oracle/output_interleave.c","rust/obs-output/src/ffi/mod.rs","rust/obs-output/src/ffi/output_get_name.rs","rust/obs-output/src/ffi/output_interleave.rs","rust/obs-output/src/lib.rs","rust/obs-output/src/output_get_name.rs","rust/obs-output/tests/output/interleave_parity.rs","rust/obs-output/tests/output/main.rs","rust/obs-output/tests/output/output_get_name.rs","rust/obs-output/tests/output/output_get_name_parity.rs","test/cmocka/build/rust-static-support.json","test/cmocka/output-get-name-link-support.c"],"head":"d895a94575f63d98398ed97449fafc809f51d492","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":"1f6e59232f513163ea691e0d7beb76aa794c7ae740a77f76bd48ba6374578f25","tree":"5434f3e5899983aba9359904776346e92b9d5e3e"}}
wesleyhawes pushed a commit to wesleyhawes/obs-studio that referenced this pull request Nov 21, 2026
…5308) (obs-rust#5339)

* test: mirror output last-error query characterization (RED, Refs obs-rust#5308)

Tier 1 mirrors every assertion of the unchanged
test_output_get_last_error.c against the safe query on a recording model
of the output's fields: result identity, the NULL diagnostic, and every
field read once in priority order with nothing read after a hit. Tier 3
runs the extracted original and the shim on one real-layout output and
encoder fixture through the production field adapters, checks those
adapters address the original's fields, and shows five mutants caught.

The safe query is a stub that returns None:

    soldr cargo test -p obs-data --test obs-tests-core -- output::output_get_last_error
    test result: FAILED. 2 passed; 6 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* obs-output: swap output last-error query to safe Rust (Refs obs-rust#5308)

After obs_output_valid()'s exact NULL diagnostic, the safe query returns
the output's own last_error_message, else the first error of the video
encoder slots in ascending order, else of the audio slots, else NULL.
Each field is read lazily, so nothing below a hit is read. The pointer is
borrowed unchanged, empty and non-UTF-8 strings included: no copy, cache,
reference or lock. The shim reads through the existing production
adapters of the output error slot, the video and audio slots and the
encoder error field, so no new layout crosses the ABI.

The output-encoder-getters and encoder-last-error adapters join the shared
Rust-static support manifest (obs-rust#5246) as lazy members, so a standalone
Rust-static fixture that pulls this query links their real C.

The original moves whole into libobs.ported-output-get-last-error, which
only the C reference builds; the hybrid core-output group drops it and
the Rust symbol is exported in its place.

    soldr cargo test -p obs-data --test obs-tests-core -- output::output_get_last_error
    test result: ok. 8 passed; 0 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ci-Attestation: {"at":1795149547,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"cc0cd657d7bd1a832cfc96f2dc28d417","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"f6ef1480ab57055cf2eb5938dc182649","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"40b0d2ef6e67b6332883a22ad8c155ae","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"383b71a2930be42bfa75281b5a6156d1","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"general/all/client-lint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"1e4ae35a2c5d8884e2ba11338b059ebe","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149547,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":93,"stamp":"2c756a19935b9720f35cc6a389059f03","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"638955ddd09abed3ebe2ffeb6494fe23","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"8db470d3a2ee442b21a5b018b1e39d11","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"dd2cc8b0c804e63b750e59a79b4f291d","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"2f33d6b2c2d916f6820bee9e6e31e187","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"3482edd14b020d82ce754814f83d174b","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"eda5d3a091a9bbe839be2b3f40bb1bc0","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"1252c0da17a78d0e1cfc2c1505d7d6c1","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"9dd71355a58432db86bef1f67493b585","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"fc366cfada738139ce20209a99ba0f4d","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"4d0bf2cbe88e7d37683d2c17ac0c3e5a","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"f6d107f0810c75e6470168f50046593c","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149454,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"22f3ed3edbceb7d08607215a5ec8c77f09ba0aaeab3ffa0b387d1c022d6fe2ff","lane":"client-lint","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":55,"stamp":"b9b38f958b396e356a67b9934d5c7736","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}
Ci-Attestation: {"at":1795149699,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"4439d6bfffcb54359f4819d9b4b3f50919a8bfaf34620c5dc8ae6ae704514203","lane":"client-test-x86_64-unknown-linux-gnu","parents":["0b1d7bc235da7d53ac0e185f89fe2dd0de41e3cd"],"secs":150,"stamp":"7f77e2922b55ebb951c101d3af11ff10","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"5bc3cf493a27ddbc58ca0609a1e3eba587201586","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/build/libobs.core-output+.h.c","libobs/build/libobs.ported-hotkey-combination-background-id+.h.c","libobs/build/libobs.ported-output-get-last-error+.h.c","libobs/build/ported-source-sets/hotkey-combination-background-id.json","libobs/build/ported-source-sets/output-get-last-error.json","libobs/cmake/rust-exports.d/obs-hotkey-combination_background_id.txt","libobs/cmake/rust-exports.d/obs-output-output_get_last_error.txt","libobs/obs-hotkey-combination-background-id-fields.c.h","libobs/obs-hotkey-combination-background-id-lock.c.h","libobs/obs-hotkey-combination-background-id.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_hotkey_combination_background_id_swap_is_registered.rs","rust/obs-build/tests/native/registration/canonical_output_get_last_error_swap_is_registered.rs","rust/obs-c-oracle/oracle/hotkey_combination_background_id.c","rust/obs-c-oracle/oracle/output_get_last_error.c","rust/obs-hotkey/src/combination_background_id.rs","rust/obs-hotkey/src/ffi/combination_background_id.rs","rust/obs-hotkey/src/ffi/mod.rs","rust/obs-hotkey/src/lib.rs","rust/obs-hotkey/tests/hotkey/background_query_parity.rs","rust/obs-hotkey/tests/hotkey/combination_background_id.rs","rust/obs-hotkey/tests/hotkey/combination_background_id_parity.rs","rust/obs-hotkey/tests/hotkey/main.rs","rust/obs-output/src/ffi/mod.rs","rust/obs-output/src/ffi/output_get_last_error.rs","rust/obs-output/src/lib.rs","rust/obs-output/src/output_get_last_error.rs","rust/obs-output/tests/output/main.rs","rust/obs-output/tests/output/output_get_last_error.rs","rust/obs-output/tests/output/output_get_last_error_parity.rs","test/cmocka/build/rust-static-support.json","test/cmocka/encoder-last-error-link-support.c","test/cmocka/output-encoder-getters-link-support.c"],"head":"7b338f3317cc2ef668b938b8306cd42595f75000","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":"e2c4b173bfe783cdb6381a80c8edc19b42f2bb916108a6c8f6744a1e42df042e","tree":"08e72356b48064abd5621b74739e9cf9dc45ec8d"}}

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
wesleyhawes pushed a commit to wesleyhawes/obs-studio that referenced this pull request Nov 21, 2026
…obs-rust#5358)

* test: mirror output name getter characterization (RED, Refs obs-rust#5302)

Tier 1 mirrors every case of the unchanged test_output_get_name.c on the
safe getter: the NULL diagnostic with nothing read, the borrowed
context-name pointer read silently and repeatedly, a generated name, and
the current slot after it changes. Tier 3 runs the extracted original and
the shim on one real-layout output through the new private context-name
adapter, compares pointer identity, the exact obs_output_valid() log and
untouched output bytes, and shows four mutants caught.

The interleaver now names its output through a private seam,
obs_output_interleave_output_name(), as it already does for its encoders,
so its synthetic fixture stops defining the public getter the port will
export. The bench stand-in moves to the seam with it.

The safe getter is a stub that neither logs nor projects:

    soldr cargo test -p obs-data --test obs-tests-core -- output::output_get_name
    test result: FAILED. 1 passed; 7 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* obs-output: swap output name getter to safe Rust (Refs obs-rust#5302)

After obs_output_valid()'s exact NULL diagnostic, the safe getter
returns the output's borrowed context.name pointer, read once through the
private obs_output_get_name_context_name() adapter: no copy, cache,
reference or lock, and NULL, empty and non-UTF-8 names come back
unchanged.

The adapter joins the shared Rust-static support manifest (obs-rust#5246) as a
lazy member, so a standalone Rust-static fixture that pulls the getter
links its real C.

The original moves whole into libobs.ported-output-get-name, which only
the C reference builds; the hybrid core-output group drops it and the
Rust symbol is exported in its place.

    soldr cargo test -p obs-data --test obs-tests-core -- output::output_get_name output::interleave
    test result: ok. 73 passed; 0 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ci-Attestation: {"at":1795166687,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"a80aa6ab8d996bc123f554c816ec497c","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"a115f5a822a05ef893f0f8b1863d6d2b","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"8c7435bb1dbd749e91e1bfc62124b445","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"558b808c91263b94add310ba8b9b4c11","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"general/all/client-lint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"1fe2f1b5ccf360d9937e69aaedec0cad","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166687,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":94,"stamp":"8b3b31f71efc515f5bfc0595fae27a7a","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"861025b77b3edd97871f2ab615bb8278","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"e7a6d27997dfee6bfe38814acab7064d","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"ea4dadf615000282424a556f5c960f53","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"4da888ef5a62ff5a7217e28b45950ea1","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"ab2db4ab59cdacf6279f670a0a15fe4c","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"d1a0b2a9860e02da1e5a9e79e90c6ef0","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"d676da58ee4022a420c729467541492f","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"0946882b9546b7a0632a89628c9e8ebb","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"1acb66375a62177b5869d3acc4bcca19","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"f99405bdb82a30c9034319561d9045f5","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"9a16934117276256560f02fec20d885f","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166592,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b4936cf2492adbc414968395857f60001822732a50d0695e3a053c4452b843a3","lane":"client-lint","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":85,"stamp":"35f41ca5770ac83667b680a54debf5fc","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}
Ci-Attestation: {"at":1795166829,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"3189028b6269f043b306f36cdfa6f1f983790dcbf787a12a08a4802f70e68c42","lane":"client-test-x86_64-unknown-linux-gnu","parents":["79fa2cf6f1d94651e9a2f80e0be439df2ebd9162"],"secs":142,"stamp":"58be6e03e0c66814aace0a739d0e73da","tree":"5434f3e5899983aba9359904776346e92b9d5e3e","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"52ccd8385b7bbdd7451bfd314112f4339073ae6b","coverage":"all-tracked-applicable-files","diff":["ci/test_bench_libobs_stand_ins.py","libobs/build/libobs.core-output+.h.c","libobs/build/libobs.ported-output-get-name+.h.c","libobs/build/ported-source-sets/output-get-name.json","libobs/cmake/rust-exports.d/obs-output-output_get_name.txt","libobs/obs-output-get-name-fields.c.h","libobs/obs-output-interleave-name-fields.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_output_get_name_swap_is_registered.rs","rust/obs-c-oracle/benches/port_comparison.rs","rust/obs-c-oracle/oracle/output_get_name.c","rust/obs-c-oracle/oracle/output_interleave.c","rust/obs-output/src/ffi/mod.rs","rust/obs-output/src/ffi/output_get_name.rs","rust/obs-output/src/ffi/output_interleave.rs","rust/obs-output/src/lib.rs","rust/obs-output/src/output_get_name.rs","rust/obs-output/tests/output/interleave_parity.rs","rust/obs-output/tests/output/main.rs","rust/obs-output/tests/output/output_get_name.rs","rust/obs-output/tests/output/output_get_name_parity.rs","test/cmocka/build/rust-static-support.json","test/cmocka/output-get-name-link-support.c"],"head":"d895a94575f63d98398ed97449fafc809f51d492","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":"1f6e59232f513163ea691e0d7beb76aa794c7ae740a77f76bd48ba6374578f25","tree":"5434f3e5899983aba9359904776346e92b9d5e3e"}}

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant