Skip to content

test: make smoke hermetic to GALLEY_HOST in the caller's shell - #65

Merged
ymansurozer merged 1 commit into
mainfrom
test/smoke-hermetic-env
Jul 21, 2026
Merged

test: make smoke hermetic to GALLEY_HOST in the caller's shell#65
ymansurozer merged 1 commit into
mainfrom
test/smoke-hermetic-env

Conversation

@ymansurozer

Copy link
Copy Markdown
Owner

scripts/smoke.mjs passes the caller's full environment to the spawned desk, and its waitForDeskUrl matcher asserts the loopback URL (http://127.0.0.1:<port>). In a shell that exports GALLEY_HOST (the devbox/tailnet pattern the --host feature is built for), the desk binds beyond loopback and prints a non-loopback URL, so every local pnpm smoke / pnpm release times out — while CI, with no such variable, stays green.

Fix: build one sanitized env (GALLEY_HOST and GALLEY_ALLOWED_HOSTS deleted, GALLEY_NO_UPDATE_CHECK=1 kept) and use it for both the desk spawn and the agent-subcommand cli() calls.

Verified by running node scripts/smoke.mjs in a shell with GALLEY_HOST=0.0.0.0 exported: previously timed out, now SMOKE PASS.

🤖 Generated with Claude Code

Devbox shells export GALLEY_HOST=0.0.0.0 so real desks bind beyond loopback,
but smoke's waitForDeskUrl asserts the loopback URL — an inherited GALLEY_HOST
made every local `pnpm smoke`/`pnpm release` time out. Strip it (and
GALLEY_ALLOWED_HOSTS) from the env passed to spawned desks and CLI calls.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ymansurozer
ymansurozer merged commit c6a9ede into main Jul 21, 2026
1 check passed
@ymansurozer
ymansurozer deleted the test/smoke-hermetic-env branch July 21, 2026 11:38
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