From e56be95c4c497a3c547fe79aa3bcc44ca3a17c0a Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 16 Aug 2022 10:20:13 +0200 Subject: [PATCH] ci: align test flags Signed-off-by: CrazyMax (cherry picked from commit c175c93c49a980197b2738896764bee7a5561e55) Signed-off-by: Sebastiaan van Stijn --- .github/workflows/build.yml | 4 ++-- .github/workflows/dockerd.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df2f4bc3c00d..c22ff27766f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ env: CACHE_GHA_SCOPE_IT: "integration-tests" CACHE_GHA_SCOPE_BINARIES: "binaries" CACHE_GHA_SCOPE_CROSS: "cross" + TESTFLAGS: "-v --parallel=6 --timeout=30m" BUILDX_VERSION: "v0.8.2" # leave empty to use the one available on GitHub virtual environment GO_VERSION: "1.19" @@ -109,7 +110,6 @@ jobs: - name: Test pkg=${{ matrix.pkg }} ; typ=${{ matrix.typ }} ; skipit=${{ matrix.skip-integration-tests }} ; worker=${{ matrix.worker }} run: | - export TESTFLAGS="-v --parallel=6 --timeout=20m" if [ -n "${{ matrix.worker }}" ]; then export TESTFLAGS="${TESTFLAGS} --run=//worker=${{ matrix.worker }}$" fi @@ -164,7 +164,7 @@ jobs: SKIP_INTEGRATION_TESTS: 1 run: | mkdir -p ./coverage - go test -coverprofile=./coverage/coverage-${{ github.job }}-${{ matrix.os }}.txt -covermode=atomic ./... + go test -coverprofile=./coverage/coverage-${{ github.job }}-${{ matrix.os }}.txt -covermode=atomic ${TESTFLAGS} ./... shell: bash - name: Upload coverage file diff --git a/.github/workflows/dockerd.yml b/.github/workflows/dockerd.yml index 03d2c359748b..c76970881968 100644 --- a/.github/workflows/dockerd.yml +++ b/.github/workflows/dockerd.yml @@ -13,6 +13,7 @@ env: REPO_SLUG_ORIGIN: "moby/buildkit:latest" CACHE_GHA_SCOPE_IT: "integration-tests" CACHE_GHA_SCOPE_BINARIES: "binaries" + TESTFLAGS: "-v --parallel=1 --timeout=30m" BUILDX_VERSION: "v0.8.2" # leave empty to use the one available on GitHub virtual environment jobs: @@ -137,6 +138,6 @@ jobs: TEST_DOCKERD: "1" TEST_DOCKERD_BINARY: "./build/dockerd" TESTPKGS: "${{ matrix.pkg }}" - TESTFLAGS: "-v --parallel=1 --timeout=30m --run=//worker=dockerd$" + TESTFLAGS: "${{ env.TESTFLAGS }} --run=//worker=dockerd$" SKIP_INTEGRATION_TESTS: "${{ matrix.skip-integration-tests }}" CACHE_FROM: "type=gha,scope=${{ env.CACHE_GHA_SCOPE_IT }} type=gha,scope=${{ env.CACHE_GHA_SCOPE_BINARIES }}"