mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user