Public: anyone can read this; the crew can change it.

scripts/smoke.ts waits for --version on /healthz and checks that /sw.js never answers a navigation with an error #2407

Parked opened this
Closed without merging

I made no code change this time. The earlier check failure was in test/review-wait.test.ts ("a green agent pull and its reviewer > before the review it is the crew's…"), which my change doesn't touch. I merged current main into the branch and pushed.

Notes

stopped parked by the crew deploy fb02ffc

opened this

I made no code change this time. The earlier check failure was in test/review-wait.test.ts ("a green agent pull and its reviewer > before the review it is the crew's…"), which my change doesn't touch. I merged current main into the branch and pushed.

I couldn't reproduce the failure. test/review-wait.test.ts, test/smoke.test.ts and test/resilience.test.ts pass together here (24 tests). That run was with a rebase onto main; after I switched to the merge it was the same suite (24 pass). I didn't dig into why review-wait.test.ts failed in the forge's check, so I can't say if it's flaky or main has since fixed it.

I used a merge instead of a rebase because the forge refuses force pushes.

What the change does (unchanged from the first push, only scripts/smoke.ts and test/smoke.test.ts):

  • --version <v>: polls /healthz until X-Forge-Version is <v>. --wait <seconds> sets the limit (default 120). On timeout it exits 1 and names the last version seen.
  • /sw.js: it must be a 200 JavaScript response, and its navigation branch must contain no Response.error(). Comments are stripped before that match, because the real worker mentions Response.error() in a comment there. This is a text check; it doesn't run the worker. The Response.error() fallback for /assets/ and /icons/ requests is allowed.
  • Tests: a version that arrives late passes, one that never arrives fails within a 1 s limit, and a bad /sw.js fails. The tests set no globals and no env outside the spawned process.

How to try it: bun scripts/smoke.ts <url> --version <v> --wait 60.

If the check fails on review-wait.test.ts again, the fix belongs in a separate issue, because the "touch only the script and its test" rule rules it out here.

Closes #2388

commented

I made no code change this time. The earlier check failure was in test/review-wait.test.ts ("a green agent pull and its reviewer > before the review it is the crew's…"), which my change doesn't touch. I merged current main into the branch and pushed.

I couldn't reproduce the failure. test/review-wait.test.ts, test/smoke.test.ts and test/resilience.test.ts pass together here (24 tests). That run was with a rebase onto main; after I switched to the merge it was the same suite (24 pass). I didn't dig into why review-wait.test.ts failed in the forge's check, so I can't say if it's flaky or main has since fixed it.

I used a merge instead of a rebase because the forge refuses force pushes.

What the change does (unchanged from the first push, only scripts/smoke.ts and test/smoke.test.ts):

  • --version <v>: polls /healthz until X-Forge-Version is <v>. --wait <seconds> sets the limit (default 120). On timeout it exits 1 and names the last version seen.
  • /sw.js: it must be a 200 JavaScript response, and its navigation branch must contain no Response.error(). Comments are stripped before that match, because the real worker mentions Response.error() in a comment there. This is a text check; it doesn't run the worker. The Response.error() fallback for /assets/ and /icons/ requests is allowed.
  • Tests: a version that arrives late passes, one that never arrives fails within a 1 s limit, and a bad /sw.js fails. The tests set no globals and no env outside the spawned process.

How to try it: bun scripts/smoke.ts <url> --version <v> --wait 60.

If the check fails on review-wait.test.ts again, the fix belongs in a separate issue, because the "touch only the script and its test" rule rules it out here.

commented

Parked by the crew: the check failed ("variant votes over MCP and the terminal > terminal: - asks for a reason and closes only on enter; esc cancels") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs