M4: TLS + HTTP/2 test vhost, client dist, chromium #66
Notifications
Due Date
No due date set.
Blocks
#67 M4: client shell, sign-in and protocol client
SirStone/FFF_vtt_frozen
#77 M4: real-phone playtest gate (Note 10, 60 fps)
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#66
Reference in New Issue
Block a user
Part of #63
Goal
Root devbox gains chromium; the test nginx serves
distat/(SPA fallback, hashed cache, index no-cache) over TLS with HTTP/2, mirroring DESIGN 11.1.Acceptance criteria
/_tiles/404devbox run testgreen on a clean checkout, no test weakened or skipped, and the behaviour above proven at the seam(s) listed under "Proven at".User stories covered
Proven at
test nginx, devbox, e2e harness
Notes
Done on
main(1dff520, rebased on0448002).What landed
tools/nginx.mjs: TLS-only vhost withhttp2 on(nginx >= 1.25.1 form), a self-signed certificate generated per run by the newtools/tlsdev.mjs(SANlocalhost/127.0.0.1, added to the process's default CA list, so verification stays on), and the client build at/: SPA fallback toindex.html,Cache-Control: no-cachefor index/routes,/assets/withpublic, max-age=31536000, immutableand=404for a missing hash, so a stale index fails loudly instead of booting the app./_tiles/staysinternal(direct 404).publicOriginto the https vhost (httpsBaseUrl), so they run through the same listener the browser uses.tools/vhost.test.mjs(built-ins,node:http2, indevbox run test): cert self-signed + SANs, ALPNh2, index no-cache, immutable asset, SPA fallback, missing asset 404, direct/_tiles/404, and an HTTP/1.1 client still served over TLS.e2e/h2.test.mjs+e2e/run.sh(devbox run e2e): devbox chromium via pinnedplaywright-core, loads the dist and assertsnextHopProtocol === 'h2'for the document and subresources over TLS. npm deps stay outsidetools/(TESTING 10.4);distis the throwawaytools/distfixture.mjsbuild until T4 ships Vite.chromium+openssl(lock adds only those two entries). Harness server builds use a worktree-localrun/nimcacheso parallel worktrees stop corrupting each other's object files (hit for real this run).Acceptance
tools/vhost.test.mjs,node:http2)/_tiles/404 (over TLS, still pinned intools/tiles.test.mjstoo)devbox run e2e)devbox run testgreen on the rebased tree — 154/154 tests, evidence check 16/16 groups;devbox run e2e1/1. No test weakened or skipped; scratchresults/*reverted.Docs: TESTING §10.3 (vhost + e2e harness), §10.4 (devbox chromium/openssl, playwright-core outside
tools/), §11.1 (TLS/h2 listener, per-run cert,distDir).