Skip to content

bug: cmocka: effect parser Rust comparison fails Windows linking with LNK2005 #3603

Closed

Description

@zackees

Location

test/cmocka/tests.d/test_effect_parser_blocks.cmake:19-34, added by 60b38b1 (#3595), links both obs.lib and libobs_rust-static while compiling effect-parser.c.h. Its line 1544 calls gs_effect_get_param_by_name. The import thunk collides with the Rust codegen object needed for private parser shims.

Class

Duplicate-symbol link failure; pre-merge platform coverage blind spot.

How it is reached

Verified master run https://github.com/obs-rust/obs-studio/actions/runs/41754991271/job/126335713064 at 355af2a: LNK2005 and LNK1169 on test_effect_parser_blocks_rust. Runs 41755762522 and 41758460868 skip native Tier 2. ci/ci_scope.py:414-423 escalates shared core changes to native lanes only on master pushes; build-project.yaml:3080 follows the windows output (not an unconditional PR exclusion).

Proposed fix and failing test

Give the test an explicit Windows DLL-import bridge for the public lookup, keeping the Rust definition and private static parser shims. Preserve all existing C tests and public headers. Reproduce the import-thunk/static-object collision with an SDK-free COFF link regression and obtain native Windows Tier 2 if possible. Recommend the smallest pre-merge lane-selection extension in the PR body, leaving expensive runner policy to the owner.

Activity

  1. added
    bug
    on Nov 4, 2026
  2. zackees commented on Nov 4, 2026

    @zackees
    MemberAuthor

    Claiming: investigation and Windows effect-parser link fix, explicitly requested by the maintainer. 1. Verify introducing translation unit and path-selected gate. 2. Add RED COFF regression then explicit DLL-import bridge without changing public headers or existing C tests. 3. Open a draft PR this session, validate native Windows if available, and document the lane policy recommendation for owner decision.

    /ready

  3. added
    needs-investigation
    on Nov 4, 2026
  4. zackees commented on Nov 4, 2026

    @zackees
    MemberAuthor

    /ready

  5. added
    ready
    and removed
    needs-investigation
    on Nov 4, 2026
  6. zackees commented on Nov 4, 2026

    @zackees
    MemberAuthor

    Fixed by #3604, merged through the queue as f7610b4. The public lookup uses an address-only DLL import in the test; the production Rust definition, C reference, existing assertions and public headers are retained, with no /FORCE added.

    Native proof: PR Windows Tier 2 https://github.com/obs-rust/obs-studio/actions/runs/41759671789/job/126344929100 passed all four 400-test suites and both 1795-symbol identity comparisons. Merge-group Windows Tier 2 https://github.com/obs-rust/obs-studio/actions/runs/41761737697/job/126351570386 and CI Gate also passed. Local lint and the COFF ownership regression passed.

    The PR body records the introducing commit and translation unit, corrects the path-selection explanation, and recommends running Windows Tier 2 for relevant merge groups while preserving batching and full coverage. That recurring runner-policy expansion remains an owner decision; it was not implemented unilaterally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions