Skip to content

Commit f0f42f6

Browse files
authored
Use shards when running integration tests (#18246)
This PR splits CI integration tests in 3 shards to reduce the time it takes to run them to hopefully prevent timeouts on a single step.
1 parent ada85b1 commit f0f42f6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/integration-tests.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,18 @@ jobs:
9999
CARGO_PROFILE_RELEASE_LTO: 'off'
100100
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: 'lld-link'
101101

102-
- name: Test ${{ matrix.integration }}
103-
run: pnpm run test:integrations ./integrations/${{ matrix.integration }}
102+
- name: Test ${{ matrix.integration }} 1/3
103+
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 1/3
104+
env:
105+
GITHUB_WORKSPACE: ${{ github.workspace }}
106+
107+
- name: Test ${{ matrix.integration }} 2/3
108+
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 2/3
109+
env:
110+
GITHUB_WORKSPACE: ${{ github.workspace }}
111+
112+
- name: Test ${{ matrix.integration }} 3/3
113+
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 3/3
104114
env:
105115
GITHUB_WORKSPACE: ${{ github.workspace }}
106116

0 commit comments

Comments
 (0)