Skip to content

Commit f7e2cba

Browse files
authored
Merge pull request #44948 from crazy-max/23.0_backport_ci-itg-cli-split
[23.0 backport] ci: enhance tests distribution
2 parents e664cc2 + 06aca27 commit f7e2cba

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/.windows.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
env:
1818
GO_VERSION: 1.19.5
19-
GOTESTLIST_VERSION: v0.2.0
19+
GOTESTLIST_VERSION: v0.3.1
2020
TESTSTAT_VERSION: v0.1.3
2121
WINDOWS_BASE_IMAGE: mcr.microsoft.com/windows/servercore
2222
WINDOWS_BASE_TAG_2019: ltsc2019
@@ -228,10 +228,11 @@ jobs:
228228
id: tests
229229
working-directory: ./integration-cli
230230
run: |
231-
# Distribute integration-cli tests for the matrix in integration-test job.
232-
# Also prepend ./... to the matrix. This is a special case to run "Test integration" step exclusively.
233-
matrix="$(gotestlist -d ${{ env.ITG_CLI_MATRIX_SIZE }} ./...)"
234-
matrix="$(echo "$matrix" | jq -c '. |= ["./..."] + .')"
231+
# This step creates a matrix for integration-cli tests. Tests suites
232+
# are distributed in integration-test job through a matrix. There is
233+
# also an override being added to the matrix like "./..." to run
234+
# "Test integration" step exclusively.
235+
matrix="$(gotestlist -d ${{ env.ITG_CLI_MATRIX_SIZE }} -o "./..." ./...)"
235236
echo "matrix=$matrix" >> $GITHUB_OUTPUT
236237
-
237238
name: Show matrix

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
env:
1818
GO_VERSION: 1.19.5
19-
GOTESTLIST_VERSION: v0.2.0
19+
GOTESTLIST_VERSION: v0.3.1
2020
TESTSTAT_VERSION: v0.1.3
2121
ITG_CLI_MATRIX_SIZE: 6
2222
DOCKER_EXPERIMENTAL: 1
@@ -401,10 +401,12 @@ jobs:
401401
id: tests
402402
working-directory: ./integration-cli
403403
run: |
404-
# Distribute integration-cli tests for the matrix in integration-test job.
405-
# Also prepend ./... to the matrix. This is a special case to run "Test integration" step exclusively.
406-
matrix="$(gotestlist -d ${{ env.ITG_CLI_MATRIX_SIZE }} ./...)"
407-
matrix="$(echo "$matrix" | jq -c '. |= ["./..."] + .')"
404+
# This step creates a matrix for integration-cli tests. Tests suites
405+
# are distributed in integration-cli job through a matrix. There is
406+
# also overrides being added to the matrix like "./..." to run
407+
# "Test integration" step exclusively and specific tests suites that
408+
# take a long time to run.
409+
matrix="$(gotestlist -d ${{ env.ITG_CLI_MATRIX_SIZE }} -o "./..." -o "DockerSwarmSuite" -o "DockerNetworkSuite|DockerExternalVolumeSuite" ./...)"
408410
echo "matrix=$matrix" >> $GITHUB_OUTPUT
409411
-
410412
name: Show matrix

0 commit comments

Comments
 (0)