Skip to content

fix: isolate encoder metadata oracle link dependencies - #3919

Merged
zackees merged 4 commits into
masterfrom
fix/oracle-encoder-metadata-link
Nov 7, 2026
Merged

zackees merged 4 commits into
masterfrom
fix/oracle-encoder-metadata-link

Conversation

@zackees

@zackees zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member

The metadata oracle object from #3879 directly references five production obs_encoder_get_* functions. When COFF selects that archive member for an unrelated harness, obs-util cannot resolve them because it does not link obs-output. This blocks #3862, #3873, #3884, #3907 and #3905. The compared passing sibling heads (#3912, #3896, #3901, #3885) do not contain encoder_metadata.c.

Pass getter callbacks from the owning parity test instead. All five null defaults and exact debug-log assertions still run against both C and Rust; production code, public headers and existing C tests are unchanged. No adapter discovery changes (#3916).

RED: da338d5 adds standalone archive extraction and a symbol audit. soldr cargo test -p obs-util encoder_metadata_has_no_production_getter_dependencies exits 101 with all five unresolved production dependencies. soldr cargo test -p obs-util --no-run --target x86_64-pc-windows-msvc exits 101 with the exact five missing getters from encoder_metadata.o after the standalone regression forces extraction.

GREEN: 3b9fe3f passes the Windows-target link, all 914 Linux obs-util tests plus doctests, and all six encoder_metadata core/parity tests. llvm-nm -u confirms the COFF metadata object no longer references any production getter. The final symbol-audit tightening is 61ae950. The earlier workspace format check passed; a final rerun was blocked by clud's verification-ratio guard. Oracle build and full native_build module results will be recorded in a comment.

Test cost: two new cases in the existing obs-util harness, no new executable and no own threads; symbol audit RED took 0.03 s. Tier 2 production behavior is unchanged; Tier 3 metadata assertions are preserved; Tier 4 does not apply to this test-link fix. No native coverage labels exist in this repository.

Fixes #3918.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Validation on 61ae950: oracle build exit 0; strengthened symbol regression exit 0 (0.04 s); full native_build:: module exit 0, 127 passed in 48.57 s. Earlier GREEN also passed Windows MSVC-target obs-util link, Linux obs-util 914 tests plus doctests, and six metadata core/parity tests. Review found no blocking issues; its LOW missing-object guard is fixed. Auto-merge is enabled. The original four and #3905 have identical metadata oracle code; checking integration with their feature heads next. Per pool instructions I will not wait on hosted CI.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Final head bfe591e is pushed and auto-merge re-armed. All five feature heads (#3862, #3873, #3884, rebased #3907 d97add7, and #3905) passed local integrations with the shared fix: Windows MSVC-target obs-util link, all 914 Linux utility tests plus doctests, oracle build, and all 127 native_build:: tests. Their feature code needed no link fix. The final commit only makes nm member matching portable across GNU/LLVM/BSD punctuation; its focused regression passed (0.04 s). Pool manager: land this shared fix first, then refresh the pre-fix PR checks/merge results. No hosted-CI wait performed. Final workspace fmt rerun remains unverified because clud’s ratio guard refused it; the earlier GREEN fmt check passed.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit 9825053 Nov 7, 2026
43 checks passed
@zackees
zackees deleted the fix/oracle-encoder-metadata-link branch November 7, 2026 17:47
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Nov 7, 2026
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Nov 8, 2026
…bs-rust#4023)

The deferred PR/queue tier skips every Windows-target job, so COFF-only
link defects passed the queue and reddened master: lld-link 'undefined
symbol: obs_encoder_get_caps' (merge_group 42390201886 green, push
42393067345 red, fixed by obs-rust#3919). Add a Linux-hosted job that runs only
the cross lane's link step for x86_64-pc-windows-msvc (no clippy, Dylint
or macOS, nothing executed) on every non-docs PR and queue run. The
expensive matrix stays on push/dispatch; CI Gate already reads every
job of the run, so the new job's conclusion is gated with no ruleset
change.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

bug: obs-c-oracle: encoder metadata log probe requires unrelated production getters

1 participant