Skip to content

test(capture): keep fixture streams live across stale frames - #278

Merged
hyperb1iss merged 1 commit into
mainfrom
nova/macos-capture-fixture
Sep 8, 2026
Merged

test(capture): keep fixture streams live across stale frames#278
hyperb1iss merged 1 commit into
mainfrom
nova/macos-capture-fixture

Conversation

@hyperb1iss

@hyperb1iss hyperb1iss commented Sep 8, 2026

Copy link
Copy Markdown
Owner

The macOS capture lifecycle fixtures now supply an ongoing 60fps stream while waiting for an observation. Previously they supplied one frame. If that frame expired during scheduling pressure, production correctly rejected it and the test could never receive a replacement.

A controlled first-frame processing stall reproduces the failure: the old fixture receives one stale frame and fails its two-second wait. With ongoing delivery under the same stall, one frame is rejected and a fresh frame publishes in 80ms. Production freshness rules, capture rates, and observation deadlines are unchanged.

Each scoped producer stops and joins before reconfiguration. The generation test requires both new geometry and new green pixels, so old content cannot satisfy it. The stale-frame test still proves rejection before checking recovery.

Validation: all 14 fixture tests pass locally, including an independent run with eight test threads; scoped Clippy, formatting, and diff checks pass. Independent design review passed. Native Intel capture and interop fixtures pass, and the full Apple Silicon capability job passes. The refreshed 0.5.0 tag passed the complete Intel and Apple Silicon capability jobs, Windows validation, Servo tests, and both end-to-end suites.

The Windows GPU-fence fixture fix in #277 is merged. This change completes the two fixture repairs found during 0.5.0 release validation.

A single synthetic frame can expire under scheduling pressure, leaving
lifecycle tests with no subsequent frame to observe. Deliver fixture
frames at 60fps until each observation completes, then stop and join the
producer before crossing any reconfiguration boundary.

Preserve stale-frame rejection and prove recovery with fresh pixels.
Require new geometry and new content after a worker generation change.
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 946fb035-e016-45b8-87c9-0eb7d65e2d24

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

hyperb1iss added a commit that referenced this pull request Sep 8, 2026
Merge the independently reviewed Windows fixture fix after native Windows validation. The separate Intel fixture repair follows in PR #278.
@hyperb1iss
hyperb1iss changed the base branch from nova/windows-reclaim-fixture to main September 8, 2026 16:28
@hyperb1iss
hyperb1iss merged commit 1034513 into main Sep 8, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant