ci: run docker tests in parallel
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
3
.github/CONTRIBUTING.md
vendored
3
.github/CONTRIBUTING.md
vendored
@@ -157,9 +157,6 @@ TESTFLAGS="--run /TestBuild.*/worker=remote/ -v" make test-integration
|
|||||||
>
|
>
|
||||||
> Set `TEST_DOCKERD=1` for the test framework to enable the docker workers,
|
> Set `TEST_DOCKERD=1` for the test framework to enable the docker workers,
|
||||||
> specifically the `docker` and `docker-container` drivers.
|
> specifically the `docker` and `docker-container` drivers.
|
||||||
>
|
|
||||||
> The docker tests cannot be run in parallel, so require passing `--parallel=1`
|
|
||||||
> in `TESTFLAGS`.
|
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
>
|
>
|
||||||
|
|||||||
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -57,7 +57,6 @@ jobs:
|
|||||||
- prepare-test
|
- prepare-test
|
||||||
env:
|
env:
|
||||||
TESTFLAGS: "-v --parallel=6 --timeout=30m"
|
TESTFLAGS: "-v --parallel=6 --timeout=30m"
|
||||||
TESTFLAGS_DOCKER: "-v --parallel=1 --timeout=30m"
|
|
||||||
GOTESTSUM_FORMAT: "standard-verbose"
|
GOTESTSUM_FORMAT: "standard-verbose"
|
||||||
TEST_IMAGE_BUILD: "0"
|
TEST_IMAGE_BUILD: "0"
|
||||||
TEST_IMAGE_ID: "buildx-tests"
|
TEST_IMAGE_ID: "buildx-tests"
|
||||||
@@ -103,7 +102,7 @@ jobs:
|
|||||||
./hack/test
|
./hack/test
|
||||||
env:
|
env:
|
||||||
TEST_DOCKERD: "${{ startsWith(matrix.worker, 'docker') && '1' || '0' }}"
|
TEST_DOCKERD: "${{ startsWith(matrix.worker, 'docker') && '1' || '0' }}"
|
||||||
TESTFLAGS: "${{ (matrix.worker == 'docker' || matrix.worker == 'docker\\+containerd') && env.TESTFLAGS_DOCKER || env.TESTFLAGS }} --run=//worker=${{ matrix.worker }}$"
|
TESTFLAGS: "${{ env.TESTFLAGS }} --run=//worker=${{ matrix.worker }}$"
|
||||||
TESTPKGS: "${{ matrix.pkg }}"
|
TESTPKGS: "${{ matrix.pkg }}"
|
||||||
SKIP_INTEGRATION_TESTS: "${{ matrix.skip-integration-tests }}"
|
SKIP_INTEGRATION_TESTS: "${{ matrix.skip-integration-tests }}"
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user