- Fix getTemplateDir to evict the cached promise on rejection so transient
failures don't permanently poison the cache for subsequent calls.
- Extract pickFreePort, waitForServerReady, stopChildProcess, cleanupPerfRunDir,
verifyBuiltArtifacts, and parsePerfSeededState into test/perf/support/perfProcess.ts,
replacing duplicated copies in scripts/open-perf-app.ts and
apps/web/test/perf/appHarness.ts.