Skip to content

test: register #1390 batch 44 (obs-websocket helper fixtures) - #4078

Merged
zackees merged 12 commits into
masterfrom
test/1390-b44-land
Nov 8, 2026
Merged

zackees merged 12 commits into
masterfrom
test/1390-b44-land

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Refs #1390

Registers six preserved C++ obs-websocket helper fixtures in the shared native graph: MIME and session duration from batch 44, plus batch order, current-scene removal, list-property items and scene count. Original test sources and the plugin remain unchanged. Target-local configured headers preserve the original version/RPC substitutions; scene count imports libobs headers/definitions without linking libobs. Optional source, JSON and Qt owners retain their platform guards.

Fixture Cases/run GCC hybrid GCC C-reference
test_ws_image_mime 5 PASS native + CMake PASS native + CMake
test_ws_session_duration 5 PASS native + CMake PASS native + CMake
test_ws_batch_order 5 PASS native + CMake PASS native + CMake
test_ws_current_scene_removed 4 PASS native + CMake PASS native + CMake
test_ws_list_property_items 3 PASS native + CMake PASS native + CMake
test_ws_scene_count 5 PASS native + CMake PASS native + CMake

Each lane runs the unchanged fixtures once through the native consumer and once through shared CMake/CTest. Linked fixtures verify the exact checkout-built selected core; standalone helpers verify no libobs link. These helper tests do not claim wire-protocol or full application coverage.

RED/GREEN: batch 44's original pair was cherry-picked as 164fa0d / ada8d43 (upstream 6af0f6c / 185ac8c). Added-registration RED 29c326b fails on absent graph registrations and the unsupported configured-header field; GREEN c74b7c0 adds the closures. af36fcc preserves optional owner and header-import boundaries; 891f528 separates the two replay consumers without changing assertions.

Validation: 266 native-build checks pass, including configured-header parity, template/value invalidation, malformed-path rejection, unavailable owners and the unchanged header-only import contract. Separate archive freshness checks pass (3); graph/sorting/slicing/registration/portability guards pass (25). All 778 master targets and 788 master test records remain unchanged, with six additions to each.

Full lint ran once and exited 1 on formatting in the new RED test. Formatting was applied, the subsequent format check passed, and final scoped clippy for obs-build and obs-studio-rust (including libobs-integration) passes with warnings denied. A final formatting-only extraction was formatted; the redundant workspace-wide formatting recheck was refused by the verification-ratio guard and was not retried. CMake formatting and diff whitespace checks pass. One read-only clud-review reviewer reports clean after addressing its findings.

Final GCC two-core runtime validation passes in the pinned Tier 2 Docker image: 24 complete fixture invocations and 108 cmocka cases, with no skips or failures. Each linked consumer checks the exact selected-core loader path; all three standalone helpers check that no libobs is linked. The hybrid archive was rebuilt on this tree with live freshness checks retained. Five Rust registration/generation/runtime checks pass in each lane (hybrid 183.41 s; C-reference 111.06 s). No native Windows/macOS, landing-tree Clang, broad full-suite, sanitizer, wire-protocol, saved-profile or application validation is claimed. No local-gate attestation; hosted CI remains the merge gate.

Test cost: registration/selection checks: 20 runs, longest 0.067 s, observed peak RSS 13,596 KiB; no own threads. Configured-header and feature-gated runtime checks invoke compilers/CMake under the existing native-build budget. No explicit test threads; unchanged batch-order fixture uses Qt thread-pool workers.

Remaining WebSocket fixtures: test_ws_cpu_usage, test_ws_filter_settings_event, test_ws_monitor_only, test_ws_remove_input, test_ws_save_changes, test_ws_screenshot_srgb and test_ws_transform_bounds. Screenshot sRGB remains deferred with its known flake history (#3960). No new workflow or Rust test executable.

Format follow-up: d7b0aba records RED; the unchanged Windows diagnostics guard failed for current-scene removal (two fail_msg calls) and list-property items (three). dc2dd20 makes their original OS_LINUX restrictions explicit in graph requires, and preserves NOT OS_WINDOWS for batch order and scene count. MIME and session duration retain their original unrestricted host selection. All six fixtures remain registered. f57b649 supplies OS_WINDOWS in nine existing Qt graph-selection test inputs; the strict graph reader is unchanged. A host-selection regression case covers Linux, macOS and Windows facts with owners enabled.

Follow-up validation: the diagnostics guard passes all 4 tests, and graph/sorting/slicing/registration/portability guards pass all 25 tests. The native_build module attempt exited 124 without producing output while soldr was waiting behind the shared daemon's root-maintenance lock. One full lint attempt exited 124 at its 90-second deadline after passing native formatting, Ruff and the completed Python self-tests; Rust checks were not reached. Final soldr workspace formatting check passes. A second bounded native_build module attempt exited 124 after 240 seconds without producing output; the Rust regression/module remains unverified locally. The lint log records 360 passing Python self-test files before its deadline. Native Windows is unverified locally. No C++ test, public header, plugin source, workflow or test executable was changed. Hosted CI remains the merge gate.

CI follow-up for the macOS host-fact and Windows line-ending failures: RED 3fcfd6b reproduces an unknown OS_WINDOWS requirement on the real Linux host and rejects a CRLF configured-header sample. GREEN 560011b shares the existing production native-test fact builder with host replay helpers, passes the same explicit platform facts to CMake, and compares configured headers after CRLF normalization. 35d2ad7 retains the Linux inventory assertions using that shared map. Unknown graph requirements remain errors. Audited Cargo suite builders, the strict graph reader, CMake requirement evaluation, synthetic host selectors, and configured-header comparisons; existing C/C++ fixtures and the plugin remain unchanged.

Follow-up validation on Linux: the complete default-feature native-build module passes 269 tests; the complete default-feature application category binary passes 305 tests, including a final rerun after the feature-path correction. Graph guards pass 25 tests and the Windows diagnostics guard passes four. Both new regressions pass 20 reduced-debug repetitions: longest under 0.019 seconds, peak RSS 8,632 KiB, no own threads. Final formatting and scoped obs-build/application clippy including libobs-integration pass with warnings denied.

The full lint lane ran exactly once and exited 1: its feature-enabled compilation caught the removed Linux inventory variable. That variable is restored and the failing clippy scope now passes; full lint was not rerun. Native formatting, Ruff, Python self-tests, workspace clippy and the preceding feature scopes passed before that failure. Additional feature-enabled remux runtime validation initially lacked Qt6Widgets; the repository Nix environment supplied Qt and passed host-fact evaluation, then hit the unchanged Linux Qt suite's unresolved OBS::libobs dependency. No passing feature-enabled remux runtime is claimed. Native Windows and macOS remain unverified locally. Hosted PR CI remains the merge gate.

RED: uv run ci/test_cmocka_windows_diagnostics.py fails for current-scene removal (2 fail_msg calls) and list-property items (3). Explicit graph host restrictions are absent.
Keep current-scene removal and list-property items Linux-only, and batch order and scene count off Windows. Owner availability remains required. The unchanged Windows diagnostics guard passes all four checks; graph and registration guards pass 25 tests.
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit 49e6a8d Nov 8, 2026
40 checks passed
@zackees
zackees deleted the test/1390-b44-land branch November 8, 2026 23:55
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 9, 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