Repository navigation
test: Fix Windows effect parser comparison symbol ownership - #3604
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 4, 2026 02:35
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3603.
test_effect_parser_blocks_rustfails Windows Tier 2 with LNK2005/LNK1169 because the executable loads both the import thunk and the Rust static definition ofgs_effect_get_param_by_name. This PR makes its public lookup explicitly import from obs.dll, leaving the private parser shims in the production Rust staticlib. The Rust lookup implementation remains the owner of the hybrid DLL export; the C implementation remains the owner in libobs-c-reference. No /FORCE, removed definitions, changed public headers, or changed existing C test assertions.Cause, verified with
git showand the actual failed log:761da5f1c(libobs: Move the effect parser blocks to own file #3561) introduced the C characterization target. It did not add this Rust staticlib link.60b38b116(obs-graphics: Port the effect parser blocks #3595) addedtest/cmocka/tests.d/test_effect_parser_blocks.cmake:19-34: this new executable compileslibobs/graphics/effect-parser.c.hand links OBS::libobs before libobs_rust-static. The direct public lookup call islibobs/graphics/effect-parser.c.h:1544, inside ep_compile_pass_shaderparams. Even though the test deliberately avoids device compilation at runtime, the reference exists at link time.rust/obs-graphics/src/ffi/effect_lookups.rs:173. The C counterpart islibobs/graphics/effect-lookups.c.h:59, included in the C reference'slibobs/build/libobs.ported-graphics+.h.c:7. That C source is already excluded from production hybrid libobs; removing its definition or the Rust definition would misdiagnose the import-thunk collision.Gate blind spot and owner recommendation:
.github/workflows/build-project.yaml:3080selects Windows Tier 2 via check-event.outputs.windows and the CI-mode skip. It does not universally forbid pull_request.ci/ci_scope.py:414-423,472-473escalates shared core changes to both native platforms only on push to master.ci/ci_scope.py:114-116,313-321also treats C++ test registrations as shared, but not these C test registrations. PRs and merge groups therefore miss this MSVC-only link failure.push.yaml:4-11only triggers branch pushes for master and release/**; an ordinary fix branch push does not run Push at all.core_master_push_lanesto merge_group, but that also selects both native platforms and their Rust-test lanes, so its cost is broader. A registration-only rule for C targets linking libobs_rust-static would catch obs-graphics: Port the effect parser blocks #3595 but would leave later core-only codegen-object changes exposed; it is insufficient as the complete prevention policy. The workflow budgets 25 minutes for Windows Tier 2, described in its comment as a 10–15 minute lane. Owner decision requested; this recurring native-runner policy expansion is not implemented here. The Windows-named support source in this fix selects the existing native lane without changing policy.Validation:
uv run --no-project python -m unittest discover -s ci -p test_effect_parser_windows_link.py -vfails because the COFF binary does not import the public lookup from obs.dll. LLVM accepts the original competing-definition layout and prefers the static definition, unlike the observed MSVC failure; this probe checks ownership and is not native MSVC proof../lintalso passed (668.0 s).test_effect_parser_blocks_rustpassing in all four harness runs (CMake OFF/ON and Cargo OFF/ON), all 400 tests passing in each run, and both export comparisons IDENTICAL (1795 symbols). This is the native Windows result, not an inference from Linux.push.yamldoes not run Push on ordinary fix branches. The GREEN Windows support source selected native Tier 2 on the PR under existing policy.