Skip to content

test: share plugin configuration helper native compatibility graph - #3816

Closed
zackees wants to merge 5 commits into
masterfrom
test/1390-plugin-config-helpers
Closed

zackees wants to merge 5 commits into
masterfrom
test/1390-plugin-config-helpers

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Cargo-native validation omitted the unchanged slideshow size and Stinger monitoring migration helpers. Register both in the shared graph, retaining their eight C cases, cmocka linkage plus Windows-only w32-pthreads and default timeout/no-skip behavior. Track helper/PCH inputs and explicitly import core and SIMDe headers without linking libobs. Restore the existing utility runtime test name used by native CI selectors; Stinger joins that fixture, while a separate feature-gated contract exercises the two helpers with real generated core configuration and SIMDe headers.

Refs #1390. Existing C tests, public headers and WebSocket code remain unchanged. No new workflow or Rust test executable; no production behavior change.

Validation:

  • RED bfcc5655b: exact registration check fails because the graph omits test_slideshow_size (local-test-RZ5G0Q.log).
  • GREEN 31f9327cc: registration and actual Cargo/CMake replay pass with GCC (local-test-kfoWXH.log) and Clang (local-test-Jd8SD0.log). Both consumers execute the original eight helper cases and compare evaluated CTest names. Restored seven-executable frontend/caption/Stinger contract passes GCC and Clang (local-test-Cz9C8e.log / local-test-Jd8SD0.log).
  • Sorted graph/shared-list and graph-slice Python guards pass (local-test-ZSTfmO.log). Single primary clud-review clean after preserving the native fixture prerequisites.
  • Full local lint reached the known Soldr Dylint-driver refusal after every earlier lane passed (local-test-zgPQqK.log): no deployed driver for workspace nightly-2026-05-28, only nightly-2026-08-15. No toolchain workaround or local-gate stamp; hosted Fast Gate remains required. Full unittest is deferred to PR CI because its wrapper prunes targets, forbidden by this assignment. No manual target pruning or soldr gc.

Tiers: test-graph repair, no implementation port. These helpers do not link a libobs backend; existing Tier 2 and differential coverage remains required. Tier 4 is inapplicable. Linux GCC/Clang runtime evidence is local; no hosted native slideshow replay is claimed. The minimal native Qt fixture lacks core/SIMDe headers, so the separate slideshow runtime contract is not added to its selectors; the unconditional canonical target remains in normal native CMake Tier 2 coverage.

Test cost (OBS_PARITY_CASES=reduced, debug): registration 25/25 observations, longest 0.11 s / peak RSS 11,476 KiB; new two-helper runtime contract 20/20, longest 7.83 s / 122,380 KiB; expanded existing seven-executable utility contract 20/20, longest 28.96 s / 117,640 KiB. Native compilation contracts retain the existing named native-build timeout exception and compiler/CMake subprocesses, with no new Rust-owned threads. Raw observations are retained with the pool response.

Source inventory on this head: 414 canonical targets/tests, 319 distinct literal CMake executable names outside canonical targets, seven variable declaration sites. These are unevaluated source counts, not applicable or passing test totals. Complete inventory/application/profile/protocol/platform/export parity remains open under #1390.

Platform failure follow-up: RED 4b5fb1d86 requires the missing Windows pthread interface; GREEN 3e8535235 links OBS::w32-pthreads only on Windows and supplies explicit platform facts in the isolated Cargo/CMake fixture. The registration and original eight helper cases pass through both consumers with GCC and Clang (local-test-Aavj1D.log, local-test-oh1yoZ.log). Graph/slice and cmocka compatibility, include, static-link, and Windows diagnostic guards pass (local-test-K9Fx0c.log); rustfmt and diff checks pass. Windows/macOS cannot be run locally and no passing result is claimed for those lanes. PR CI remains the merge gate; no target pruning or soldr gc.

Windows Clippy follow-up (0ad56f80f): hosted RED job 128317357770 reports cognitive complexity 28/25 at canonical_plugin_configuration_helpers_are_registered. Extract per-target registration and per-test/OS selection assertions into helpers; all 18 original assertion expressions are preserved, with no lint allowance or threshold change. Focused application Clippy passes on Linux, with the integration feature, and cross-checking x86_64-pc-windows-msvc. Windows runtime execution remains unverified. Focused registration and actual two-helper Cargo/CMake contracts pass with installed cmocka/SIMDe using GCC (local-test-meBJj1.log) and Clang (local-test-Ul1Cqk.log); initial attempts without cmocka's pkg-config path failed during dependency discovery. Rustfmt and diff checks pass. Fetched sibling test/1390-* graph branch diffs add no branches to this registration function; none has the same function-level limit exposure. No C tests, public headers, WebSocket code, workflows, target pruning or soldr gc changed.

Full local lint was interrupted after the Python guard lanes to retire the slot; it is not claimed green and no gate stamp was added. Focused formatting and Linux/Windows-target Clippy above are green. Hosted Fast Gate remains required.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Superseded by rollup #3832; all commits and assertions retained, branch kept.

@zackees zackees closed this Nov 7, 2026
auto-merge was automatically disabled November 7, 2026 06:17

Pull request was closed

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