Skip to content

test: Characterize and extract deprecated module-loading no-ops before Rust swap #5343

Closed

Description

@zackees

C-only Phase 6 prerequisite for obs_load_all_modules and obs_load_all_modules2, currently embedded in libobs/obs-module.c.h:337-342, before a separate Rust swap to obs-core.

Both deprecated exports intentionally do nothing. Preserve their bodies verbatim in libobs/obs-module-load-all.c.h, registered alphabetically in the existing core unity group, following the module extraction pattern of #5182. Do not reactivate module discovery/loading or conflate these APIs with obs_load_plugins or obs_load_core_modules.

Add a portable cmocka characterization without startup: neither export initializes OBS, loads a module, allocates, or logs; _2(NULL) returns safely; _2 preserves every byte of a failure-info struct prefilled with sentinel pointers/count, the pointer array and pointed-to strings. Exercise both actual shared-library exports and the extracted C-source baseline. Use the existing deprecated-API warning suppression pattern, and avoid implicit narrowing under MSVC /W4.

Acceptance: separate local RED/GREEN commits, focused C-reference/hybrid Tier 2 and symbol parity, canonical test graph/tests.d registration, full lint once and one ready push. No Rust swap, existing C-test edits, public-header edits, WebSocket changes or workflow additions. Any Rust-static support belongs only in test/cmocka/build/rust-static-support.json; this extraction needs none. File a separate swap follow-up.

Collision check: all 19 open PR diffs searched for both symbols and obs-module.c.h; #5061 has only an unchanged core-group include context line. No symbol overlap, existing characterization, active claim or prior extraction found. Backpressure open (headroom 6). Assignment: scout-h rank 11, Lane C, recommendation A.

Activity

  1. added
    port
    ready
    P2
    size:S
    on Nov 20, 2026
  2. zackees commented on Nov 20, 2026

    @zackees
    MemberAuthor

    Claiming: C characterization and verbatim extraction of obs_load_all_modules + obs_load_all_modules2. Branch: test/5343-module-load-all; slot obs-studio7 (h11-load-all-modules). 1. Pin no-startup/no-state-change and failure-info sentinel behavior, with local RED evidence. 2. Extract both bodies unchanged and register the focused test. 3. Validate C-reference/hybrid, run full lint once, push once and open the prerequisite PR, then file the Rust swap follow-up. First PR expected this session.

  3. zackees commented on Nov 21, 2026

    @zackees
    MemberAuthor

    Done: the characterization and extraction merged in #5351 (8a737f0), and the Rust swap followed in #5361.

  4. moved this from In progress to Done in obs-rust Multiviewon Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions