commit 0fc31f513ea4c12dadacb1fd7167798dda9da372
parent ba032bfcbe5034d3856af487fc9b4ad09b52772e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 10 Oct 2026 16:28:02 -0400
plans: e2e speed S4/S5 — the runs, the three two-worker finds, commits and gates
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 53 insertions(+), 0 deletions(-)
diff --git a/plans/e2e-speed.md b/plans/e2e-speed.md
@@ -270,6 +270,17 @@ suite's export dev server and the export suite's own could not run at once: `exp
killed while it waited (`timeout`, Ctrl-C) left its holder file naming a dead pid: the signal handlers are now installed
before the wait and exit through `process.exit`.
+A build waiting for the build slot keeps its place in line (the suites behind it wait too) — ruled: holding the build
+slot while waiting for memory could wait in a cycle with a nested rebuild, and a minute of head-of-line is the cheaper
+cost. Verified against the real locks while release 23 gated: a new-style run waits behind an old-style holder
+("held by r23-integration … playwright test") and is admitted once it ends; a killed waiter leaves no holder file.
+
+**Runs** (single specs; the two-suite and whole runs are the orchestrator's):
+- `pnpm e2e cookies-mode.spec.ts no-subs-fallback.spec.ts`: 10 passed, 35.9 s. The prebuild built the editor (no stamp
+ in the worktree yet) as a 5120 MB build through the real slot, 207 s, after 2m34s behind another lane's umtool run;
+ the suite then waited 3m40s behind an exclusive old-style build, and ran.
+- `pnpm --filter umtool run e2e dashboard.spec.ts`: prebuild 25 s (`.next-e2e-start`), 7 passed, 14.2 s.
+
### S5a, as shipped (release 24, `r24/e2e-speed`)
Every spec's test-data paths come from `testPaths()` (`editor/e2e/testPaths.ts`, re-exported by `helpers.ts`):
@@ -305,5 +316,47 @@ storage-locations, whisper) — run in a `serial` project that is the parallel p
teardown even when a parallel test failed, where a dependent project would be skipped — verified), on one worker. With
one worker there is one project, as before. 590 tests parallel, 107 serial at `E2E_WORKERS=3` (`--list`).
+Three things the first real two-worker runs found, all fixed:
+- **Bad ports.** `next start` refuses 5060 ("reserved for sip"), where this worktree's slot 1 sat (block 50xx). Slot
+ ports walk up from `x060` past the Fetch standard's bad ports (5060, 5061, 6000, 6665–6669, …).
+- **A focused run ran every @serial file.** Playwright applies spec and grep filters to top-level projects only and
+ runs a `teardown` project whole. The runner decides once from its command line (`isFocusedRun`) and pins it for the
+ workers (`E2E_SERIAL_LAST`): a whole run keeps the serial project last; a focused one keeps only its one-worker limit.
+- **A killed run left its slot servers.** A SIGKILLed runner never reaches globalTeardown, and a slot's servers are
+ process groups of their own. Each slot now has a detached watchdog that polls the runner and takes the groups down
+ (TERM, then KILL) once it is gone. (Slot 0's webServer entries leak as they always did; the port preflight catches
+ them.)
+
+The editor suite's heavy-slot estimate is per worker (`--scale-by E2E_WORKERS`: 1500 × workers, `auto` as 3).
+
+**Runs.** `E2E_WORKERS=2 pnpm e2e publish-lane.spec.ts channel-work.spec.ts` (a serial file and a parallel one, both
+projects at once on a focused run): `[e2e setup] 2 workers: slots 1–1's servers up in 5s`, 13 passed, 23.6 s, nothing
+left running after. An earlier attempt, killed by my 590 s `timeout` while it ran every serial file (the focused-run
+bug), had `publish-lane.spec:78` red ("resume publishing" not seen in 5 s after the pause click) — it passed in the
+run above; recorded, not yet called a flake.
+
**Found on the way.** `playwright test --list` was recorded by release 23 F5's timing reporter as a run (a report whose
tests have no results); it now records nothing.
+
+| Commit | What |
+|---|---|
+| `5e44ce89` | S4: per-suite queues, the memory-weighted heavy slot, `--prebuild`, `pnpm e2e:all`, the docs |
+| `1c96695b` | S5a: every spec's paths through `testPaths()`; `dev:test`/`start:test` read `E2E_DATA_ROOT` |
+| `407be185` | the timing reporter skips `--list` |
+| `75cdc23f` | S5b: a server set per worker slot, `E2E_WORKERS`, `e2e/serial.ts` |
+| `50b7b26b` | a waiter stopped by a signal cleans up its holder file |
+| `d3c5d255` | the editor's estimate × `E2E_WORKERS` |
+| `db84b181` | slot ports skip the bad ports |
+| `b7718149` | a focused run keeps the serial project top-level |
+| `15a9df5d` | `E2E_SERIAL_LAST` declared; `TEST_PARALLEL_INDEX` is Playwright's |
+| `d7587aad` | the slot watchdog |
+
+**Gates.** tsc clean at every code commit (46–108 s). `test:scripts` 788 passed + 3 skipped (791; was 770 + 2 at
+release 23 F5): `queue-lock.test` 36 (+15: resolveJob, the admission rule, waitForAdmission, tickets, side by side,
+builds never overlap, a lone job, nested builds, named suites, the package scripts' names, `--prebuild`, a signalled
+waiter, `--scale-by`), `e2e-all.test` 4 (new), `e2e-timings.test` 11 (the `--list` case). Editor unit 252/252
+(+6, `e2e/servers.unit.ts`). common 3702/3702; `envVars.test` 9/9 (caught `TEST_PARALLEL_INDEX` and
+`E2E_SERIAL_LAST`); ENVIRONMENT.md regenerated, `docs env --check` clean. `playwright test --list`: 697 tests in 130
+files at one worker; 590 parallel + 107 serial at `E2E_WORKERS=3`. Not run here, by the brief: the two-suite run, the
+whole `pnpm e2e:all`, and the full editor suite at 1, 2 and 3 workers — the orchestrator's (commands in the lane
+report).