Skip to content

test: Characterize and extract obs_source_set_name before Rust port #4630

Closed

Description

@zackees

Scope

Phase 6 libobs prerequisite for a later obs-source Rust port. Characterize and extract only obs_source_set_name from libobs/obs-source.c.h into libobs/obs-source-set-name.c.h. Keep its body behavior-identical, public ABI untouched, and make its private requires_canvas dependency available without relying on unity include order. No Rust swap in this issue.

Existing coverage and additional assertions

test_context_names covers unchanged-name suppression, public/private naming, duplicate/empty/NULL names and canvas scopes. test_canvas_rules_callers covers main/other canvas signaling. Add a separate actual-libobs C test for global/local signal order, private input/private scene local-only signaling, and canvas event order. Existing C tests and public headers remain unchanged.

Acceptance

  • Characterization passes original implementation before extraction and the extracted implementation after it, against C-reference and hybrid libobs.
  • Public/private/canvas naming, lookup updates, signal payloads and ordering remain identical.
  • Explicit unity/PCH membership, focused GCC/Clang validation, symbol parity, registration checks and full lint with recorded exit codes.
  • Separate characterization and behavior-neutral extraction commits, no Rust, plugin or workflow changes.

No open dependency or design decision. Context-name helper work #1787 is already merged. Source type lookup #4608 is disjoint. Local preparation only under coordinator coord-linux-20261110T1645, with publication held.

Activity

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

    @zackees
    MemberAuthor

    Claiming: obs_source_set_name C characterization/extraction prerequisite, slot obs-studio11, coordinator coord-linux-20261110T1645, local branch test/4630-source-set-name. 1. Add missing actual-library C signal-order/privacy characterization and verify the original implementation. 2. Extract the body behavior-neutrally with its private canvas predicate dependency. 3. Validate both libraries and preserve named local commits for the landing worker. Local preparation only, publication held by manager. First PR will be opened by the landing worker after the hold is lifted.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 12, 2026
  4. zackees commented on Nov 12, 2026

    @zackees
    MemberAuthor

    Verified complete on origin/master 1273c7e. PR #4643 merged as 8c8ac54, an ancestor of that revision.

    obs-source-set-name.c.h contains the complete setter, identical after only the private predicate rename; the local predicate retains the original flag expression. I verified its sorted core-source unity include and registered test_source_set_name covering global/local/canvas event order, public/private input and scene privacy, lookup publication and unchanged-name suppression. The PR records original/extracted actual-library characterization, unchanged context/canvas regressions, GCC/Clang replay, symbol parity and lint. This completes the C-only extraction prerequisite; no Rust swap is claimed by this issue.

    Closing as completed. This hygiene pass inspected existing code, registrations, tests and recorded validation; it did not rerun builds or tests.

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

    P2portreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions