Skip to content

ci(site): start Chrome in the smoke test without depending on its stderr - #74

Merged
TMHSDigital merged 1 commit into
mainfrom
ci/smoke-chrome-startup
Sep 23, 2026
Merged

TMHSDigital merged 1 commit into
mainfrom
ci/smoke-chrome-startup

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

The site deploy after #73 failed before anything was published. The smoke test waited 20 s for Chrome to print its DevTools address on stderr, and on that runner Chrome printed nothing. The same test passed on #73's own PR run, so the problem was Chrome's start-up, not the site. The live site is fine: it still serves the previous build.

What changed in scripts/smoke_site.mjs

  • The test now chooses a free port itself and polls http://127.0.0.1:<port>/json/version until Chrome answers, instead of parsing Chrome's stderr.
  • It waits up to 60 s per attempt. If Chrome stalls or exits, it kills it and starts a fresh one, up to three times, printing what happened each time.
  • It passes --disable-dev-shm-usage, the usual guard against a small /dev/shm on CI machines.

Checked: all six checks pass locally against a fresh build. Merging this also redeploys main, which ships #73.

🤖 Generated with Claude Code

The deploy after #73 failed before publishing: the smoke test waited 20s
for Chrome to print its DevTools address on stderr, and on that runner it
printed nothing at all. The same test passed on the pull request, so this
was the start-up, not the site.

The test now picks a free port itself and polls Chrome's /json/version
until it answers, up to a minute per attempt, and starts a fresh Chrome
up to three times if one stalls or exits, printing what happened. It
also passes --disable-dev-shm-usage, the usual guard for a small /dev/shm
on CI machines.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@TMHSDigital
TMHSDigital merged commit 526fc1d into main Sep 23, 2026
17 checks passed
@TMHSDigital
TMHSDigital deleted the ci/smoke-chrome-startup branch September 23, 2026 17:48
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