Repository navigation
ci: decentralize exact Rust-static registration expectations per port - #3920
Conversation
|
Handed off to the coordinator per the pool worker assignment. Auto-merge is enabled with head pinned to 474828e; remote head and autoMergeRequest verified. PR body is final. Native_build 129/129, portability, all 358 CI self-test files, workspace formatting and all Clippy feature sets pass. Serial lint exits only at the documented soldr/clud Dylint-driver refusal; rely on hosted Fast Gate for that lane. Fresh rebase onto master 9825053 required no registration migration and range-diff confirms equivalent commits. No claim refusal or competing claim seen before PR creation or arming. Hosted checks/merge are not being waited on under the worker rule; retiring clean pool slot obs-studio3. Two sibling demonstration branches remain local and unpushed. |
Accessor ports conflict when they append link-support expectations to shared Rust-static registration assertions. Ports can now add their own
rust/obs-build/tests/native/registration/rust-static/support/<port>.json, naming explicit affected targets and exact additional fields. Case fixtures and support entries are discovered in sorted order; shared support values retain their first occurrence without weakening ordered equality.All 31 current cases have independent checked-in expected graphs. The source, header, decision, conversion, pacing and transition-start families are migrated, along with monitor; no family remains for a follow-up. Registration compares every parsed target/test field, including defaults, conditional requirements/options and exact ordered sources/includes/libraries. Expected values come only from checked-in fixtures, never from the graph under test. Coverage rejects missing case files, malformed entries, unknown support targets and conditional archive edges without entries. Multi-case selection, CMake replay and unchanged-runtime loops use the same discovered inventory. Conversion/pacing retain their original singleton runtime fixtures and reject extra cases until their runtime checks are extended.
Fixes #3915. Refs #3910.
Validation:
0847b5765:uv run ci/test_native_registration_entries.pyexits 1 on the existing shared CASES arrays. Separate RED and GREEN commits are pushed together under coordination.md section 4 (focused CI/test infrastructure).0ef0c63fa, with final coverage/singleton guards in474828e7b: focused Python guard passes. Two new Rust tests cover missing/malformed entries, sorted independent support composition and deduplication, conditional libraries, coverage deletion, and singleton runtime rejection.SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none soldr cargo test -p obs-studio-rust --test obs-tests-app native_build::: 129 passed, 0 failed (final guards included).uv run ci/test_native_b2_portability.py: 7 tests pass.uv run ci/local_gate.py --only self-test: all 358 self-test files pass.SOLDR_PORCELAIN=0 soldr cargo fmt --all --check: passes.SOLDR_PORCELAIN=0 ./lint: exits 1 only at the final Dylint driver step.diagnostic_state=unknown; tail -n 3 of the artifact confirms soldr refuses to build Dylint v6.2.0 for nightly-2026-05-28 under clud because only nightly-2026-08-15 is pre-deployed. All earlier lanes, including CI self-tests, formatting and every Clippy feature set, passed. This is the documented pool-worker environment exception; rely on hosted Fast Gate for Dylint, without changing the unrelated toolchain.throwaway/3915-sibling-aandthrowaway/3915-sibling-bindependently add different support files for the same registration target.git merge-tree --write-treeexits 0 (tree4fc849706369cd46a02e3b78d806eebbfa0bf267contains both entries). Branches remain local, unpushed and undeleted.9825053e2(fix: isolate encoder metadata oracle link dependencies #3919). No registration expectations changed on master; range-diff marks all three rebased commits equivalent. Remote head verified as474828e7b856467c773efc0bfa425c48510d9a1f. Focused guard and portability rerun after rebase pass; full native/lint evidence is from the equivalent pre-rebase implementation. No force push was needed.Test cost: two added Rust tests remain in the existing obs-tests-app binary; no new test executable. Over 20 reduced-level runs of the new module, longest combined run 0.147 s, peak RSS 11,816 KiB, no own threads or proptests. Existing native coverage and CMake/runtime assertions are preserved. Infrastructure-only change: no production behavior or protocol change, so no new Tier 2/3/4 cases; unchanged compatibility coverage continues in the existing lanes. Integration-gated runtime/CMake cases were preserved and compiled by the libobs-integration Clippy lane but not executed locally. Hosted validation/merge are not yet observed; the worker hands off after arming auto-merge. Local evidence:
build_ci_audit/3915/.