Skip to content

fix: Reset Harness timeout on test progress - #4127

Draft
mrousavy wants to merge 1 commit into
mainfrom
agent/reset-harness-timeout-on-progress
Draft

fix: Reset Harness timeout on test progress#4127
mrousavy wants to merge 1 commit into
mainfrom
agent/reset-harness-timeout-on-progress

Conversation

@mrousavy

@mrousavy mrousavy commented Aug 3, 2026

Copy link
Copy Markdown
Owner

What changed

  • Patch @react-native-harness/bridge@1.4.0-rc.1 so pending RPC timeouts can be refreshed by matching progress events.
  • Treat test-started and test-finished events from the same test file as progress for runTests.
  • Add regression coverage for timeout refreshes and cross-file isolation.

Why

Harness currently applies bridgeTimeout once to the entire runTests RPC. A long test file such as visioncamera.controller.harness.ts can therefore be killed after 120 seconds even while individual tests continue completing.

The patched timeout behaves as an inactivity deadline instead. Active files remain alive, while a genuinely stalled test still fails after a full timeout interval without progress. Unrelated bridge events cannot keep a stalled file alive.

Validation

  • Focused Harness RPC tests: 9/9 passed
  • TypeScript check for the patched bridge source
  • Runtime dist smoke test
  • bun install --frozen-lockfile
  • git diff --check

The full Android suite was not run locally because this worktree does not contain a built debug APK.

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview Aug 3, 2026 3:40pm

Request Review

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