Repository navigation
perf(test): remove nine serial barriers and fix output deactivation race - #1643
Merged
Merged
Conversation
…ld timing isolation (GREEN)
zackees
force-pushed
the
infra/tier2-concurrency-audit
branch
from
October 21, 2026 20:09
ef33f90 to
3968a7c
Compare
zackees
marked this pull request as ready for review
October 21, 2026 20:24
This was referenced Oct 21, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1634. Refs #1581, #456, #1391.
Remove nine unnecessary Linux Tier 2 serial barriers while preserving the real-time deinterlace guard. Eight tests already use process-owned resources; XSHM now changes resolution on a private Xvfb, with serial fallback when unavailable. Bound software-renderer workers to one per Linux test process. Keep the existing two-shards-per-backend CI matrix and all coverage/skip/timeout policies.
Resolve the output-delay race exposed by concurrency: publish inactive state before emitting
deactivate. A new deterministic real-libobs callback test covers normal and forced stop; existing C test bodies and public headers are unchanged. The frontend wait logic is unchanged; its comments now describe the corrected core ordering. Feature ledger updated.Report and all exploratory outcomes:
docs/ci-serial-audit-2026-10-21.{md,json}. Historical unguarded timings are not final-policy or CI gate speedup claims. The landing-policy section supersedes the exploratory recommendation.Failures resolved
yadif_2x_bottom_first_50i_into_30in OFF shard 1 despite the renderer cap. Local capped successes did not establish CI reliability. Restore only deinterlace RUN_SERIAL; retain the nine other concurrency gains.RED → GREEN
cb6ce6057→1284477b8: generated CTest registrations require private XSHM and the removable barriers; initial RED had 17 failing assertions.26818e7e8→066dc622f: actual Bash environment rejects an inherited 128-worker renderer pool and pins it to one.8c2f1dc7aRED: both new callback cases fail deterministically against both backends (CTest exit 8 each). Scheduling guards also fail three assertions until timing isolation is restored.6d3b3740bGREEN: both callback cases pass 100 stop cycles each against each backend (400 total), and all 27 focused configuration/environment/shard tests pass. Earlier exploratory deinterlace-removal commits are intentionally superseded.Validation
Native build rebased onto
f3e6260b1: 1,766 identical exported symbols; 64 ported C implementations excluded from hybrid libobs.OBS_TIER2_STAGE=test OBS_CTEST_JOBS=8 rust/tools/linux-validate/run.sh:The same three unavailable PulseAudio tests skip. No original registry entries are lost; four tests arrived on master and one is the new regression. Only deinterlace retains RUN_SERIAL when Xvfb is available. All Linux registrations retain the renderer budget.
Pinned clang-format / gersemi, Bash syntax, diff checks and 27 focused Python tests pass. One primary local review found no blocking code issues; its two documentation/evidence notes are addressed. No Rust source or protocol implementation changed; runtime compatibility is checked against both backends. Full local gate not run; PR CI and merge-group CI remain the merge gates. No new workflow file or shard-count change.
Final local validation used unrestricted affinity (16 logical CPUs), unlike the four-core historical experiments. Treat it as correctness evidence, not a controlled timing comparison.
Rebased the previous head
ef33f90ddf7ed473c0a4a62c349907e570e2c1b4onto current master at task start; retained the separate RED/GREEN commits. User explicitly requested completing and merging this optimization. Use the normal merge queue.