From f0f42f62c042fbcf8209a1f8f0b0a267f225a6ce Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 6 Jun 2025 21:43:17 +0200 Subject: [PATCH] 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. --- .github/workflows/integration-tests.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 824056b09..0148dd983 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -99,8 +99,18 @@ jobs: CARGO_PROFILE_RELEASE_LTO: 'off' CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: 'lld-link' - - name: Test ${{ matrix.integration }} - run: pnpm run test:integrations ./integrations/${{ matrix.integration }} + - name: Test ${{ matrix.integration }} 1/3 + run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 1/3 + env: + GITHUB_WORKSPACE: ${{ github.workspace }} + + - name: Test ${{ matrix.integration }} 2/3 + run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 2/3 + env: + GITHUB_WORKSPACE: ${{ github.workspace }} + + - name: Test ${{ matrix.integration }} 3/3 + run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 3/3 env: GITHUB_WORKSPACE: ${{ github.workspace }}