Skip to content

rust: Port obs.c command-line argument getter to obs-core #3976

Closed

Description

@zackees

Phase 6, native child of #444. Port the live public obs_get_cmdline_args getter from libobs/obs.c.h to obs-core. It returns the stored argc and borrowed argv snapshot by value. No matching Rust implementation or overlapping open PR was found in the 80-PR inventory, and no open cmdline port issue exists. The existing setup-rules port owns setter decisions; this unit preserves that setter and its allocation and lifetime behavior.

Characterization does not yet exist for this getter. Add actual-library C characterization, extract the getter verbatim in its own building commit, then Tier 1 RED and GREEN, a private snapshot adapter, real-header layout checks, differential mutation coverage, and unchanged Tier 2 against both libraries with identical exports. No dependencies or intentional behavior differences. No public header or existing C test changes. Tier 4 is not applicable to this non-protocol getter. First draft PR expected this worker session.

Activity

  1. added
    ready
    on Nov 8, 2026
  2. zackees commented on Nov 8, 2026

    @zackees
    MemberAuthor

    Claiming: the public command-line argument snapshot getter. 1. Characterize and extract the live C getter. 2. Commit Tier 1 RED, then the Rust core and thin ABI shim GREEN with real-header layout and differential mutation checks. 3. Validate unchanged both-library Tier 2, exports, native registration and lint; open the first draft PR this session.

  3. zackees commented on Nov 8, 2026

    @zackees
    MemberAuthor

    Characterization and verbatim extraction pass against both actual libraries with loader-path evidence. RED commit c577664 fails all three focused Tier 1 cases at the Rust stub and is pushed on port/3976-cmdline-getter. The claim workflow remains queued and assignment is not yet accepted, so the mandatory pre-PR claim check prevents opening the draft until that completes. Continuing local GREEN validation while the claim is pending.

  4. zackees commented on Nov 8, 2026

    @zackees
    MemberAuthor

    Implementation is complete in PR #3979, ready with auto-merge enabled for verified head 192ac15. All required local checks passed, including unchanged both-library Tier 2 and identical exports, mutation-tested differential parity, individual-source GCC/Clang validation, focused ASan/UBSan and full lint. The local review is clean. No intentional behavior differences. Hosted checks and merge queue remain pending; handing the response to the worker-pool coordinator without waiting on hosted CI.

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

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions