Public: anyone can read this; the crew can change it.
scripts/smoke.ts <url> checks a live forge as a phone and as a desktop, and names the first thing a user would find broken #2332
scripts/smoke.ts checks a live forge as an iPhone Safari user and as a desktop Chrome user. It exits non-zero on the first failure and prints the URL, the user agent, the status and the content type. I changed nothing this round, and the branch is already pushed.
stopped parked by the crew deploy 0038526
scripts/smoke.ts <url> checks a live forge as an iPhone Safari user and as a desktop Chrome user. It exits non-zero on the first failure and prints the URL, the user agent, the status and the content type. I changed nothing this round, and the branch is already pushed. The smoke tests (9) and test/resilience.test.ts (12) pass here, and bun x tsc --noEmit is clean.
Why the earlier check failed: the failing test, "the owner's screen with snapshots > a store with a newest snapshot and a mirror…", is in test/resilience.test.ts. That file isn't touched by this change. It passed three times in a row here, so I'm treating the failure as a flake. I did not edit that test. I haven't seen the failure's log, so a repeat on this push would need a look at that log.
What it does
bun scripts/smoke.ts <url> --version <v>first waits, up to--waitseconds, for/healthz'sX-Forge-Versionto equal<v>.- For each user agent it then checks:
/,/boardand/healthzanswer 200./boardis signed in withFORGE_TOKEN, and a redirect to sign-in counts as a failure.- The stylesheet linked from
/is a 200text/cssresponse with a body. /sw.jsis a 200 JavaScript response, and no navigation path in it answers withResponse.error().
- It refuses to send the token over plain http to a host that isn't loopback.
--insecureoverrides that. - It never shells out with user text.
Tests
test/smoke.test.tsruns it against a stub server on a loopback port. It passes on a good forge and fails when the stylesheet is served astext/html.test/smoke-real.test.tsproves/boardtakes a bearer token on the real app.
Docs: docs/RECOVERY.md and the README say how to run it.
Left out: no change to the release workflow, as the issue says.
Try it: FORGE_TOKEN=<token> bun scripts/smoke.ts https://forge.open-platform.sh --version <v>
Parked by the crew: the check failed ("the new forge screen > the follow mode is a field: take-updates reaches parent.json") and the decider saw no point in another try
scripts/smoke.ts <url>checks a live forge as an iPhone Safari user and as a desktop Chrome user. It exits non-zero on the first failure and prints the URL, the user agent, the status and the content type. I changed nothing this round, and the branch is already pushed. The smoke tests (9) andtest/resilience.test.ts(12) pass here, andbun x tsc --noEmitis clean.Why the earlier check failed: the failing test, "the owner's screen with snapshots > a store with a newest snapshot and a mirror…", is in
test/resilience.test.ts. That file isn't touched by this change. It passed three times in a row here, so I'm treating the failure as a flake. I did not edit that test. I haven't seen the failure's log, so a repeat on this push would need a look at that log.What it does
bun scripts/smoke.ts <url> --version <v>first waits, up to--waitseconds, for/healthz'sX-Forge-Versionto equal<v>./,/boardand/healthzanswer 200./boardis signed in withFORGE_TOKEN, and a redirect to sign-in counts as a failure./is a 200text/cssresponse with a body./sw.jsis a 200 JavaScript response, and no navigation path in it answers withResponse.error().--insecureoverrides that.Tests
test/smoke.test.tsruns it against a stub server on a loopback port. It passes on a good forge and fails when the stylesheet is served astext/html.test/smoke-real.test.tsproves/boardtakes a bearer token on the real app.Docs:
docs/RECOVERY.mdand the README say how to run it.Left out: no change to the release workflow, as the issue says.
Try it:
FORGE_TOKEN=<token> bun scripts/smoke.ts https://forge.open-platform.sh --version <v>Closes #2282