fix(web): provision the chromium build a run launches, and collect nothing in the browsers cache

Merged
FE
2mo ago
+253-30

Fixes #783.

A first run provisioned the wrong thing. The check asked whether the full Chromium build was on disk, and a headless run launches Chromium's headless shell, so the run downloaded a build it never launched. The other way round, a machine holding only the full build — install --no-shell — read as installed and then failed to launch the shell it never got. The check now answers for the build the run will launch, the run mode reaches the install, and the install keeps PLAYWRIGHT_SKIP_BROWSER_GC=1 so it adds what the run needs without collecting the revisions other tools share that cache with.

EnginePrepareInfo.headed is now required, as EngineInitInfo.headed already was, so an engine provisions for the browser that run launches.

Verified locally: pnpm check green, pnpm -r run typecheck 0 errors, 291 unit web, 2518 e2e, 231 mobile.

The test (22) failure was caused by the video-segment frame race fixed in #804, now merged into main. This branch has been rebased onto that fix; its own checks are running on the rebased head.