Skip to content

ci: improve disk space management on self-hosted Windows runner#19593

Merged
lystopad merged 3 commits intomainfrom
feature/lystopad/improve-test-all-erigon.yml
Mar 4, 2026
Merged

ci: improve disk space management on self-hosted Windows runner#19593
lystopad merged 3 commits intomainfrom
feature/lystopad/improve-test-all-erigon.yml

Conversation

@lystopad
Copy link
Member

@lystopad lystopad commented Mar 3, 2026

Changes

  • Move GOMODCACHE/GOCACHE env vars to job level so all steps share the same cache paths
  • Add pre-run go clean -testcache (if: always()) — ensures tests run fresh and catches leftovers from cancelled runs
  • Add LFS prune step after checkout — removes blobs no longer referenced by the current branch
  • Replace old Cleanup with post-run go clean -cache — clears compiled artifacts after each run to prevent unbounded growth on the persistent runner
  • Post-run cleanup also removes coverage-test-all.out and $env:RUNNER_TEMP (previously only $env:TEMP was cleaned)

@lystopad lystopad self-assigned this Mar 3, 2026
lystopad added 2 commits March 3, 2026 19:45
pwsh (PowerShell Core) is not installed on the runner; use bash
which is already used by the other steps in this job.

Co-Authored-By: Claude
go is not in PATH before setup-go runs, causing the step to fail.
The step is also redundant: post-run go clean -cache already wipes
the entire build cache including test results.

Co-Authored-By: Claude
@lystopad lystopad enabled auto-merge (squash) March 3, 2026 20:09
@lystopad lystopad merged commit e14bb2e into main Mar 4, 2026
27 of 33 checks passed
@lystopad lystopad deleted the feature/lystopad/improve-test-all-erigon.yml branch March 4, 2026 03:09
sudeepdino008 pushed a commit that referenced this pull request Mar 4, 2026
## Changes

- Move `GOMODCACHE`/`GOCACHE` env vars to job level so all steps share
the same cache paths
- Add **pre-run** `go clean -testcache` (`if: always()`) — ensures tests
run fresh and catches leftovers from cancelled runs
- Add **LFS prune** step after checkout — removes blobs no longer
referenced by the current branch
- Replace old `Cleanup` with **post-run** `go clean -cache` — clears
compiled artifacts after each run to prevent unbounded growth on the
persistent runner
- Post-run cleanup also removes `coverage-test-all.out` and
`$env:RUNNER_TEMP` (previously only `$env:TEMP` was cleaned)
sudeepdino008 pushed a commit that referenced this pull request Mar 4, 2026
## Changes

- Move `GOMODCACHE`/`GOCACHE` env vars to job level so all steps share
the same cache paths
- Add **pre-run** `go clean -testcache` (`if: always()`) — ensures tests
run fresh and catches leftovers from cancelled runs
- Add **LFS prune** step after checkout — removes blobs no longer
referenced by the current branch
- Replace old `Cleanup` with **post-run** `go clean -cache` — clears
compiled artifacts after each run to prevent unbounded growth on the
persistent runner
- Post-run cleanup also removes `coverage-test-all.out` and
`$env:RUNNER_TEMP` (previously only `$env:TEMP` was cleaned)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants