Skip to content

test: register #1390 native graph batches 5-11 - #3914

Merged
zackees merged 25 commits into
masterfrom
test/1390-b5-b11
Nov 7, 2026
Merged

zackees merged 25 commits into
masterfrom
test/1390-b5-b11

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Register 37 existing native compatibility executables once in the shared Cargo/CMake graph. Preserve their unchanged C fixtures, sources, dependency order, owner/platform/SDK guards, direct commands and timeouts. Both consumers run the original cases without skips against checkout-built hybrid and C-reference cores. Add contracts to the existing Application category binary; no new Rust test executable or workflow.

Refs #1390

Batch Registered executables Native cases per consumer/core
5 test_visibility_transition, test_xcomposite_error_replies, test_preview_only_hide, test_raw_output_video_reset, test_transition_audio_clock, test_transition_audio_rescale, test_transition_removed_child_audio 24
6 test_obs_scripting_lua_host_macos, test_obs_scripting_lua_host_posix, test_obs_scripting_lua_host_windows, test_obs_scripting_python_host_macos, test_obs_scripting_python_host_posix, test_obs_scripting_python_host_windows 6
7 test_obs_ffmpeg_host_linux, test_obs_ffmpeg_host_posix, test_obs_scripting_python_import_host_macos, test_obs_scripting_python_import_host_windows 8
8 test_obs_ffmpeg_mux_host_macos, test_obs_ffmpeg_mux_host_posix 4
9 test_hotkey_binding_getters, test_module_failure_info, test_scene_item_state_getters, test_pulse_timing, test_ffmpeg_encoder_missing, test_ffmpeg_output_connecting 16
10 test_alsa_capture_format, test_alsa_device_lost, test_alsa_early_stop, test_alsa_reopen_destroy, test_jack_input, test_ffmpeg_mux_helper 18
11 test_rtmps_nanostream, test_rtmps_restream, test_rist_open_cleanup, test_srt_open_close, test_media_packet_eof_leak, test_curl_accept_encoding 21

The runtime scope totals 97 unchanged cmocka cases per consumer/core. Batch 8 and curl are standalone helpers; running them in both core lanes does not make them core ABI tests. Host-named helpers retain their original scripted host stand-ins; this is Linux execution, with synthetic configuration checks for other hosts.

Replay and RED/GREEN evidence:

  • Batch 4 was squash-merged in PR 3877. Replay only 1e0c4b60c..7fba08809 onto master e4571c595, dropping all batch-4 commits. Range-diff: 20 equal patches; the remaining patch differs only in context after combining the disjoint scene render/state getter entries. All 523 pre-existing target/test records compare equal; inventory becomes 560.
  • Batch 5 original RED a4cd8adc3, 12b96c674, 7d112e681, 8511d1e55: missing registrations and stale-archive acceptance. GREEN 640f506a4, 5ceaef4d1, 517aaab34, d99f697bd. Replayed RED/GREEN ends at 4c8f23097.
  • Batch 6 RED 0f2e844e4 → GREEN baa6a203e (replayed 578225c40 → 3e3fa9f9b).
  • Batch 7 RED f3ea6d040 → GREEN 81ac40b84 (replayed 6375e304f → a5ca8459f).
  • Batch 8 RED fdc4ea7ba → GREEN b482c8c22, followed by Clippy cleanup 01556a4a4 (replayed 046a2d602 → 904b215a2, cleanup 813c68ea5).
  • Batch 9 RED 9a8b978fc → GREEN f870163b3 (replayed 5d4018c0b → 92c805514).
  • Batch 10 RED 59fe42f28 → GREEN 1514b98a4 (replayed 097511e73 → 4a4e11301).
  • Batch 11 RED ad4c2fa4a → GREEN 7fba08809 (replayed a36afc8d9 → e12b91f10).
  • Original RED logs are retained in the pool's per-batch report directories. Every batch 6–11 registration/guard RED exits 101 for absent graph entries; original per-slice reviews are clean. No fresh combined review is claimed.

Batch 5 also rejects stale externally supplied Rust archives before native compilation. Cargo's adjacent depfile identifies the production crate closure; newer inputs, missing inputs/metadata and foreign-tree metadata fail with a Soldr rebuild diagnostic. This is an mtime guard, not content attestation. Keep the adjacent depfile and honest timestamps.

Final-head combined validation on e12b91f106a8d2062b2492af1c8f54a9447512fe:

  • Rebuilt release libobs-rust from this tree in Tier 2 image obs-rust-linux-validate:cb8f699f47ef269d through Soldr, exit 0. Archive SHA256 703aaa65eef25544f0cdca23bed0054c50e245ed1633414489a89697f34a9c69; retained adjacent Cargo depfile. Fresh feature-enabled Application harness build passes. Read-only source mount, four CPUs, existing obs-rust-bind-libobs-build volume and persistent Soldr/registry/git caches. Reproduction: pool land-b5-b11/launch.sh and docker-run.sh.
  • Full registered batch 5–11 hybrid and C-reference GCC replays pass through both Cargo/cc::Build and CMake/CTest. All 14 runtime invocations exit 0: 97 native cases × two consumers × two cores = 388 case executions, 148 executable runs, with no skips. Each slice checks exact cmocka case counts and actual CTest inventories. Logs: runtime-{hybrid,c-reference}-canonical_*.log and runtime-summary.json. This supersedes the old batch-5 broad C-reference skip: the current full seven-fixture replay passes without any test edits or retries.
  • Full native_build:: module: 143 passed, exit 0, 35.76 s (native-build.log).
  • Graph portability, graph slices, sorting, cmocka compatibility, test-binary inventory and nextest guards: 28 passed, exit 0 (graph-guards.log).
  • Full SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none ./lint ran. Formatting, all Python self-tests, category inventory, workspace Clippy and all five feature-set Clippy lanes pass. Exit 1 occurs solely when Soldr refuses to build the unavailable nightly-2026-05-28 Dylint driver under clud; final three lines inspected (lint.log). Dylint remains unverified locally; no workaround or toolchain/dependency change attempted. Hosted Fast Gate must validate it.
  • git diff --check passes. Prior slice reviews are clean; range-diff verifies unchanged patches apart from the disjoint graph context above. No native-coverage label exists in the repository.

Test cost: unchanged original 25-run reduced-debug measurements: registration contracts longest ≤0.222 s, peak child RSS ≤15,564 KiB; no own Rust threads. Native compilation/CMake replay retains the existing native-build budget exception. Native fixtures retain their original workers/processes. Eight Rust category binaries remain.

Limitations: no native Windows/macOS execution, full workspace unittest, complete Tier 2/export sweep, app/profile/protocol/device validation or final-head Clang replay. Original batches 6–11 have dual-core GCC/Clang evidence; batch-5 Clang execution remains unverified. Required hosted PR/merge-group CI is the merge gate. No attestation stamp, cache pruning, soldr gc or Docker volume deletion. No existing C test/public header/WebSocket changes. This is partial coverage of the tracking issue.

Windows archive-diagnostic follow-up:

  • RED a9ba8cd2d: SOLDR_PORCELAIN=0 soldr cargo test -p obs-studio-rust --test obs-tests-app archive_input_uses_portable_separators exits 101: the host-independent Windows-style relative path retains backslashes instead of the required / separators.
  • GREEN 8c677c47f58d8c9b07c387d937dbc48961ec7abe: format the tree-relative stale input through a small private portable formatter, shared with the existing Application test binary. No host cfg or new executable. The freshness contract now asserts the portable input directly.
  • archive_freshness: all 3 tests pass (exit 0); full native_build::: all 144 pass (exit 0, 62.77 s). soldr cargo fmt --all --check and git diff --check pass.
  • Test cost: 25 reduced-debug archive_freshness module runs, longest 0.079 s, peak RSS 8,564 KiB; no own Rust threads.
  • Audited the other freshness test and depfile implementation: both checkout root and dependency inputs already use dunce::canonicalize before tree membership comparison, so short/long temp-root aliases are not compared lexically; depfile rule splitting uses colon-space rather than a drive-letter colon, and escaped spaces are retained. Remaining assertions do not depend on absolute temp paths. Windows execution, including actual short/long Windows aliases, remains unverified locally.
  • Full SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none ./lint passes, exit 0, including workspace/feature-set Clippy and all Dylints on this follow-up head. This supersedes the earlier local Dylint limitation for the current head.

Refs #1390. Preserve the original non-Windows guard and shared scripting host resource lock. Exercise unchanged cases through Cargo and CMake against built hybrid and C-reference cores.
@zackees
zackees enabled auto-merge November 7, 2026 16:15
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator. Pinned auto-merge is enabled for e12b91f; closingIssuesReferences is empty. All 14 combined dual-core GCC runtime invocations pass, 143 native_build contracts and 28 graph guards pass. Full lint reaches only the documented Soldr Dylint-driver refusal; hosted Fast Gate remains the merge gate. Pool response: land-b5-b11/response.md. Refs #1390.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit 57b8717 Nov 7, 2026
43 checks passed
@zackees
zackees deleted the test/1390-b5-b11 branch November 7, 2026 19:53
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 7, 2026
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