Skip to content

obs-output: Port output pause capability getter (#3895) - #3896

Merged
zackees merged 4 commits into
masterfrom
port/output-can-pause
Nov 7, 2026
Merged

zackees merged 4 commits into
masterfrom
port/output-can-pause

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Ports obs_output_can_pause to obs-output, preserving the current-info capability bit, NULL false result and exact debug diagnostic. No locks, references, plugin callbacks or intended behavior/ABI differences.

Fixes #3895 (native sub-issue of #444).

Commit sequence: C-only actual-library characterization 8bf796d, byte-identical C extraction 70dc7cc, Tier 1 RED a448670, Rust GREEN 06af0cc. RED exited 101 with both tests failing at the intended todo!("#3895"); artifact local-test-sVVzxz.log.

Rust owns the public getter and NULL/default/logging decisions. A private C seam only returns the borrowed address of output->info.flags; no Rust mirror of the private output layout. Real-header checks cover the flag type size/alignment and constant value, and verify the adapter address. Public headers, existing C tests and WebSocket are unchanged. The new characterization remains unchanged after its C-only commit. The port record is in the libobs/obs-output.c.h README table row; the features ledger and Tier 4 do not apply to this behavior-preserving field query.

Validation:

  • Final restored-GREEN run: six new Tier 1/header/differential tests pass with reduced parity (exit 0, artifact local-test-Wqotcp.log). C-allocated actual-layout fixtures compare full-width flag words, complete unchanged output state and exact isolated NULL logging. Proptest persistence is disabled.
  • Mutation: forcing non-NULL results to false kills deterministic and randomized differential tests (exit 101, two failed); GREEN restored. Artifact local-test-nK2798.log.
  • Characterization passes against the actual original reference and hybrid libraries. After extraction and after the Rust swap, focused Tier 2 passes three repeats per library using the repository docker_task_command, this slot's warm volume and API version 33. ldd proves each intended library is loaded; dynamic export sets match exactly: 1,767 symbols. Artifacts local-test-JM5xy1.log, local-test-E9Lskz.log.
  • Host GCC and Clang accept the new oracle, C characterization and extracted query with -Werror -Wformat-nonliteral -Wconversion -Wsign-conversion; Clang uses -Qunused-arguments and actual SIMDe system-header roots. The log callbacks have portable printf annotations.
  • All seven exact native_build::canonical_rust_static_ registration checks pass (local-test-AC3sGX.log), as do native portability (4), graph sorting (2), README (1) and source-group inventory (10). Registration is single-source in the test graph, including conditional Windows pthread headers and caption/Uthash dependencies.
  • One primary read-only clud-review reviewer: clean, no actionable findings.

SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none ./lint --fix exited 1 only at the documented soldr refusal to build the Dylint driver under clud (no deployed driver for the pinned nightly). Every earlier formatter, CI self-test and workspace/feature Clippy lane passed. No workaround; hosted Fast Gate must supply Dylint. Artifact local-test-6Z9hMH.log.

Test cost: 25 debug runs per new module at reduced parity; Tier 1 longest 0.02 s, peak 11,200 KiB RSS; header/parity longest 0.06 s, peak 15,532 KiB RSS. No own threads; one isolated child process for global-log probes. Existing Core state binary only.

Final rebase/merge-tree evidence: fetched origin and rebased before the final push; master was unchanged, so all four commit IDs remain intact. git merge-tree --write-tree --name-only origin/master HEAD exits 0 without conflicts. Required graph/portability/README checks pass after rebase; C characterization is byte-identical to its C-only commit.

Full ./unittest/Tier 2 suite, native macOS/Windows runtime validation and local-gate attestation were not run. Hosted required PR CI remains the merge gate. Artifact basenames above are under /home/niteris/.clud/tmp/tool-output/local-test-private/; reproducers are in this slot's ignored build_ci_audit/output-can-pause/.

@zackees
zackees marked this pull request as ready for review November 7, 2026 13:13
@zackees
zackees enabled auto-merge November 7, 2026 13:13
@zackees
zackees added this pull request to the merge queue Nov 7, 2026
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased locally onto master 6551be3 after #3858/#3883: kept the pause README record and master service-release update. All checks exit 0: full native_build:: (115), native portability, sorted graph (--fix then check), README, local_gate self-test, oracle build, reduced output::output_can_pause (6 including parity). Range-diff preserves all four commits. Exact force-with-lease push was rejected by GitHub because this branch is queued; no protection bypass attempted. Remote remains 06af0cc; validated local head 1b8cab2 is preserved in slot obs-studio3 as pool-rebase-3896-1b8cab296. Hosted CI/Tier 2/native runtimes were not repeated.

@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 7, 2026
@zackees
zackees force-pushed the port/output-can-pause branch from 06af0cc to 1b8cab2 Compare November 7, 2026 15:05
@zackees
zackees enabled auto-merge November 7, 2026 15:05
@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit 6a59c5f Nov 7, 2026
44 checks passed
@zackees
zackees deleted the port/output-can-pause branch November 7, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Port obs-output.c.h pause capability getter to obs-output

1 participant