Skip to content

rust: Characterize and extract obs_scene_reorder_items before porting to obs-scene #5703

Todo

Description

@zackees

Phase 6 prerequisite for the scene item array reorder API in libobs/obs-scene.c.h: obs_scene_reorder_items and its private membership walk sceneitems_match.

The existing test_scene_item_order_steps models the rules but does not invoke this public API. Add a portable direct cmocka characterization against both C-reference and hybrid libobs, covering no-op/refusal cases, accepted permutations, list consistency, reorder signal and retained scene ownership. Preserve current preconditions and behavior. Then extract the function verbatim into its own implementation file in the existing core-source unity group in a separate stacked PR, with no Rust, public-header or existing C-test edits. A Rust swap is a later unit after both prerequisites land.

Dependencies: characterization before extraction; coordinate landing with neighboring scene extractions #5630, #5650, #5674 and #5701. Run merge-tree against the requested scene/core neighbors and record ordering. This manager-authorized producer may publish held unarmed drafts while admission is closed.

Acceptance: direct tests pass against both implementations; extraction preserves function bytes and public ABI; build group, lint and Windows/Darwin cross links verified or limitations recorded. Register the new test once in test-graph.json, including explicit SIMDe::SIMDe for Darwin.

Activity

  1. added
    port
    ready
    on Nov 25, 2026
  2. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Claiming: obs_scene_reorder_items prerequisites (pool char-scene-reorder, obs-studio8). 1. Direct portable cmocka characterization, graph once, explicit Darwin SIMDe. 2. Separate stacked verbatim C extraction with neighbor merge-trees. 3. Linux reference/hybrid, lint and serialized cross links. First draft this session. Manager permits held unarmed DRAFTs while backpressure is closed; Rust swap follows later.

  3. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Claiming: obs_scene_reorder_items prerequisites. 1. Direct portable C characterization. 2. Separate verbatim extraction. 3. Linux and cross link validation. First draft this session; held unarmed while admission closed.

  4. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Progress: completed held DRAFT prerequisites #5706 (characterization, 4fd4a80) then #5708 (verbatim extraction, 769a9bb). Both remain unarmed while admission is closed and claim acceptance pending. Baseline/final Linux reference+hybrid, 1769 exports, full lint, sole independent review, eight Windows Rust category links and Windows/Darwin hybrid+complete native inventories all passed. Nine requested neighbor merge-trees clean. Landing worker should land #5706 first, then replay only 7c6275e and 769a9bb onto current master after its parent squash-merges. Rust swap is later. Response and artifact paths are in the PR bodies; no hosted-CI wait by this worker.

  5. moved this from In progress to Ready in obs-rust Multiviewon Nov 27, 2026
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

    portready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions