Skip to content

Make production smoke CLI run from paths with spaces - #7

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
agent/rolepatch6-smoke-spaces-20261005
Oct 5, 2026
Merged

sarthakagrawal927 merged 1 commit into
mainfrom
agent/rolepatch6-smoke-spaces-20261005

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

The direct-execution guard compared Node's percent-encoded import.meta.url with a raw file:// string built from process.argv[1]. In worktree paths containing spaces, pnpm smoke:prod could exit 0 without running any checks.

The guard now compares against pathToFileURL(process.argv[1]).href. A child-process regression copies the CLI into a path containing spaces, runs it against a local HTTP fixture, verifies all six public check results print, and confirms one 503 produces a nonzero exit. It sends no production requests and uses no session cookie.

Validation: the new regression passed after reproducing the baseline silent exit; the full production-smoke.test.ts passed (5/5); pnpm run typecheck passed; changed-file Biome passed; the push hook's full-repository Biome check passed (327 files). Exact PR CI is pending.

Tracks #6.

@sarthakagrawal927
sarthakagrawal927 merged commit 2a6b0be into main Oct 5, 2026
1 check passed
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