Skip to content

Commit

Permalink
chore: increase test sharding
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattjoh committed Dec 12, 2024
1 parent 546f022 commit 1acd9e8
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ jobs:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') && '18.3.1' }}
group: [1/5, 2/5, 3/5, 4/5, 5/5]
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
# Empty value uses default
react: ['']
uses: ./.github/workflows/build_reusable.yml
Expand All @@ -260,7 +260,7 @@ jobs:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') && '18.3.1' }}
group: [1/5, 2/5, 3/5, 4/5, 5/5]
group: [1/7, 2/7, 3/7, 4/7, 5/7, 6/7, 7/7]
# Empty value uses default
# TODO: Run with React 18.
# Integration tests use the installed React version in next/package.json.include:
Expand All @@ -282,7 +282,7 @@ jobs:
strategy:
fail-fast: false
matrix:
group: [1/5, 2/5, 3/5, 4/5, 5/5]
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
uses: ./.github/workflows/build_reusable.yml
with:
nodeVersion: 18.18.2
Expand Down Expand Up @@ -343,7 +343,7 @@ jobs:
strategy:
fail-fast: false
matrix:
group: [1/4, 2/4, 3/4, 4/4]
group: [1/5, 2/5, 3/5, 4/5, 5/5]

uses: ./.github/workflows/build_reusable.yml
with:
Expand All @@ -360,7 +360,7 @@ jobs:
strategy:
fail-fast: false
matrix:
group: [1/4, 2/4, 3/4, 4/4]
group: [1/5, 2/5, 3/5, 4/5, 5/5]

uses: ./.github/workflows/build_reusable.yml
with:
Expand All @@ -378,7 +378,7 @@ jobs:
strategy:
fail-fast: false
matrix:
group: [1/4, 2/4, 3/4, 4/4]
group: [1/5, 2/5, 3/5, 4/5, 5/5]

uses: ./.github/workflows/build_reusable.yml
with:
Expand All @@ -398,7 +398,7 @@ jobs:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') && '18.3.1' }}
group: [1/4, 2/4, 3/4, 4/4]
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
# Empty value uses default
react: ['', '18.3.1']
uses: ./.github/workflows/build_reusable.yml
Expand All @@ -418,7 +418,7 @@ jobs:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') && '18.3.1' }}
group: [1/5, 2/5, 3/5, 4/5, 5/5]
group: [1/7, 2/7, 3/7, 4/7, 5/7, 6/7, 7/7]
# Empty value uses default
react: ['', '18.3.1']
uses: ./.github/workflows/build_reusable.yml
Expand All @@ -436,18 +436,19 @@ jobs:
fail-fast: false
matrix:
group:
- 1/12
- 2/12
- 3/12
- 4/12
- 5/12
- 6/12
- 7/12
- 8/12
- 9/12
- 10/12
- 11/12
- 12/12
- 1/13
- 2/13
- 3/13
- 4/13
- 5/13
- 6/13
- 7/13
- 8/13
- 9/13
- 10/13
- 11/13
- 12/13
- 13/13
# Empty value uses default
# TODO: Run with React 18.
# Integration tests use the installed React version in next/package.json.include:
Expand Down Expand Up @@ -498,7 +499,7 @@ jobs:
strategy:
fail-fast: false
matrix:
group: [1/4, 2/4, 3/4, 4/4]
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: __NEXT_EXPERIMENTAL_PPR=true NEXT_EXTERNAL_TESTS_FILTERS="test/ppr-tests-manifest.json" NEXT_TEST_MODE=dev node run-tests.js --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY} --type development
Expand All @@ -513,7 +514,7 @@ jobs:
strategy:
fail-fast: false
matrix:
group: [1/4, 2/4, 3/4, 4/4]
group: [1/7, 2/7, 3/7, 4/7, 5/7, 6/7, 7/7]
uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: __NEXT_EXPERIMENTAL_PPR=true NEXT_EXTERNAL_TESTS_FILTERS="test/ppr-tests-manifest.json" NEXT_TEST_MODE=start node run-tests.js --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY} --type production
Expand Down

0 comments on commit 1acd9e8

Please sign in to comment.