diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 1b0d82d75..b5563a52d 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -220,8 +220,12 @@ jobs: - name: Run ubuntu/chrome snapshots if: needs.conditions.outputs.should-run == 'true' - run: | - yarn test:snapshots + uses: nick-fields/retry@v3.0.2 + with: + shell: bash + command: yarn test:snapshots + timeout_minutes: 30 + max_attempts: 3 env: CI: true NODE_ENV: development @@ -289,8 +293,8 @@ jobs: matrix: # TODO: enable self-hosted-windows-8-cores once available os: [namespace-profile-ubuntu-8-cores, namespace-profile-macos-8-cores, windows-16-cores] - shardIndex: [1, 2, 3, 4] - shardTotal: [4] + shardIndex: [1, 2, 3, 4, 5, 6, 7, 8] + shardTotal: [8] # TODO: add ref here for main and latest release tag runs-on: ${{ matrix.os }} steps: @@ -358,7 +362,7 @@ jobs: shell: bash command: .github/ci-cd-scripts/playwright-electron.sh ${{matrix.shardIndex}} ${{matrix.shardTotal}} ${{matrix.os}} timeout_minutes: 30 - max_attempts: 25 + max_attempts: 15 env: CI: true FAIL_ON_CONSOLE_ERRORS: true diff --git a/playwright.electron.config.ts b/playwright.electron.config.ts index 5bebd855d..8fcfb2570 100644 --- a/playwright.electron.config.ts +++ b/playwright.electron.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ /* Do not retry */ retries: 0, /* Different amount of parallelism on CI and local. */ - workers: 8, + workers: 1, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: [ ['dot'],