Skip to content

Commit b2c123e

Browse files
authored
Merge pull request #4787 from Tyriar/pw_tweak
Tweak playwright workers
2 parents be82ffc + efcca3f commit b2c123e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ jobs:
259259
ls -R
260260
- name: Build demo
261261
run: yarn build-demo
262-
- name: Integration tests (core)
263-
run: yarn test-playwright-${{ matrix.browser }} --forbid-only --workers 4 --suite=core
262+
- name: Integration tests (core) # Tests use 50% workers to reduce flakiness
263+
run: yarn test-playwright-${{ matrix.browser }} --workers=50% --forbid-only --suite=core
264264
- name: Integration tests (xterm-addon-canvas)
265-
run: yarn test-playwright-${{ matrix.browser }} --forbid-only --workers 4 --suite=xterm-addon-canvas
265+
run: yarn test-playwright-${{ matrix.browser }} --workers=50% --forbid-only --suite=xterm-addon-canvas
266266
- name: Integration tests (xterm-addon-webgl)
267-
run: yarn test-playwright-${{ matrix.browser }} --forbid-only --workers 4 --suite=xterm-addon-webgl
267+
run: yarn test-playwright-${{ matrix.browser }} --workers=50% --forbid-only --suite=xterm-addon-webgl
268268

269269
test-api:
270270
needs: build

bin/test_playwright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function npmBinScript(script) {
3535
async function run() {
3636
for (const config of configs) {
3737
const command = npmBinScript('playwright');
38-
const args = ['test', '-c', config.path, ...argv.slice(2)];
38+
const args = ['test', '-c', config.path, ...argv];
3939
console.log(`Running suite \x1b[1;34m${config.name}...\x1b[0m`);
4040
console.log(`\n\x1b[32m${command}\x1b[0m`, args);
4141
const run = cp.spawnSync(command, args, {

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"test-api-chromium": "node ./bin/test_api.js --browser=chromium --timeout=20000",
3939
"test-api-firefox": "node ./bin/test_api.js --browser=firefox --timeout=20000",
4040
"test-api-webkit": "node ./bin/test_api.js --browser=webkit --timeout=20000",
41-
"test-playwright": "node ./bin/test_playwright.js --workers 4",
42-
"test-playwright-chromium": "node ./bin/test_playwright.js --workers 4 \"--project=Chrome Stable\"",
43-
"test-playwright-firefox": "node ./bin/test_playwright.js --workers 4 \"--project=Firefox Stable\"",
44-
"test-playwright-webkit": "node ./bin/test_playwright.js --workers 4 \"--project=WebKit\"",
45-
"test-playwright-debug": "node ./bin/test_playwright.js --headed --workers 1 --timeout 30000",
41+
"test-playwright": "node ./bin/test_playwright.js --workers=75%",
42+
"test-playwright-chromium": "node ./bin/test_playwright.js --workers=75% \"--project=Chrome Stable\"",
43+
"test-playwright-firefox": "node ./bin/test_playwright.js --workers=75% \"--project=Firefox Stable\"",
44+
"test-playwright-webkit": "node ./bin/test_playwright.js --workers=75% \"--project=WebKit\"",
45+
"test-playwright-debug": "node ./bin/test_playwright.js --workers=1 --headed --timeout=30000",
4646
"test-unit": "node ./bin/test.js",
4747
"test-unit-coverage": "node ./bin/test.js --coverage",
4848
"test-unit-dev": "cross-env NODE_PATH='./out' mocha",

0 commit comments

Comments
 (0)