Repository navigation
obs-core: Port display state accessors (#3848) - #3849
Conversation
|
Handed off to the pool chaperone. Auto-merge is enabled for verified head a2f893c; required hosted checks / merge queue remain pending. Local six-test GREEN, focused unchanged C Tier 2 OFF/ON, layout, exports, mutation, format, Clippy and review evidence are final in the body. Full unittest/broad Tier 2 and successful full lint are not claimed. Releasing the slot now per pool assignment. |
a2f893c to
8fa91f8
Compare
8fa91f8 to
a156c2a
Compare
|
Rebased assigned head Graph merged without conflicts; disjoint display entries retained, exact base count automatically rebased from 417 to 418. Graph/build inventory: 16 passed, exit 0 ( This assignment also ran Focused owning category |
a156c2a to
c26deeb
Compare
|
Rebased pool head a156c2a onto current master 19da800; exact force-with-lease pushed and remote head verified as c26deeb. Range-diff preserves all seven patches with only the SDK-enabled native inventory assertion addition (425), retaining all master assertions. Native inventory (3), graph ordering (2), graph slices (1), port metadata (5), build groups (10), diff-check and all six display-state Rust tests including layout/C parity pass. No port behavior changes. Series SOLDR_PORCELAIN=0 ./lint passed on #3870 (exit 0; matching passing Dylint verdict reused). Full Tier 2/native platform suites were not repeated. Head-pinned auto-merge confirmed; existing chaperone retains the handoff. |
c26deeb to
5692682
Compare
|
Handed off to the pool chaperone. Replaced c26deeb with verified remote head 5692682 using an exact force-with-lease; head-pinned auto-merge is confirmed. Dropped the count-only commit and kept master relative inventory checks exactly. Range-diff preserves all six original port/test commits; implementation/oracle/Rust tests are byte-identical. Retained graph registrations, moved the README prose into its C file port-table row, and added conditional Windows pthread dependency to the private-header C test graph without editing the C test. Seven exact-list registration tests, six focused display-state/layout/C parity tests, strict host Clang/GCC oracle checks, native inventory (4), graph sorting (2), README (1), build groups (10), port metadata (5), and diff checks pass. The single serial series lint on #3870 reached only the documented soldr Dylint-driver refusal after earlier lanes passed; hosted Fast Gate remains authoritative. Full Tier 2/native runtime suites were not repeated. PR body is final; retiring from hosted monitoring per assignment. |
Fixes #3848
Ports
obs_display_set_enabled,obs_display_enabled, andobs_display_set_background_colorfrom C intoobs-core. NULL setters remain no-ops, the NULL getter remains false, and background colors retain every bit. No intended behavior differences or user-visible changes.The adapter projects only the leading scalar fields of private
struct obs_display; it never allocates a prefix as a complete display or mirrors native mutexes. Real-header checks measure prefix extent, alignment, every field offset, and accessed scalar sizes. The differential oracle compiles the extracted C bodies unchanged and compares complete C-allocated objects after every operation, including unrelated fields outside the Rust prefix. Invalid pointers and unsynchronized concurrent access remain outside the defined C contract; documented in the parity test andrust/README.md.RED → GREEN
SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core obs_core::display_state::exited 101, 0 passed / 3 failed, exactly the threetodo!()stubs. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-Gqtv1X.log.obs_core::display_stateexited 0, 6 passed (three safe-core characterization mirrors, layout, NULL/boundary parity, and bounded arbitrary operation sequences). Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-AAVFNA.log.value & 0x00ff_ffffinstead of the full color exited 101, with both differential behavior tests failing (layout still passed). Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-mcY6eB.log. Exact GREEN source restored; final rerun recorded below.Tier 2 and exports
Both before the swap and after GREEN, unchanged
test_display_statepassed 3/3 against C reference and 3/3 against hybrid, no skips. Loader paths verified usingldd; 1,767 dynamic exports, identical. Original C bodies remain in their own reference-only ported group; existing view PCH reused, no new PCH or workflow. Three public Rust ABI functions use their own export fragment; no hidden functions added.Final log:
/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-SEcBpE.log. C characterization log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-3GRqbJ.log.Focused reproducer:
uv run --no-project /tmp/run-display-tier2.py, using the repositorydocker_task_command, its image/source mount, and the slot's build volume; configure with the standard Tier 2 flags, buildlibobs libobs-c-reference test_display_state, compare exports, verify loader paths, and run the exact CTest selector for OFF and ON. The first attempt found no/build/tree; the next caught the new test's missing caption include dependency; both were resolved by configuration/registration. The broad Tier 2 suite and full./unittestwere not run. Hosted PR CI remains the merge gate; no local-gate attestation claimed.Gates and cost
uv run ci/test_build_groups.py, 10 passed.-Wno-unused-command-line-argumentsolely because this host's Nix wrapper injects linker flags into syntax-only invocations; no product warning policy changed../lint --fixexited 1 in unchangedtest_local_gate_probe: soldr reportedno-cache preflight refused to modify .../target/obs-gate-probe-mkojy3by/target while build lock .../debug/.cargo-lock is active. Formatter and earlier Python checks completed; later Clippy/Dylint lanes were not reached. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-p1H7BR.log. Separate format and focused Clippy results recorded below. No safety guard bypassed.clud-review: one read-only reviewer, clean; no actionable findings.obs-tests-corebinary only. Each new module passed 25 debug runs atOBS_PARITY_CASES=reduced: Tier 1 longest 0.03 s, peak 10,832 KiB RSS; Tier 3 longest 0.02 s, peak 18,160 KiB RSS. No own threads. Proptest sequences capped at 64 operations; 512 full / reduced via the shared parity helper.Separate checks:
soldr cargo fmt --checkexit 0, log/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-CVLAhQ.log;SOLDR_RUSTC_WRAPPER=none soldr cargo clippy -p obs-core --all-targets -- -D warningsexit 0, log/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-7MQybL.log. Initial focused Clippy also encountered a soldr lock refusal; a later serial attempt passed. Restored GREEN six-test rerun exit 0, log/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-JlM01u.log. Final commita2f893c25adds formatting and the mutation-generated minimized0x01000000regression seed; same reviewer checked that follow-up, clean. No mutation remains.Final formatted head
a2f893c25: owning-category focused command rerun exit 0, 6 passed (including saved mutation seed), log/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-SO9guX.log.Merge-queue conflict rebase (2026-11-07)
Replaced head
a2f893c25b91b44e99b81db2d2bfb6d0393e8c56with8fa91f8b1c359b5a6642ffc2cc03960d530fe511, rebased onto mastercc28e01f4afde01229fe70b8df78e5f10b35dea5after #3847. #3857 was still open. Combined disjoint graph entries and ran the repository canonicalizeruv run ci/test_test_graph_sorted.py --fix; all 504 master targets/tests are preserved, plus display state (505 each). Range-diff shows five original commits identical and only graph context differing in characterization. Port source is identical to the old head.The merged exact-count inventory assertion initially failed (417 != 416); follow-up
8fa91f8b1increments its expected base by one for the retained display test.uv run ci/test_native_b2_portability.py: 3 passed. Graph ordering checks: 2 + 5 passed.git diff --check: clean. Focused owning-category display tests: 6 passed, exit 0 (SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core obs_core::display_state), artifact/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-sV3v2x.log.Final
SOLDR_PORCELAIN=0 ./lint: exit 1, diagnostic_state unknown. Artifact tail confirms soldr refusing to build the Dylint driver under clud; all earlier lanes (Python, formatting, workspace and feature-set Clippy) passed. No workaround applied; hosted Fast Gate remains authoritative. Artifact/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-MFq21B.log. Full unittest/Tier 2 were not repeated for this behavior-neutral rebase. Auto-merge enabled with the new head pinned; handed off to pool chaperone.Pool conflict rebase after #3880 (2026-11-07)
Rebased assigned head
c26deeb7b7fa510e849deb2469cb707750e42763onto58d2c1155f9507da4728576f24f8aa68e2efefae. Kept master'sci/test_native_b2_portability.pyexactly and dropped the now-empty count-only commit. Range-diff confirms all six port/test commits unchanged; implementation, oracle and Rust tests are byte-identical to the previous head. Graph entries and all master registrations are retained, and graph sorting was replayed. Moved the existing display-state prose into its C file's port-table row inrust/README.md, preserving the contract and parity record. Added conditionalOBS::w32-pthreadsto the new private-header C test's graph libraries, without editing the C test. No new link-support stub or oracle logging callback.Portability preflight: all seven
native_build::canonical_rust_static_exact-list tests pass. Host Clang and GCC syntax checks pass on the new oracle with strict format/conversion flags and-Werror. Native portability (4), graph sorting (2), README placement (1), build groups (10), port metadata (5), and diff checks pass. Latest hosted runs for the replaced head were successful; no latest hosted failure required diagnosis. Earlier exact inventory counts above are superseded by master's relative checks.The assignment's single serial
SOLDR_PORCELAIN=0 ./lintran on #3870: all earlier lanes (formatting, self-tests, workspace and feature Clippy) passed, then exit 1 / diagnostic_state unknown at the documented soldr Dylint-driver build refusal under clud. Tail confirms the refusal for Dylint v6.2.0 / nightly-2026-05-28; no toolchain/guard workaround. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-hXI1qS.log. Hosted Fast Gate remains authoritative. Full unittest/Tier 2 and native platform runtimes were not repeated for these mechanical rebases.Final focused
SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core obs_core::display_state: exit 0, six tests passed including full-object original-C parity, arbitrary operation sequences, NULL/boundaries and real-header prefix layout. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-qjIq06.log. New head:569268230bb04154d98252badee9ca73b53f225c.