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
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.
stopped parked by the crew deploy fb02ffc
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/healthzuntilX-Forge-Versionis<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 noResponse.error(). Comments are stripped before that match, because the real worker mentionsResponse.error()in a comment there. This is a text check; it doesn't run the worker. TheResponse.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.jsfails. 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.
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
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 currentmaininto the branch and pushed.I couldn't reproduce the failure.
test/review-wait.test.ts,test/smoke.test.tsandtest/resilience.test.tspass together here (24 tests). That run was with a rebase ontomain; after I switched to the merge it was the same suite (24 pass). I didn't dig into whyreview-wait.test.tsfailed in the forge's check, so I can't say if it's flaky ormainhas 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.tsandtest/smoke.test.ts):--version <v>: polls/healthzuntilX-Forge-Versionis<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 noResponse.error(). Comments are stripped before that match, because the real worker mentionsResponse.error()in a comment there. This is a text check; it doesn't run the worker. TheResponse.error()fallback for/assets/and/icons/requests is allowed./sw.jsfails. 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.tsagain, the fix belongs in a separate issue, because the "touch only the script and its test" rule rules it out here.Closes #2388