Skip to content

libobs: characterize and extract the video stop traversal - #4099

Merged
zackees merged 4 commits into
masterfrom
port/4098-video-stop-requested
Nov 9, 2026
Merged

zackees merged 4 commits into
masterfrom
port/4098-video-stop-requested

Conversation

@zackees

@zackees zackees commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Refs #4098 (native child of #444).

Extract stop_requested verbatim from obs-video.c.h into obs-video-stop-requested.c.h in the same unity group. Add C-source characterization for every stopped/running vector over zero through four mixes, query order after a running output, and the real mutex held across all queries and released before return. No behavior, signature, public header or existing C test changes.

Hold for graph serialization. Do not enable auto-merge. This PR adds the test to test/cmocka/build/test-graph.json. It is the C-only prerequisite that testing-policy.md requires to land before the Rust RED/GREEN port; it deliberately does not close #4098. The source-only test does not exercise a future Rust swap; the existing video lifecycle Tier 2 tests remain required for that port.

Validation:

  • GCC 15.2 and Clang 21: the cmocka characterization passes in the Tier 2 container (31 vectors, no graphics/output worker threads).
  • Deliberate C mutant that breaks after the first running output: rejected at the visit-count assertion (1 != 2). Production source stayed unchanged.
  • Build-group and native-inventory self-tests pass. Both graph-order checks pass after correcting entry placement.
  • Independent pre-push review: clean; extraction matches the original byte for byte apart from its PCH include.
  • Final SOLDR_PORCELAIN=0 ./lint: exit 0 in 171.8 s. Its initial graph-order failures were fixed and both focused ordering checks pass.
  • Generated native-graph compile command replay and standalone execution pass with GCC 15.2 and Clang 21 (-Werror retained; the Clang replay omits GCC-only -Wno-error=maybe-uninitialized and -Wno-stringop-overflow).
  • Actual CMake/CTest test_video_stop_requested target passes with C-reference and hybrid library paths (0.09 s each). This remains C-source characterization, as documented above.
  • Both libobs variants built; export comparison: IDENTICAL (1767 symbols). The broad harness hit its 900 s deadline after zccache launcher failures (exit 125, daemon socket connection refused) and its sanctioned uncached recovery build. The complete Tier 2 suite did not finish; no full-suite pass is claimed. The remaining container was stopped.

No Rust tests or binaries added. Rust RED/GREEN, the C oracle and actual Rust-swap Tier 2 belong to the follow-up after this prerequisite lands. Tier 4 is inapplicable to this private non-protocol helper. No user-visible behavior changes, so no features-ledger entry.

Fixup for the failed Windows/claim checks (worker-pool fix-4099):

  • Rebased onto 220040044 (origin/master at session start). The three original PR commits are unchanged by git range-diff; replaced remote head was 0c08e63ba66b665011e082a7f40934b610bbc5df, pushed with that exact force-with-lease.
  • RED: Windows Tier 2 job 128916222781 fails at test_video_stop_requested.c:14 because MSVC C headers do not define max_align_t (C2061/C2059, followed by cascading undeclared-identifier errors). A focused soldr cc --target win-x64 probe reproduces unknown type name max_align_t (exit 1).
  • GREEN commit ef470199d: use long double storage for the four opaque identity tokens. They are never dereferenced; every assertion, vector, mutex call, and production source stays unchanged. The replacement token compiles against the Windows MSVC-target headers (exit 0). GCC 15.2 and Clang 21.1.8 compile and run the complete characterization with -Werror (31 vectors each). This does not claim a complete native Windows build or full Tier 2 suite pass.
  • The initial claim comment had no bot acceptance reaction, despite assignment and Ready metadata. The documented release/reclaim sequence obtained a fresh accepted claim: rust: Port the private video stop_requested helper to obs-core #4098 (comment) (bot rocket reaction, assigned to PR author, Ready). Requested claim job 128916833771 was rerun; replacement job 128935648389 passed in run 42541373700.
  • Final timeout 1200 env SOLDR_PORCELAIN=0 ./lint: exit 0, lane lint: ok (405.6s). Raw log: /home/niteris/.clud/tmp/tool-output/local-test-private/local-test-pGFnYZ.log.
  • Auto-merge remains OFF. Ready, hold for graph serialization.

@github-actions github-actions Bot added the claim-conflict A PR closing reference conflicts with the issue claim label Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Claim conflict: keep this PR out of the merge queue until resolved.

@zackees
zackees force-pushed the port/4098-video-stop-requested branch from 0c08e63 to ef47019 Compare November 9, 2026 01:49
@github-actions github-actions Bot removed the claim-conflict A PR closing reference conflicts with the issue claim label Nov 9, 2026
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Nov 9, 2026
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
Merged via the queue into master with commit 4a2d5ca Nov 9, 2026
42 checks passed
@zackees
zackees deleted the port/4098-video-stop-requested branch November 9, 2026 04:17
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 9, 2026
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 the private video stop_requested helper to obs-core

1 participant