Skip to content

feat(ci): clear disk space on github hosted runners#190

Merged
scottschreckengaust merged 2 commits into
mainfrom
free-disk-space
May 26, 2026
Merged

feat(ci): clear disk space on github hosted runners#190
scottschreckengaust merged 2 commits into
mainfrom
free-disk-space

Conversation

@scottschreckengaust
Copy link
Copy Markdown
Contributor

Add a step to free disk space before checkout.

Area

  • cdk — infrastructure, handlers, constructs
  • agent — Python runtime / Docker image
  • clibgagent client
  • docs — guides or design sources (docs/guides/, docs/design/)
  • tooling — root mise.toml, scripts, CI workflows

Tip: AGENTS.md lists where to edit and which tests to extend.

Related

Changes

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Add a step to free disk space before checkout.
@scottschreckengaust scottschreckengaust requested a review from a team as a code owner May 26, 2026 21:55
Removed multiple directories from cleanup except hostedtoolcache.

```table  ┌──────────────────────────────┬────────────────┬──────────────────────────┬─────────────────────┐
  │          Directory           │      Size      │      Deletion speed      │        Keep?        │
  ├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
  │ /usr/local/lib/android       │ ~14 GB         │ Fast (large files)       │ Yes                 │
  ├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
  │ /usr/share/dotnet            │ ~2.7 GB        │ Fast                     │ Yes                 │
  ├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
  │ /opt/hostedtoolcache         │ ~5.9 GB        │ Moderate (many files)    │ Yes                 │
  ├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
  │ /opt/ghc + /usr/local/.ghcup │ ~5 GB combined │ Moderate                 │ Optional            │
  ├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
  │ /usr/share/swift             │ ~1.5 GB        │ Slow (many object files) │ Drop                │
  ├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
  │ /usr/lib/jvm                 │ ~1 GB          │ Slow (many small files)  │ Drop                │
  ├──────────────────────────────┼────────────────┼──────────────────────────┼─────────────────────┤
  │ /usr/local/share/powershell  │ ~300 MB        │ Fast                     │ Drop (not worth it) │
  └──────────────────────────────┴────────────────┴──────────────────────────┴─────────────────────┘
```

  Trimming to just the top 3 gets ~22 GB in ~10-15 seconds:
@scottschreckengaust scottschreckengaust added this pull request to the merge queue May 26, 2026
Merged via the queue into main with commit ec6209c May 26, 2026
6 checks passed
@scottschreckengaust scottschreckengaust deleted the free-disk-space branch May 26, 2026 22:44
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