From 9f38e5c535946b0e8c2794114b503a9370e9e5a2 Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Wed, 21 Aug 2024 11:06:55 -0600 Subject: [PATCH] chore: resolve out of disk space errors (#699) The custom runner persists between runs and as a result never cleans up Go modules. As a result, the Go mod cache grows and grows and grows, which eventually results in out of disk space errors. Rather than keep bumping the disk size, this PR disables the cache such that a test run doesn't leave a big footprint behind. Fixes #696. --- .github/workflows/codeql.yml | 1 + .github/workflows/cover.yaml | 1 + .github/workflows/govulncheck.yaml | 1 + .github/workflows/lint.yaml | 1 + .github/workflows/sample-tests.yaml | 1 + .github/workflows/tests.yaml | 3 +++ 6 files changed, 8 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index dee39379..08622e97 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -51,6 +51,7 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: "1.22" + cache: false if: ${{ matrix.language == 'go' }} # Initializes the CodeQL tools for scanning. diff --git a/.github/workflows/cover.yaml b/.github/workflows/cover.yaml index 303b9613..1c4fdbed 100644 --- a/.github/workflows/cover.yaml +++ b/.github/workflows/cover.yaml @@ -26,6 +26,7 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: "1.22" + cache: false - name: Checkout base branch uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 diff --git a/.github/workflows/govulncheck.yaml b/.github/workflows/govulncheck.yaml index 30710a9e..aef7ee4b 100644 --- a/.github/workflows/govulncheck.yaml +++ b/.github/workflows/govulncheck.yaml @@ -37,6 +37,7 @@ jobs: with: go-version: "1.22" check-latest: true + cache: false - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c1d1dac6..8ac3004a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -33,6 +33,7 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: "1.22" + cache: false - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: diff --git a/.github/workflows/sample-tests.yaml b/.github/workflows/sample-tests.yaml index 88b6d498..9c469f2a 100644 --- a/.github/workflows/sample-tests.yaml +++ b/.github/workflows/sample-tests.yaml @@ -66,6 +66,7 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: "1.22" + cache: false - name: Authenticate to Google Cloud id: 'auth' uses: google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2 # v2.1.4 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2db2aabd..9a53c479 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -38,6 +38,7 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: "1.22" + cache: false - name: Verify FreeBSD and OpenBSD Builds run: | @@ -66,6 +67,7 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: "1.22" + cache: false - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -139,6 +141,7 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: "1.22" + cache: false - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7