Repository navigation
obs-scene: Port synchronized scalar bounds getters (#3897) - #3901
Conversation
|
Handed off to the coordinator per pool instructions. Verified GREEN head 19b79a0 is pushed, the PR is ready, and auto-merge is enabled with that head pinned. No claim refusal or conflicting claim was visible immediately before arming. Final validation and limitations are in the PR body: both-library 100-repeat bounds/canvas replay, all eight standalone consumers including real crop integration, 1,767 matching exports, 357 scene tests, mutation, native registration and strict GCC/Clang. Hosted Fast Gate must supply Dylint; local TSan did not reach compilation. Not waiting on hosted CI as instructed. Both scene sibling PRs remain open; retain their logging/registration changes alongside the private mutex support if rebasing after either lands. |
|
The MSVC logging-link fix added scene-getter-log-link-stub.c to the legacy bounds-placement executable, leaving its exact registration assertion stale. Updated the expected registration to include that source in order; kept the stub and exact match. RED: full native_build:: run at 19b79a0 had 112 pass / 1 fail. GREEN at 12a20a6: all 113 native_build:: tests pass; test_native_b2_portability.py, test_test_graph_sorted.py, test_rust_readme.py, self-test lane and Rust formatting all exit 0. Fast-forward push verified; auto-merge remains enabled. |
12a20a6 to
1e617b1
Compare
|
Rebased after the 14:43 UTC merges onto origin/master 5de5b53, replacing 12a20a6 with 1e617b1. Retained both independent scene module registrations, logging/mutex support and portability assertions; kept the existing formatted CMake registration. No semantic overlap. Passed the whole native_build:: module (113), native portability (7), sorted graph (2), README (1), full CI self-test gate, obs-c-oracle build and six reduced bounds getter Rust/layout/parity tests. Range-diff reviewed; lease-protected push verified; auto-merge remains enabled. Handed off to the pool manager for hosted checks and queue observation. |
The rebase onto master placed item_bounds_getters after item_render_getters, which rustfmt rejects (macOS and Windows Rust Tests ran fmt --check). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ports
obs_sceneitem_get_bounds_type,obs_sceneitem_get_bounds_alignmentandobs_sceneitem_get_bounds_cropintoobs-scene. NULL defaults, detached items and captured-parent recursive video-mutex synchronization retain C behavior; every lock path unlocks that same parent, through the existingitem_fields_lock/item_fields_unlockhelpers. Other transform/bounds getters remain for follow-up. Refs #3897.Commit sequence: preserved C characterization
dd751cfff; repaired standalone verbatim extraction40c54e5d8; Tier 1 RED60bef96f3(both safe tests fail attodo!("#3897"), exit 101,local-test-JVPz53.log); GREEN7c145e4dcplus reviewed integration-link repair and formatting19b79a099. No intended behavior differences.The shims read only the requested initialized field without borrowing the item. Real-header tests measure the prefix span, alignment, every offset and enum widths; existing nested-prefix tests retain LLP64 coverage. C owns complete items and compares every byte after calls, including arbitrary float-neighbor bits, signed zero, infinities and NaN payloads. Proptest persistence is disabled. The concurrent fixture checks all three C and Rust getters block on the parent's video mutex and see fields published before unlock; recursive and detached reads are covered too.
Standalone scene archive consumers supply the hidden mutex adapters: pure-rule tests use abort-only link support, while the real crop integration executable uses real captured-parent locks and libobs logging. The graph-consumer check covers this distinction and exact native source lists retain every assertion. One clud-review reviewer found the initial crop abort-only stub mistake; fixed and re-reviewed clean. No existing C test, public header, WebSocket file or workflow was edited. No new Rust test executable.
Validation:
local-test-TbRHOs.log; initial focusedlocal-test-QroxGn.log). The final six-case rerun after formatting also passes (local-test-qYeKdD.log).characterized_edgesfails immediately with mismatch bits 9, exit 101. Exact GREEN source restored (local-test-DfajmD.log).docker_task_command; ldd proves loader paths and all 1,767 exports match (local-test-gwBvwM.log).local-test-dwTcSm.log). The initial integration stub error was observed as crop startup abort (local-test-76E7HK.log), then repaired before the definitive pass. Reproducer: poolport-3897b/tier2.py.native_build::canonical_rust_static_registration tests pass (local-test-uj1ssw.log). Native portability (7), sorted graph (2), README (1), build groups (10) and port metadata (5) pass.-Wformat-nonliteral -Werror -Wconversion -Wsign-conversion -Wfloat-conversion; Nix Clang uses-Qunused-argumentsand the shell's SIMDe include root. The logger inherits its portable printf annotation from the real base header; no new log callbacks.local-test-p0y8mz.log). The first lint attempt caught a multiline-CMake regex issue during formatting; the checker was fixed before the definitive run.origin/master58d2c1155is a no-op; merge-tree exits 0 (treec8851e576e7f7c5950759eff7e1fc437b9836fa1). obs-scene: Port the scene item ID getter (#3865) #3869 and obs-scene: Port scale filter and blending getters (#3889) #3891 remain open. Range-diff preserves RED exactly and limits extraction repair to removing premature empty metadata and adding the missing module registration. Final head:19b79a099420979c3fc6e425726f73e3ac76890e.Test cost: 25 debug runs of the six new tests, reduced parity, longest 0.243 seconds, peak RSS 15,220 KiB. The concurrency case starts six C workers sequentially (one at a time); other new cases start none. Allocation-driving sizes are fixed complete C objects.
Not verified locally: full
./unittest, native macOS/Windows runtime, or a local-gate attestation. Focused TSan was attempted usingnix-shell rust/tools/sanitize/shell.nix,SOLDR_PORCELAIN=0,OBS_BUILD_NUMBER=3897, the harness configure command and a focused target. Configuration exceeded its 240-second deadline before test compilation, with missingsysprof-capture-4.pcwarnings; no sanitizer pass is claimed. Reproducer/log: poolport-3897b/tsan.pyandtsan.log. Tier 4 does not apply. Hosted PR CI remains the merge gate.