Repository navigation
obs-core: Port borrowed global core getters (#3881) - #3885
Conversation
|
Manager priority change: paused here at WIP GREEN cd2fb3e; keep this PR draft and do not arm it. RED-before-GREEN is preserved. Five focused Rust tests passed; the unchanged C characterization passed OFF/ON with ldd proof and identical 1,767 exports; Tier 3 killed the removed-read mutant. Final restored rerun/lint, rebase and final PR body remain before resuming. |
cd2fb3e to
da7dd0f
Compare
da7dd0f to
7d80d34
Compare
|
Pool preflight repaired the merge conflict after #3880 by rebasing onto master and dropping the obsolete absolute inventory-count edits. Range-diff preserves all characterization, extraction, RED and GREEN implementation/test patches otherwise. No new RED is needed for this mechanical rebase; the original RED/GREEN sequence remains. All seven exact canonical Rust-static registrations, four master portability tests, graph sorting and README policy pass. Both new C sources pass strict Clang and GCC with -Wformat-nonliteral -Werror (Clang uses -Qunused-arguments); the oracle uses its two generated include extracts. No new private-header test/stub dependency applies to this PR. Full lint/native/Tier 2 execution was not repeated for this rebase. Evidence: build_ci_audit/preflight/green/3885-results.json and adjacent logs. Replaced da7dd0f with 7d80d34 using an exact lease; verified remote head and re-armed head-pinned auto-merge. Handed back to the pool chaperone. |
7d80d34 to
52ab412
Compare
|
Rebased after the 14:43 UTC merges onto master 5de5b53. Resolved the oracle build.rs conflict by retaining both canvas and core-global extraction blocks; other disjoint adapters, table rows and graph registrations merged intact. Range-diff preserves the original port/test patches. Whole native_build:: module (113 tests), portability (6), sorted graph (2), README (1), local_gate --only self-test, obs-c-oracle build and all five focused obs_core::global_getters unit/parity tests passed. An initial oracle attempt was refused while the native test held the target lock; the serial retry passed. Exact lease replaced 7d80d34 with 52ab412; remote verified and head-pinned auto-merge enabled. Full Tier 2 and native Windows/macOS were not rerun; hosted CI remains the merge gate. |
52ab412 to
9daf94f
Compare
|
Rebased after #3849 onto e4571c5; replaced 52ab412 with 9daf94f using an exact lease. Kept both display and globals module declarations in rustfmt order. Range-diff shows only declaration-list context changes. Checks pass: workspace fmt, all native_build tests (127), portability (6), graph sorting (2), README (1), oracle build, globals Rust/parity (5), display Rust/parity/layout (6). Soldr refused the first concurrent display attempt due to the active build lock; the serial retry passed without changing safeguards. Auto-merge remains enabled. Hosted CI/full Tier 2 were not repeated locally; handed back to the pool manager. |
9daf94f to
c4fe97e
Compare
|
Rebased onto master 8e406b2 after #3916/#3920/#3919, replacing 9daf94f with c4fe97e using an exact lease. Kept sibling unity includes in sorted order. Removed manual field-adapter extraction and changed the oracle include to discovery-generated core_global_fields.inc; retained explicit extraction of the non-adapter getter body. No shared registration additions or production-getter dependencies required repairs. All requested checks pass: discovery/registration guards, workspace fmt, whole native_build (129), oracle build, obs-util (914 plus doctests), focused global Rust/parity (5), portability, sorted graph, README, build groups, and local-gate self-test. First native run had 128 passes and one OS Text file busy error in the staged-executable fixture; whole-module retry passed. Range-diff reviewed; remote head verified and auto-merge remains enabled. |
c4fe97e to
37c2ef7
Compare
|
Rebased onto current master, replacing c4fe97e with 37c2ef7. Preserved master’s hotkey identity adapter and the getter field adapter, with characterization, extraction, RED and GREEN order intact. Focused Tier 1 and Tier 3 tests, oracle discovery, registration inventory, all 148 native-build tests, 914 utility tests and both doctests, workspace formatting, portability, graph sorting and README checks pass. The conflicted core group compiles with GCC and Clang in the Nix environment; Clang allows the existing GNU variadic-macro extension. Exact-lease push verified and head-pinned auto-merge re-armed. Hosted CI and full Tier 2 were not rerun locally. Handed back to the pool coordinator. |
Ports
obs_get_locale,obs_get_signal_handler, andobs_get_proc_handlerinto the existingobs-corecrate. Rust reads borrowed pointer fields through three private typed field-pointer adapters; it does not mirrorobs_core, allocate, acquire references, or take locks. Public headers and pointer identity stay compatible, including null stored fields.The original C directly dereferences
obs. These getters therefore retain their initialized-core precondition; calling them before initialization is undefined behavior in C, rather than a null-return contract. No intentional behavior differences or user-visible change.Fixes #3881. Refs Phase 6 parent #444.
Commit order: actual-library C characterization
64f1d5caf, verbatim C extractione5a90e0e7, Tier 1 RED2322b865e, Rust GREENda7dd0fab. The observed RED commit before rebase was9e1b3cec0: all four safe-core tests failed at the stub undersoldr cargo test -p obs-data --test obs-tests-core obs_core::global_getters::(exit 101; artifactlocal-test-b6RBsF.log). The C characterization has not changed since its own C-only commit.Validation:
/build/tree/libobs-c-reference/libobs.so.30and/build/tree/libobs/libobs.so.30; dynamic exports matched exactly at 1,767 symbols. The focused Docker replay usesdocker_task_command, this slot's warm volume, and upstream API version 33.local-test-mmZG0y.log). The oracle compiles the verbatim extracted getter and production adapter bodies over test-owned pointer slots. Fixed and randomized cases compare exact pointer identity across null fields, aliases, independent changes, and repeated reads. No public struct layout is mirrored, so no new public-layout measurement is applicable.global_reads_match_cfail (exit 101;local-test-WhnfmT.log). Proptest persistence is disabled. GREEN was restored exactly before further Docker work.Test cost: 25 reduced-case debug differential runs, longest wall time 0.017 s, peak child RSS 16,184 KiB; no own threads. The existing Core state binary owns all five new tests. Tier 4 does not apply to these pointer reads.
The definitive rebased Docker replay again passes all three C cases per library, with loader proof and identical 1,767 exports. Targeted Clippy (
soldr cargo clippy -p obs-data --test obs-tests-core -- -D warnings) exits 0 (local-test-iTubyd.log); changed Rust/C formatting and strict Clang/GCC checks of the oracle and C characterization pass. Range-diff preserves the characterization, extraction and RED patches; GREEN differs only in its finalized commit message. The latest master merge-tree is clean.Full workspace/Tier 2 suites, native macOS/Windows execution, repo-wide Dylint, and local-gate attestation were not run for this final globals head; hosted PR CI remains the merge gate. The full lint invocation during the priority repairs passed earlier lanes and stopped at soldr's documented refusal to build the missing Dylint driver under clud; no tooling workaround was attempted.
Pool preflight repaired the merge conflict after #3880 by rebasing onto master and dropping the obsolete absolute inventory-count edits. Range-diff preserves all characterization, extraction, RED and GREEN implementation/test patches otherwise. No new RED is needed for this mechanical rebase; the original RED/GREEN sequence remains. All seven exact canonical Rust-static registrations, four master portability tests, graph sorting and README policy pass. Both new C sources pass strict Clang and GCC with -Wformat-nonliteral -Werror (Clang uses -Qunused-arguments); the oracle uses its two generated include extracts. No new private-header test/stub dependency applies to this PR. Full lint/native/Tier 2 execution was not repeated for this rebase. Evidence: build_ci_audit/preflight/green/3885-results.json and adjacent logs. Replaced da7dd0f with 7d80d34 using an exact lease; verified remote head and re-armed head-pinned auto-merge. Handed back to the pool chaperone.