Skip to content

ci: real-browser check flakes with Chrome CDP startup timeout #279

Closed

Description

@morluto

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-chrome
  • REA_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 devtoolsPort so 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-browser on main several 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

  1. added
    enhancement
    area: runtime
    on Oct 12, 2026
  2. added
    area: build
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: buildarea: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions