Skip to content

libobs: extract obs_sceneitem_set_order_position verbatim (Refs #5672) - #5674

Draft
zackees wants to merge 2 commits into
masterfrom
port/5672-sceneitem-set-order-position-extract
Draft

zackees wants to merge 2 commits into
masterfrom
port/5672-sceneitem-set-order-position-extract

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #5672

Moves obs_sceneitem_set_order_position verbatim from obs-scene.c.h into obs-scene-item-set-order-position.c.h in the same core-source unity group. Static inline declarations retain the existing lock, attach/detach and reorder-signal dependencies in that translation unit. Exact function bytes, signature, reference handling and operation order are unchanged. This separate C extraction prerequisite contains no Rust, public-header, existing C-test, graph or protocol changes. A Rust swap follows only after it lands.

The existing direct test_scene_canvas_characterization::scene_item_set_order_position covers NULL input, positions 0/1/2, oversized 99, negative -5, resulting list order and reorder signals. It is reused unchanged; no new characterization PR is needed. There is no user-visible change requiring a features ledger entry.

RED cbb7e25 moves the function without its group registration; ci/test_build_groups.py fails solely on the orphan obs-scene-item-set-order-position.c.h. GREEN 9069b1b79 (published as 8d4ea97 after stamping) adds its alphabetically sorted include and passes all 10 build-group checks. Function-byte comparison and diff whitespace check pass.

Pristine baseline Linux replay passed the unchanged scene canvas characterization, canvas move and scene list removal fixtures three repetitions each against BOTH reference and hybrid libobs, with verified loader selection and 1769 identical exported symbols. Artifact local-test-VAw80p.log. Full SOLDR_PORCELAIN=0 ./lint passed, exit 0, final lane lint ok (175.7s), artifact local-test-qbV1Gd.log. One independent clud-review reviewer found no issues: exact function bytes, matching same-TU helper declarations and alphabetical registration. Final extraction Linux replay also passed the same three unchanged fixtures three repetitions each on BOTH backends, loader selection verified, no skips, and 1769 identical exports (local-test-zdt4J2.log). Windows category links passed (all eight Rust category binaries, 149.76s), and Windows MSVC x86_64 linked hybrid libobs plus all 83 configured Rust-static fixtures (245.11s, explicit alias exit 0). Darwin arm64 also linked hybrid libobs and all 83 configured Rust-static fixtures, with explicit alias exit 0. The combined standard cross command returned 0 (local-test-t4kIrT.log). These are cross links, not native Windows/macOS runtime executions. The existing shared scene canvas fixture was exercised on Linux only; no new test was added to the native link inventory. This draft remains held. Final six-target client-lint passed in 34.6s through ./push; missing xmllint correctly retained ordinary hosted CI.

Neighbor merge-tree is clean against #5630 head 15ce231. It conflicts against #5650 head 1bf466a at adjacent include insertions and adjacent function removals. Land #5650 first, then mechanically replay this extraction preserving both functions' removals and alphabetic unity registration. The same-symbol swap worker for #5626 operates on different setters.

HOLD: admission is closed by runner starvation (exit 75, oldest queued job waited 98 minutes). The claim bot has not yet accepted the pending claim. Keep DRAFT and unarmed until backpressure opens and the landing worker verifies the accepted claim, exact head and neighboring landing order. No hosted-CI wait is performed by this worker. Tiers 1/3 introduce no Rust change; this is the separate C extraction prerequisite. Native hosted Tier 2 remains required. Tier 4 has no protocol change to test.

@zackees zackees added pool-active Pool worker owns this PR; automated rebases must skip it and removed pool-active Pool worker owns this PR; automated rebases must skip it labels Nov 25, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In progress in obs-rust Multiview Nov 25, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Needs fix in obs-rust Multiview Nov 26, 2026
@zackees
zackees force-pushed the port/5672-sceneitem-set-order-position-extract branch from 8d4ea97 to 4f42e30 Compare November 26, 2026 05:46
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to In progress in obs-rust Multiview Nov 26, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Needs fix in obs-rust Multiview Nov 27, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to In progress in obs-rust Multiview Nov 29, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Stalled in obs-rust Multiview Nov 29, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Stalled to Needs fix in obs-rust Multiview Nov 29, 2026
Client-Checks: {"checks":{"base":"1a371e8bc576a915376715bf91ad39d30518b860","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-source+.h.c","libobs/obs-scene-item-set-order-position.c.h","libobs/obs-scene.c.h"],"head":"0658b9994b27894068c973e74698c27d54caa891","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21503\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"457de4db2b3ae045567152818cb5a7a58253fc7126be8fce0c2d05920c953c75","tree":"d8729b91abdc186fac712dc1858c41646f9b1428"}}

Ci-Attestation: {"at":1795671650,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c6f1176a08df6154268df7dd25e1da6381d89e1f"],"secs":81,"stamp":"4ef349e76a3d3c5569b533a46d78c223","tree":"d8729b91abdc186fac712dc1858c41646f9b1428","v":1,"via":"run"}
Ci-Attestation: {"at":1795671650,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c6f1176a08df6154268df7dd25e1da6381d89e1f"],"secs":81,"stamp":"dc737133d0e9f63daddea09a38ad56ac","tree":"d8729b91abdc186fac712dc1858c41646f9b1428","v":1,"via":"run"}
Ci-Attestation: {"at":1795671650,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c6f1176a08df6154268df7dd25e1da6381d89e1f"],"secs":81,"stamp":"f121c910fe61fa719a9ede217aa77508","tree":"d8729b91abdc186fac712dc1858c41646f9b1428","v":1,"via":"run"}
Ci-Attestation: {"at":1795671650,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c6f1176a08df6154268df7dd25e1da6381d89e1f"],"secs":81,"stamp":"47fd13a98a280e6c9ce5ebadbb61d410","tree":"d8729b91abdc186fac712dc1858c41646f9b1428","v":1,"via":"run"}
Ci-Attestation: {"at":1796413178,"gate":"general/all/client-lint","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"6dac990b228fb982bc183414d56cbd54","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1795671650,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c6f1176a08df6154268df7dd25e1da6381d89e1f"],"secs":81,"stamp":"96bcb84378911529f8e7586eb7774468","tree":"d8729b91abdc186fac712dc1858c41646f9b1428","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"9855106ae07f891ab4b86bfb39c18f92","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"02c76a20c38b97c0193d3f6d370fe3c9","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"a4f588e645ce659796627c35453cc0b4","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"2b667325d36baf17f8b9e903ecf458a6","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413178,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"66dd5c44a7eecb05550cd18bd5d0e5eb","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413178,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"a836e703321eb20176f3f6c908613beb","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"7c9e8fa3ad55b8d074eb4a8326bc7dde","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"a0a0c9dff2b095a15d96baac922e6b4d","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"e27713d4c0d779c65f30d56e7fefe4c3","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413179,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"66b2ab396d8c4ca6fa87de1be49537d9","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413178,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"f8ebc15eb40ceeba522bab275b790657","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1796413178,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"dd2564bd9afb0ff6655c493e846db9172c96bb31eebd71c8d923018e008568f3","lane":"client-lint","parents":["a94d3ad84b292df95293dbef02ac6a522eade80a"],"secs":11,"stamp":"d0467df4effff5cb5e068ad12b6a4b9a","tree":"2b426a7d0954000bcf236e4923931a1a3724c0fd","v":1,"via":"run"}
Ci-Attestation: {"at":1795672007,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"7c9e12b54d10a8d38c519baf24da3e67a279f97b36623b1d0bef6ecefce26bda","lane":"client-test-x86_64-unknown-linux-gnu","parents":["c6f1176a08df6154268df7dd25e1da6381d89e1f"],"secs":356,"stamp":"861663eaa423417909fb8d215a67f26b","tree":"d8729b91abdc186fac712dc1858c41646f9b1428","v":1,"via":"run"}
@zackees
zackees force-pushed the port/5672-sceneitem-set-order-position-extract branch from 4f42e30 to 506f651 Compare December 4, 2026 19:39

This branch has not been deployed

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

Labels

None yet

Projects

Status: Needs fix

Development

Successfully merging this pull request may close these issues.

1 participant