From b46dc0a1e4866afacc24f3fc438703ca3d2f97f4 Mon Sep 17 00:00:00 2001 From: Azanul Date: Mon, 5 Jun 2023 05:49:03 +0530 Subject: [PATCH] Clean golang test cache Signed-off-by: Azanul --- .github/workflows/e2e.yaml | 1 + .github/workflows/robustness-template.yaml | 1 + .github/workflows/tests.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 9ad7f451b0c..ec77508191a 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -24,6 +24,7 @@ jobs: TARGET: ${{ matrix.target }} run: | set -euo pipefail + go clean -testcache echo "${TARGET}" case "${TARGET}" in diff --git a/.github/workflows/robustness-template.yaml b/.github/workflows/robustness-template.yaml index ed4ff02de44..2af1900c53f 100644 --- a/.github/workflows/robustness-template.yaml +++ b/.github/workflows/robustness-template.yaml @@ -38,6 +38,7 @@ jobs: ETCD_BRANCH: "${{ inputs.etcdBranch }}" run: | set -euo pipefail + go clean -testcache # Use --failfast to avoid overriding report generated by failed test GO_TEST_FLAGS="-v --count ${{ inputs.count }} --timeout ${{ inputs.testTimeout }} --failfast --run TestRobustness" diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4dcaa63987c..e91bdaad920 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,6 +27,7 @@ jobs: TARGET: ${{ matrix.target }} run: | set -euo pipefail + go clean -testcache mkdir "${TARGET}" export JUNIT_REPORT_DIR=$(realpath ${TARGET})