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

test/web-apps.test.ts: the run page case reads the run's state and the page in an order that cannot disagree #1021

Closed opened this
Closed without merging

The run page case in test/web-apps.test.ts no longer races the deploy. This is the only file changed, and it was already on the branch from the earlier attempt. The capacity failure that parked #989 is in a different test file than this one.

Notes

stopped closed without shipping deploy c23a683

opened this

The run page case in test/web-apps.test.ts no longer races the deploy. This is the only file changed, and it was already on the branch from the earlier attempt.

The capacity failure that parked #989 is in a different test file than this one. I didn't touch it.

What changed

  • The case reads whether the run is going before and after rendering /alice/hello/runs/<id>. If the two reads disagree, the deploy settled mid-render, so it renders again. A settled run never goes back to going, so this loop ends.
  • data-stream= and the refresh are then asserted against the state both reads agreed on. It still proves both forms: stream and refresh while the run is going, neither once it is done.
  • The refresh check now matches the <meta http-equiv="refresh" tag itself. The page's inline script also contains the string http-equiv="refresh", which would pass a plain substring check even for a settled run.

Loop output

  • bun test test/web-apps.test.ts test/studio.test.ts, run 20 times in a row: 194 pass 0 fail on all 20.
  • I ran this outside the sandbox, because the tests listen on a unix socket and the sandbox refuses that.
  • bun x tsc --noEmit is not green in this checkout. It stops with TS2688: Cannot find type definition file for 'bun', because node_modules isn't installed here. I couldn't run it clean, so the forge's check will be its first real run.

Left out

  • I did not change src/, the other test files, or the capacity test.

Closes #967

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs