From e8c02609819121a495cfa639141d9e150cbd8685 Mon Sep 17 00:00:00 2001 From: Francesco Gringl-Novy Date: Mon, 3 Feb 2025 17:32:16 +0100 Subject: [PATCH] test: Only run flaky test detection for chromium (#15264) This streamlines this a bit and should be good enough here. --- .github/workflows/flaky-test-detector.yml | 2 ++ .../browser-integration-tests/scripts/detectFlakyTests.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flaky-test-detector.yml b/.github/workflows/flaky-test-detector.yml index a232e1e735b1..c24f306c98ea 100644 --- a/.github/workflows/flaky-test-detector.yml +++ b/.github/workflows/flaky-test-detector.yml @@ -51,6 +51,8 @@ jobs: - name: Install Playwright uses: ./.github/actions/install-playwright + with: + browsers: 'chromium' - name: Determine changed tests uses: dorny/paths-filter@v3.0.1 diff --git a/dev-packages/browser-integration-tests/scripts/detectFlakyTests.ts b/dev-packages/browser-integration-tests/scripts/detectFlakyTests.ts index 6fa8e8ddd416..1105346562c9 100644 --- a/dev-packages/browser-integration-tests/scripts/detectFlakyTests.ts +++ b/dev-packages/browser-integration-tests/scripts/detectFlakyTests.ts @@ -46,7 +46,9 @@ ${changedPaths.join('\n')} try { await new Promise((resolve, reject) => { const cp = childProcess.spawn( - `npx playwright test ${testPaths.length ? testPaths.join(' ') : './suites'} --repeat-each ${repeatEachCount}`, + `npx playwright test ${ + testPaths.length ? testPaths.join(' ') : './suites' + } --repeat-each ${repeatEachCount} --project=chromium`, { shell: true, cwd, stdio: 'inherit' }, );