Skip to content

rust: Port obs-source-icon-type-getter.c.h to obs-source #4231

Closed

Description

@zackees

Phase 6 source API port, dependent on the behavior-neutral extraction in #4229 landing first. Port obs_source_get_icon_type from libobs/obs-source-icon-type-getter.c.h into obs-source without changing its public C API. Existing real-library test_source_u32_field in test/cmocka/test_module_register_copy_steps.c asserts UNKNOWN and CAMERA after source registration at field-size boundaries. Assess unknown IDs and all enum values before swapping; preserve the no-null-guarantee contract of get_source_info. Required workflow: RED then GREEN safe-core tests in obs-data obs-tests-core, a thin C ABI shim and real registry adapter with Rust-static link support, Tier 3 differential oracle and mutation check, unchanged Tier 2 hybrid/reference tests and symbol parity. No protocol behavior: Tier 4 is inapplicable. No claim for this follow-up; ready only after prerequisite lands.

Activity

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

    @zackees
    MemberAuthor

    Claiming: obs_source_get_icon_type Rust swap in pool slot obs-studio14 (im-bo-sw-4231), explicitly stacked on branch port/4229-source-icon-type-extraction at 27b86c4 by maintainer instruction. 1. Commit RED safe-core tests. 2. Implement the core, thin ABI shim, real registry adapter, differential oracle and link support. 3. Verify and push port/4231-source-icon-type in BRANCH-ONLY mode; no PR until the queue drains. First branch expected this session.

  3. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Progress: pushed branch port/4231-source-icon-type at 1a4f180, stacked on branch port/4229-source-icon-type-extraction at 27b86c4. Own range: 27b86c4..1a4f180. Separate RED/GREEN commits; four focused tests pass, 273 native-build tests pass, fmt check passes, full lint passes (281.4 s). No test-graph.json/native.rs, existing C test, public header or WebSocket edits. Tier 2 is still running; mutation verification will follow. BRANCH-ONLY: no PR opened; open PRs when the queue drains.

  4. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Verification update for port/4231-source-icon-type (head unchanged at 1a4f180): the deliberate +1 icon-result mutation was killed by the deterministic Rust-versus-C differential test (exit 101), and the exact GREEN source is restored. Full lint and 273 native-build tests passed. The local Tier 2 Docker run stalled after configure/build with no test or symbol-parity result; its client was stopped, so Tier 2 and dynamic-symbol parity remain for eventual PR CI. No PR opened. Final restored-source focused rerun is in progress.

  5. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Final branch-only handoff: restored-source focused rerun passes all four tests after the mutation was killed. Head remains 1a4f180 on port/4231-source-icon-type; own range is 27b86c4..1a4f180. Native-build tests (273), fmt and full lint passed. Test cost: 25 reduced runs, longest 0.0240 s, peak RSS 19,108 KiB, no test-owned threads. Tier 2 hybrid/reference and dynamic-symbol parity remain unverified locally because the Docker client stalled at configure/build and was stopped. NEEDS-HELP branch port/4231-source-icon-type stacked on branch port/4229-source-icon-type-extraction, open PRs when queue drains. No PR opened.

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

    @zackees
    MemberAuthor

    Landed on master in #4498 (24d24f4); verified the merge is an ancestor of origin/master and rust/obs-source/src/ffi/source_icon_type.rs 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