Repository navigation
Description
Summary
The real-browser CI check intermittently fails before any REA code runs, while waiting for Chrome to expose its CDP devtools port.
The failure is a bare startup timeout, not an assertion about REA behavior:
file:///home/runner/work/rea/rea/scripts/verify-real-browser.mjs:328
throw new Error(`Timed out waiting for Chrome CDP startup: ${stderr()}`);
^
Error: Timed out waiting for Chrome CDP startup:
at devtoolsPort (file:///home/runner/work/rea/rea/scripts/verify-real-browser.mjs:328:9)
at async file:///home/runner/work/rea/rea/scripts/verify-real-browser.mjs:62:16
Reproduction
Observed on PR #253 (release-please--branches--main--components--rea-agents) on run https://github.com/morluto/rea/actions/runs/29505599423/job/87645409074. The same commit passed real-browser on a prior run, and a rerun of the failed job succeeded, so the failure is not deterministic.
Environment from the failing job:
REA_BROWSER_EXECUTABLE=/usr/bin/google-chromeREA_BROWSER_NO_SANDBOX=true- runner:
ubuntu-latest
Expected behavior
npm run verify:browser should either start Chrome reliably or surface a more actionable diagnostic (e.g. Chrome exit code, stderr tail, devtools-port probe result) before timing out.
Actual behavior
scripts/verify-real-browser.mjs:328 throws Timed out waiting for Chrome CDP startup: with an empty stderr string, giving no signal about why Chrome did not come up.
Suggested investigation
- Capture and print Chrome's stderr/exit status in the timeout path of
devtoolsPortso failures are diagnosable. - Consider a bounded retry of the Chrome launch before declaring the check failed.
- Check whether the GitHub-hosted Chrome image occasionally needs a longer startup deadline or a warm-up step.
Test plan
- Rerun
real-browseronmainseveral times to estimate the flake rate. - Add stderr/exit-code capture to the CDP startup wait and confirm a future failure includes actionable output.
Activity