fix(site/e2e): increase webServer timeout to 120s (#22731)

The Playwright e2e `webServer` starts the Coder server via
`go run -tags embed`, which must compile before serving. The default 60s
timeout leaves no margin when the CI runner is slow.

Failed run:
https://github.com/coder/coder/actions/runs/22782592241/job/66091950715

Successful run:
https://github.com/coder/coder/actions/runs/22782107623/job/66090828826

The server started and printed its banner, but with only ~4s left on the
clock the health check (`/api/v2/deployment/config`) could not complete
before the timeout fired. The same ~2x slowdown shows in the
`make site/e2e/bin/coder` step (45s vs 67s), confirming this is runner
performance variability.

Increase timeout to 120s.

Refs #22727
This commit is contained in:
Mathias Fredriksson
2026-03-09 19:06:45 +00:00
committed by GitHub
parent 6e9e39a4e0
commit f46692531f
+3
View File
@@ -66,6 +66,9 @@ export default defineConfig({
},
webServer: {
url: `http://localhost:${coderPort}/api/v2/deployment/config`,
// The default timeout is 60s, but `go run` compilation with the
// embed tag can take longer on CI.
timeout: 120_000,
command: [
`go run -tags embed ${path.join(__dirname, "../../enterprise/cmd/coder")}`,
"server",