From c7463941bc579dce37829595936a0ed2d1f84998 Mon Sep 17 00:00:00 2001 From: Laszlo Kiraly Date: Tue, 1 Sep 2026 11:00:05 +0200 Subject: [PATCH] Fix golangci-lint CI cache restore failure and bump timeout The reusable golangci-lint workflow intermittently failed when the golangci-lint-action cache restore errored out ("Cache service responded with 400" and a tar extraction conflict on the Go toolchain files), leaving the runner to be killed before the lint completed. Disable the action's internal cache (skip-cache) and add an explicit "go clean -cache -modcache" step to avoid restoring a stale/corrupted cache. Also increase the lint timeout from 3m to 5m to give cache-cold runs enough headroom, since the CLI --timeout flag overrides the value in each repo's .golangci.yml. Assisted-by: Kiro (AI assistant) Signed-off-by: Laszlo Kiraly --- .github/workflows/golangci-lint.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 25072dd..086ac91 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -21,8 +21,11 @@ jobs: uses: actions/setup-go@v5 with: go-version: 1.24.0 + - name: Clean Go caches + run: go clean -cache -modcache - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: version: ${{ inputs.linter-version }} - args: --timeout 3m --verbose + args: --timeout 5m --verbose + skip-cache: true