Repository navigation
obs-output: Port encoder counter accessors (#3856) - #3858
Conversation
|
Handed off to the coordinator / pool chaperone. Verified GREEN head 1dc7493 is pushed, ready, and auto-merge is enabled with that head pinned. Final local encoder run: 358 passed; unchanged C characterization passes 3x against each library; all 1,767 exports match; deliberate mutant killed. Lint stops only at the documented soldr Dylint-driver refusal under clud; earlier lanes passed. Full local suite and native runtime validation are not claimed. Hosted checks remain pending; not waiting on them per pool assignment. |
1dc7493 to
bd8e987
Compare
|
Rebased assigned head
|
bd8e987 to
c9494b5
Compare
|
Pool preflight repaired the remaining strict-Clang failure: the new characterization log callback lacked its printf annotation (oracle was already annotated). Also added conditional OBS::w32-pthreads for its private encoder layout. RED e0a4f22 fails two regressions; GREEN 0cd38a7 passes both; seven exact registration tests and all three requested Python checks pass. Both GCC and Clang accept oracle and characterization with -Wformat-nonliteral -Werror. All assertions preserved. Lint stops only at documented clud Dylint-driver refusal after earlier lanes pass (local-test-Djq93U.log). Replaced c9494b5 with e141913 using an exact lease; original patches unchanged. Full native/Tier 2 runtime not repeated. Handed back to the pool chaperone after head-pinned auto-merge re-arming. |
Ports
obs_encoder_get_encoded_framesandobs_encoder_get_pause_offsettoobs-output, preserving exact counter values, NULL defaults, unchanged state, and the historical encoded-frame log nameobs_output_get_encoded_frames. No intended behavior or public ABI differences.Fixes #3856 (native sub-issue of #444). Other encoder accessor groups remain listed in that issue.
Commit sequence: C-only actual-library characterization 59edb8c, byte-for-byte C extraction 9d02c38, Tier 1 RED 51e625b, Rust GREEN 1dc7493. RED command
SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none soldr cargo test -p obs-data --test obs-tests-core output::encoder_counters::exited 101: both tests failed attodo!("#3856"). RED artifact:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-k0U9st.log.Rust owns the public getters, null/default decisions and logging. The C adapter only returns borrowed field addresses, avoiding a Rust mirror of the large private encoder layout. The adapter is extracted verbatim into the oracle build; the original C getter source remains in its own C-reference ported group. Both Rust symbols are public and registered in
rust-exports.d; no Rust hidden-symbol fragment is needed. No matching Windows benchmark stand-ins existed. Public headers, existing C tests and WebSocket are unchanged. No feature-ledger entry applies to this behavior-preserving port.Validation:
OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core output::encoder. Artifact:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-0qYTgK.log.obs-internal.hsupplies the view size, alignment and every field offset. C-allocated real-layout encoder fixtures check boundary/full-width and randomized counters, unchanged counter and pause state, and isolated NULL log behavior.docker_task_command, this slot's warm build volume and actuallibobs/libobs-c-reference. The unchanged characterization passes three repeats against each library before and after the swap.lddconfirms each implementation is loaded. Dynamic export sets match exactly: 1,767 symbols. Post-swap artifact:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-bnr7mn.log.-Wconversion -Wsign-conversion -Wfloat-conversion; Clang retains harmless host-wrapper injected linker-argument warnings during syntax-only compilation.characterized_edgesandrandom_counters_match_cfail, exit 101 (two passed, two failed). Persistence is disabled; the exact GREEN source was restored. Artifact:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-Cyoo6m.log.SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none ./lint --fixexited 1 only at the documented soldr refusal to build the Dylint driver under clud (v6.2.0 has no deployed driver for the pinned nightly). Every earlier formatting, 349 CI self-test scripts and workspace/feature Clippy lane passed. No toolchain workaround; hosted Fast Gate must supply Dylint. Artifact:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-Uc5VOU.log.clud-reviewreviewer: clean, no actionable findings.Test cost: 25 debug runs per new module with
OBS_PARITY_CASES=reduced; Tier 1 longest 0.05 s, peak 11,952 KiB RSS; layout/parity longest 0.11 s, peak 17,136 KiB RSS. No own threads; one isolated child process for global-log probes. Existing Core state binary only.The full
./unittest/Tier 2 suite, native macOS/Windows validation and local-gate attestation were not run. Hosted required PR checks remain the merge gate. Tier 4 does not apply to these counter readers.Pool preflight repair: RED
e0a4f223ffails both portability regressions; GREEN0cd38a7e7adds the new C fixture's printf callback annotation and conditional Windows pthread header dependency, preserving every assertion. The sevennative_build::canonical_rust_static_tests pass (local-test-esK6Kk.log), as do native portability, graph sorting, README and both new portability regressions. Strict host Clang and GCC syntax checks pass for the new oracle and characterization with-Wformat-nonliteral -Werror(Clang uses-Qunused-arguments). Serial./lint --fixpasses earlier lanes and stops only at the documented clud Dylint-driver refusal (local-test-Djq93U.log); hosted Fast Gate must supply Dylint. Full native runtime/Tier 2 suites were not repeated for this annotation/dependency repair.