Skip to content

rust: Extract obs_module_load_locale before its obs-core port #4245

Closed

Description

@zackees

Phase 6 prerequisite for porting the remaining module locale orchestration to obs-core. The existing Rust module_locale core handles filenames and case comparison only; libobs/obs-module.c.h:564-602 still implements obs_module_load_locale's lookup, overlay and cleanup flow.

Extract obs_module_load_locale verbatim into libobs/obs-module-load-locale.c.h in the existing core unity group. No Rust swap, signature or behavior change, public-header edits, or test graph changes. Required by testing-policy.md's extraction-before-port rule.

Existing characterization: test/cmocka/test_core_module_load.c module_locale (1496-1557) pins default loading, overlays, case-only matches, missing/empty files and NULL parameters. Validate unchanged source identity, build-group checks and lint; run focused existing tests where the slot supports them. The follow-up Rust port must preserve these assertions, add Tier 1 and differential coverage and pass unchanged Tier 2.

Collision scan: no open issue or PR for obs_module_load_locale; #1926 ported only its filename and comparison helpers. Excludes module initialization #4166/#4215 and module lists #4133/#4219.

Activity

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

    @zackees
    MemberAuthor

    Claiming: extraction prerequisite for obs_module_load_locale (pool im-bo-module, obs-studio4). 1. Preserve the existing locale characterization unchanged. 2. Extract the function verbatim in the same unity group. 3. Run focused validation and full lint once, then push branch port/4245-module-load-locale-extract. BRANCH-ONLY assignment: no PR; manager opens it when the queue drains. Expected branch ready within this session.

  3. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Progress: branch port/4245-module-load-locale-extract is ready at 0c4f90f (remote verified). BRANCH-ONLY: no PR opened; manager may open it when the queue drains. The function was extracted verbatim into obs-module-load-locale.c.h in the existing unity group. Existing module_locale characterization is unchanged. Build-group checks (10), formatting validation, full lint (185.8 s, exit 0), diff checks and eight supplementary GCC/Clang O0/O2 ASan/UBSan harness executions passed. The harness covers ten control-flow/cleanup cases and is not Tier 2. Real hybrid/reference Tier 2, export parity and native platform builds were not run locally; future PR CI remains the merge gate. Rust swap follow-up: #4247. No Rust, C tests, public headers, test-graph.json or native.rs edits. Claim acceptance still pending; no refusal observed.

  4. moved this from Ready to In progress in obs-rust Multiviewon Nov 9, 2026
  5. moved this from In progress to Ready in obs-rust Multiviewon Nov 10, 2026
  6. zackees commented on Nov 18, 2026

    @zackees
    MemberAuthor

    Landed on master in #4320 (4dac1f9); verified the merge is an ancestor of origin/master and libobs/obs-module-load-locale.c.h exists there.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementportreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions