Skip to content

rust: Port obs-canvas-move.c.h to obs-core #4774

Closed

Description

@zackees

Refs #4769. This is the Rust-swap follow-up to the canvas scene migration characterization/extraction prerequisite on branch test/extract-canvas-move. Wait until that prerequisite lands before starting the swap.

Port the complete extracted libobs/obs-canvas-move.c.h unit (obs_canvas_move_scene and its private enum_move_cb) into obs-core. Preserve scene-first remove/insert, migration of groups in scene enumeration order, ordinary child sources remaining on their original canvas, shared-group item removal, and same-canvas remove/insert effects. Keep the existing canvas insert/remove and scene enumeration APIs as dependencies.

Follow the four-tier testing policy with RED then GREEN commits: port every assertion from test/cmocka/test_canvas_move_scene.c into safe-core Tier 1 tests in the existing Core state category binary; retain that C test and the existing scene/canvas characterization and canvas destroy/ref tests unchanged for Tier 2 against both libraries; add Tier 3 C-oracle differential tests plus a mutation check. Preserve public C headers and symbol/ABI parity. Tier 4 does not apply to this non-protocol unit. Pay particular attention to ownership of group sources during same-canvas migration, because group removal detaches items from the moved scene as well.

Move the extracted C group into an appropriate ported source-set fragment only when the Rust replacement is ready. Keep the C implementation for the reference/oracle. No changes to the preserved C++ OBS WebSocket plugin.

Activity

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

    @zackees
    MemberAuthor

    Claiming: #4774 on port/4774-canvas-move-rust, stacked on test/extract-canvas-move at 0cfcf04, in obs-studio11, per maintainer branch-only assignment.

    1. Commit RED safe-core tests mirroring the existing characterization.
    2. Implement the Rust core, thin bridge and real adapter link support, preserving remove/insert/enumeration seams.
    3. Verify focused tiers, mutation, native links, fmt and full lint; push this session without a PR.
  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 14, 2026
  4. rdoupe commented on Nov 16, 2026

    @rdoupe
    Collaborator

    @zackees are you still on this one? It was claimed on 2026-11-12, and the extraction it stacks on is already on master (#4799). port/4774-canvas-move-rust has the RED and GREEN commits (2d3b969, 45e265a) from 2026-11-12 but no PR. If you've moved on, I can rebase those two onto master, check them, and open the PR with your authorship kept; otherwise I'll leave it with you.

  5. zackees commented on Nov 16, 2026

    @zackees
    MemberAuthor

    Claiming: continuing #4774 on port/4774-canvas-move-pool in obs-studio3, resuming the existing RED/GREEN commits with authorship preserved. 1. Replay RED on current master and verify the failure. 2. Replay and review GREEN within canvas move only, leaving obs_canvas_release (#4817) alone. 3. Verify focused tiers and mutation, run full lint once, open a PR and arm pinned auto-merge this session.

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

    @rdoupe
    Collaborator

    Done: #4899 moved obs_canvas_move_scene into obs-core (merged 2026-11-16), after the extraction in #4799.

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