Skip to content

Commit

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

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

integration-macos:
Expand All @@ -63,5 +63,5 @@ jobs:
uses: ./.github/workflows/shared-test-integration.yml
with:
os: "macos-latest"
node_version: '[18, "20.5.1"]'
node_version: "[18, 20]"
browser: '["webkit"]'
4 changes: 2 additions & 2 deletions .github/workflows/test-pr-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
uses: ./.github/workflows/shared-test-unit.yml
with:
os: "ubuntu-latest"
node_version: '["20.5.1"]'
node_version: "[20]"

integration-chromium:
name: "👀 Integration Test"
if: github.repository == 'remix-run/remix'
uses: ./.github/workflows/shared-test-integration.yml
with:
os: "ubuntu-latest"
node_version: '["20.5.1"]'
node_version: "[20]"
browser: '["chromium"]'
8 changes: 4 additions & 4 deletions .github/workflows/test-pr-windows-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
uses: ./.github/workflows/shared-test-unit.yml
with:
os: "windows-latest"
node_version: '["20.5.1"]'
node_version: "[20]"

integration-firefox:
name: "👀 Integration Test"
if: github.repository == 'remix-run/remix'
uses: ./.github/workflows/shared-test-integration.yml
with:
os: "ubuntu-latest"
node_version: '["20.5.1"]'
node_version: "[20]"
browser: '["firefox"]'

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

integration-webkit:
Expand All @@ -46,5 +46,5 @@ jobs:
uses: ./.github/workflows/shared-test-integration.yml
with:
os: "macos-latest"
node_version: '["20.5.1"]'
node_version: "[20]"
browser: '["webkit"]'
5 changes: 5 additions & 0 deletions integration/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { devices } from "@playwright/test";
const config: PlaywrightTestConfig = {
testDir: ".",
testMatch: ["**/*-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 be68f52

Please sign in to comment.