Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: run the Windows tests on the 64-core runner with 16 workers (#43565)

Pavel Feldman6e2c003f16e0
diff --git a/.github/workflows/tests_bidi.yml b/.github/workflows/tests_bidi.yml
index b3d2f66aa0..513f64712e 100644
--- a/.github/workflows/tests_bidi.yml
+++ b/.github/workflows/tests_bidi.yml
@@ -24,7 +24,7 @@ env:
jobs:
test_bidi:
name: BiDi
- runs-on: ubuntu-24.04
+ runs-on: playwright-x64-ubuntu24-64-core
permissions:
contents: read # This is required for actions/checkout to succeed
strategy:
@@ -57,7 +57,7 @@ jobs:
sudo apt-get install -y libavcodec60
echo "BIDI_FFPATH=$(npx -y @puppeteer/browsers install firefox@nightly | tail -n1 | sed 's/^[^ ]* *//')" >> "$GITHUB_ENV"
- name: Run tests
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run biditest -- --retries=${{ matrix.isPullRequest && 2 || 0 }} --project=${{ matrix.channel }}*
+ run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run biditest -- --retries=${{ matrix.isPullRequest && 2 || 0 }} --project=${{ matrix.channel }}* --workers 16
env:
PWTEST_USE_BIDI_EXPECTATIONS: ${{ matrix.isPullRequest && '1' || '' }}
- name: Upload csv report to GitHub
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index f18b0cf223..ed7bd75a67 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -122,14 +122,14 @@ jobs:
fail-fast: false
matrix:
package: [html-reporter, web]
- runs-on: ubuntu-latest
+ runs-on: playwright-x64-ubuntu24-64-core
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/run-test
with:
node-version: 22
browsers-to-install: chromium
- command: npm run test-${{ matrix.package }}
+ command: npm run test-${{ matrix.package }} -- --workers 16
bot-name: "web-components-${{ matrix.package }}"
test_vscode_extension:
diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml
index 09fd5b8035..5c82e9ad78 100644
--- a/.github/workflows/tests_secondary.yml
+++ b/.github/workflows/tests_secondary.yml
@@ -39,20 +39,21 @@ jobs:
bot-name: "${{ matrix.browser }}-${{ matrix.os }}"
test_win:
- name: "Windows"
+ name: windows-large - ${{ matrix.browser }}
if: ${{ github.event_name == 'push' || github.event.label.name == 'CQ1' }}
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
- runs-on: windows-latest
+ os: [playwright-x64-server2025-64-core]
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/run-test
with:
browsers-to-install: ${{ matrix.browser }} chromium
- command: npm run test -- --project=${{ matrix.browser }}-* ${{ matrix.browser == 'firefox' && '--workers 1' || '' }}
- bot-name: "${{ matrix.browser }}-windows-latest"
+ command: npm run test -- --project=${{ matrix.browser }}-* --workers 16
+ bot-name: "${{ matrix.browser }}-${{ matrix.os }}"
test-package-installations-other-node-versions:
name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})"
@@ -175,19 +176,19 @@ jobs:
- channel: chrome
runs-on: macos-latest
- channel: chrome
- runs-on: windows-latest
+ runs-on: playwright-x64-server2025-64-core
- channel: chrome-beta
runs-on: ubuntu-22.04
- channel: msedge
- runs-on: windows-latest
+ runs-on: playwright-x64-server2025-64-core
- channel: msedge-dev
- runs-on: windows-latest
+ runs-on: playwright-x64-server2025-64-core
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/run-test
with:
browsers-to-install: ${{ matrix.channel }}
- command: npm run ctest
+ command: npm run ctest -- ${{ startsWith(matrix.runs-on, 'playwright-') && '--workers 16' || '' }}
bot-name: ${{ matrix.channel }}-${{ matrix.runs-on }}
env:
PWTEST_CHANNEL: ${{ matrix.channel }}