Only one playwright worker and less retries. Plus auto-retries on snapshots (#5842)
* 8 shards, 1 workers, 10 retries
* Trigger CI
* Add retries to snapshots
* Clean up for PR, retry to 15
* Trigger CI
* Back to 4 shards for simplicity
* Revert "Back to 4 shards for simplicity"
This reverts commit 413de2fc61.
			
			
This commit is contained in:
		
							
								
								
									
										14
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							@ -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
 | 
			
		||||
 | 
			
		||||
@ -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'],
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user