Skip to content

Commit

Permalink
Fix Playwright hanging in Node 20.5.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Apr 15, 2024
1 parent cf4ee0c commit 9e89ef2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: ./.github/workflows/shared-integration.yml
with:
os: "ubuntu-latest"
node_version: '[18, "20.5.1"]'
node_version: "[18, 20]"
browser: '["chromium", "firefox"]'

integration-windows:
Expand All @@ -43,7 +43,7 @@ jobs:
uses: ./.github/workflows/shared-integration.yml
with:
os: "windows-latest"
node_version: '[18, "20.5.1"]'
node_version: "[18, 20]"
browser: '["msedge"]'

integration-macos:
Expand All @@ -52,5 +52,5 @@ jobs:
uses: ./.github/workflows/shared-integration.yml
with:
os: "macos-latest"
node_version: '[18, "20.5.1"]'
node_version: "[18, 20]"
browser: '["webkit"]'
2 changes: 1 addition & 1 deletion .github/workflows/integration-pr-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
uses: ./.github/workflows/shared-integration.yml
with:
os: "ubuntu-latest"
node_version: '["20.5.1"]'
node_version: "[20]"
browser: '["chromium"]'
6 changes: 3 additions & 3 deletions .github/workflows/integration-pr-windows-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: ./.github/workflows/shared-integration.yml
with:
os: "ubuntu-latest"
node_version: '["20.5.1"]'
node_version: "[20]"
browser: '["firefox"]'

integration-msedge:
Expand All @@ -28,7 +28,7 @@ jobs:
uses: ./.github/workflows/shared-integration.yml
with:
os: "windows-latest"
node_version: '["20.5.1"]'
node_version: "[20]"
browser: '["msedge"]'

integration-webkit:
Expand All @@ -37,5 +37,5 @@ jobs:
uses: ./.github/workflows/shared-integration.yml
with:
os: "macos-latest"
node_version: '["20.5.1"]'
node_version: "[20]"
browser: '["webkit"]'
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.5.1
20
5 changes: 5 additions & 0 deletions integration/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const config: PlaywrightTestConfig = {
testMatch: ["**/*-test.ts"],
// TODO: Temporary! Remove from this list as we get each suite passing
testIgnore: ["**/vite-cloudflare-test.ts"],
// Playwright treats our workspace packages as internal by default. If we
// don't mark them as external, tests hang in Node 20.5.2+
build: {
external: ["**/packages/**/*"],
},
/* Maximum time one test can run for. */
timeout: process.platform === "win32" ? 60_000 : 30_000,
fullyParallel: true,
Expand Down

0 comments on commit 9e89ef2

Please sign in to comment.