Skip to content

test: roll up #1390 native graph coverage and isolate registration modules - #3832

Merged
zackees merged 49 commits into
masterfrom
test/1390-native-graph-rollup
Nov 7, 2026
Merged

zackees merged 49 commits into
masterfrom
test/1390-native-graph-rollup

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Combine the 14 native graph slices into one queue entry, preserving each source PR's authored RED/GREEN and follow-up commits. Preserve every registration, guard, runtime contract and assertion. Refs #1390; this does not complete or close it.

Move 50 registration checks into independent module files under rust/obs-build/tests/native/registration/, with sorted declarations in the existing Application category harness. Assertion macro counts: 890 before / 890 after; 536 moved verbatim. The existing eight-category binary inventory is unchanged. Put each slice's complete changed documentation paragraphs in docs/rust-port/native-graph/<PR>.md, with historical evidence explicitly scoped; future slices add separate files instead of appending the shared document.

Retain #3814's Linux-only glyph dependency lookup and package-disabled configure regression, and #3816's Windows pthread dependency and assertion-helper splits. Reconcile the utility replay into a selected-graph fixture covering all 27 original standalone executables, restore every OS/core fact, retain XComposite timeout assertions, and compose the dual-core inventory (25 ordinary additions, two conditional Pulse tests, two independently counted archive members).

Included PR Native target(s) Original RED → final head
#3813 test_vaapi_device_select 1a54791bc → f94961f9a
#3814 test_glyph_atlas, test_hotkey_numpad_host, test_libobs_reference_hosts, test_nvenc_override 4b894cdfb → eda11c885
#3815 test_fade_to_color_mix, test_ffmpeg_mux_helper_host, test_frontend_obs_main_host, test_frontend_obsbasic_host, test_frontend_settings_host 9b1ab3658 → f980295e6
#3816 test_slideshow_size, test_stinger_monitoring_migration bfcc5655b → 0ad56f80f
#3817 test_win_vmic_route 7e8d71672 → 06682e480
#3818 test_mac_vmic_clock, test_mac_vmic_install 389836fcd → 1f6c60b59
#3819 test_frontend_tools_host, test_frontend_tools_host_macos b2036951e → 1169819e4
#3821 test_pulse_monitor_backlog, test_pulse_monitor_flags 94382a672 → 15a28fecf
#3822 test_x11_keymap b61e3dd34 → 3db27ae03
#3824 test_pipe_wait_error 525308283 → 06ae03d26
#3825 test_obs_ffmpeg_net_host, test_obs_outputs_host b7db686bc → 36ddbc99c
#3826 test_async_frame_pacing_steps_rust 9ac2768b8 → bd2ce7f4c
#3827 test_pipe_create2_exact_path, test_pipe_no_handle_leak, test_pipe_shell_argv0, test_pipe_stdio_inherit d155d0d29 → 335173667
#3828 test_async_conversion_plan_rust c85bbb9d3 → 39cf0c37b

Excluded: none of the 14 assigned PRs. #3806, #3807 and #3811 are untouched; their branches/PRs are outside this rollup. Included branches will be retained when their PRs are closed as superseded.

Validation:

  • All 50 registration checks pass. Eighteen Python graph/sorted-list/slice, CMake compatibility, static-link, Windows diagnostics, sanitizer and include guards pass. Whole-graph legacy replacement passes.
  • GCC and Clang each pass the actual Cargo/CMake 27-executable standalone utility replay, two-plugin-helper replay, PulseAudio replay, both production Rust-static archive replays and glyph-disabled-package configurations (12 additional focused runs). Final-head current-core OFF/ON Tier 2 and exact export parity remain required hosted validation; no broader application/profile/protocol completion is claimed.
  • Scoped application/build Clippy with libobs-integration passes on Linux and the Windows target; no complexity allowance or threshold increase. Scoped rustfmt passes. Eight category binaries remain.
  • Single primary read-only clud-review: clean; independently verified every source PR's changed graph records and registration assertions.
  • Test cost: 25 reduced debug observations of all 50 registration checks, longest 0.501 s, peak child RSS 32,672 KiB, no test-owned threads. Native compilation contracts keep the existing named compilation-budget exception and compiler/CMake subprocesses.
  • Full workspace lint was refused by clud's verification-ratio guard and was not retried or bypassed. Full unittest was not run because its wrapper prunes targets, prohibited by this assignment. No target pruning, soldr gc, workflow files, existing C-test/public-header or WebSocket changes. No native-coverage label exists/applies to this unchanged platform-code inventory repair.
  • Native Windows/macOS runtime cannot be run here. Windows-target Clippy and simulated selection/configure checks are compilation/selection evidence only.

Pipe smoke evidence: GCC and Clang each compile/link all five pipe executables through the actual Cargo graph and CMake consumer using installed OBS 32.1.2. Wait-error, exact-path, argv0 and stdio-inherit pass; no-handle-leak's stdio case passes, while its four existing socket-inheritance cases fail against this old external core, as already documented by #3827. CTest reports 4/5 executables passing; these assertions are preserved. This is external-library smoke evidence, not GREEN final-head hybrid/C-reference runtime parity. Required hosted Tier 2 must decide the current-core result.

Local evidence: registration local-test-peeoRR.log; Python guards local-test-oS8SIx.log; GCC utility local-test-JMA8wj.log; Clang utility local-test-ciHlmg.log; 12 focused GCC/Clang contracts local-test-GPp2M4.log; Linux Clippy local-test-SFLMmn.log; Windows-target Clippy local-test-ALscuD.log (final rerun also recorded); pipe smoke local-test-M7mTE1.log.

Windows configure repair (head b1e3039a8863801342b2af3474d3f71f4d751c8e):

  • RED b582a447c: the new native_test_graph_cmake_platform_requirements_allow_false_but_reject_unknown case in the existing Application binary fails with Unknown native test requirement UNIX. GREEN b1e3039a8 accepts undefined UNIX, APPLE, WIN32, and MSVC as false, retaining fatal errors for unknown names. The regression covers undefined/explicit true/explicit false, negation and nested all/any, and both UNXI and an unknown project fact even inside otherwise decisive conditions. No registrations or existing assertions were removed.
  • Audited all 36 distinct graph requirement expressions with CMake against an independent evaluator under Windows, macOS and Linux facts, leaving false CMake builtins undefined. All agree. Audited Windows selection: 312 targets with features enabled where available, no pkg-config requests; slideshow retains its conditional OBS::w32-pthreads dependency, and linked libobs publicly supplies pthreads to its consumers. The new POSIX pipe/host sources remain excluded on Windows. macOS selects no pkg-config requests either. No further Windows defect was found that warranted changing graph records or weakening guards.
  • Focused guards: 35 Python graph/sorting/compatibility/static-link/Windows-diagnostic/include/sanitizer/binary-budget checks pass. GCC passes 12 native graph checks including the actual native_test_graph_cmake_builds_and_runs_selected_contract; the thirteenth Qt metaobject check could not find local Qt6Core.pc. The actual selected Cargo/CMake compilation contract also passes with Clang.
  • GCC and Clang both pass canonical_frontend_utility_tests_run_unchanged with libobs-integration: the actual 27-executable standalone graph through Cargo and CMake. Initial attempts stopped at the local XCB package lookup; using installed cmocka/SIMDe/FreeType/XCB SDK paths resolved it without repository changes. GCC's first successful run hit a report-wrapper error; the bounded fallback preserves the successful command exit status.
  • Scoped Application/build Clippy with libobs-integration, rustfmt, gersemi 0.25.0, and diff whitespace checks pass. One primary read-only clud-review reports clean. Test cost for the new regression: 25 exact debug runs, longest wall 0.119 s, peak RSS 16,856 KiB, no test-owned threads; it spawns CMake processes. The existing eight-category binary inventory is unchanged.
  • Windows and macOS are unverified locally. Simulated facts do not prove native builds or runtime parity. Full local gate/Tier 2 were not run; hosted PR CI remains the merge gate. No target pruning, soldr gc, new workflow, existing C-test/public-header or WebSocket changes. A process-inspection diagnostic was refused and was not retried.

Repair evidence: RED local-test-iz1YbS.log plus its linked soldr porcelain log; focused GREEN local-test-oJjMsI.log; GCC graph checks local-test-WoI3Qj.log; Clang selected contract local-test-iCJiwz.log; Python guards local-test-yhnARq.log; Clippy local-test-kM6ADU.log; gersemi local-test-ndQ0sG.log; Clang utility local-test-weD6Iu.log; GCC utility /home/niteris/.clud/tmp/3832-gcc-utility-fallback.log.

macOS SIMDe fixture repair (head 84bf218a5):

  • RED 25364907b: standalone_core_headers_unavailable_hosts_need_no_packages reproduces the unused SIMDe lookup for a simulated macOS selection with both PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR set to /nonexistent. It fails with native dependency simde, matching the macOS job log. GREEN 84bf218a5 selects the graph before fixture setup and creates core/SIMDe interfaces only for selected header consumers. The same no-package regression passes for simulated macOS and Windows selections; Linux retains the glyph header dependency and its full runtime assertions. Slideshow retains its required headers on every host. No native contract, assertion, registration, existing C test or public header was removed or weakened.
  • GCC and Clang each pass canonical_frontend_utility_tests_run_unchanged (27-executable Linux Cargo/CMake replay) and canonical_plugin_configuration_helpers_run_unchanged (two-executable replay). All 12 focused native graph checks pass with GCC (Qt metaobject test excluded: SDK not available). The existing glyph package-disabled macOS/Windows configure contract and both utility/glyph registration checks pass. Thirty-three Python graph/sorted-list, static-link, include, Windows diagnostic, sanitizer and binary-budget guards pass.
  • Scoped Application/build Clippy with libobs-integration passes. Test cost: 25 reduced debug runs of the new regression, longest 0.054 s, peak child RSS 15,068 KiB, no test-owned threads. The eight-category binary inventory is unchanged. Clang emits existing libcaption unused-variable/parameter warnings.
  • Native macOS and Windows are unverified. Simulated selection/package absence is not native runtime evidence. Full local gate/Tier 2 were not run; hosted PR CI remains required. No target pruning, soldr gc, workflow, C-test/public-header or WebSocket changes.
  • Evidence: RED local-test-kfxXLh.log and its linked soldr porcelain log; missing-package GREEN local-test-RFRIDk.log; GCC replay local-test-sQVzel.log; Clang replay local-test-IEjVq2.log; native graph local-test-7lVpMs.log; package-disabled configure/registration local-test-i2Qtod.log; Python guards local-test-qjkXx9.log; Clippy local-test-cQSScX.log. Initial Python guard invocation needed PYTHONPATH=ci for its existing sibling import, then all 33 passed.

# Conflicts:
#	rust/obs-build/tests/native.rs
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Continuing the assigned rollup repair: reproduce undefined false platform requirements and unknown-name rejection in the existing Application contract binary, then audit Windows graph dependencies and replay focused GCC/Clang contracts. No new PR; Windows/macOS runtime remains unverified locally.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Continuing the assigned macOS SIMDe fixture repair on the existing rollup head b1e3039. I will retain all native contracts, make fixture setup follow selected dependencies, replay GCC/Clang and graph guards, and re-arm auto-merge. Native macOS/Windows remain unverified locally.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 7, 2026
@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit 335f283 Nov 7, 2026
44 checks passed
@zackees
zackees deleted the test/1390-native-graph-rollup branch November 7, 2026 07:57
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