[CI][UBTI] Free disk space first#10470
Conversation
The GH runners are severely disk space limited. Clean up a bunch of stuff which we don't need before we do anything else.
7486b90 to
286ec38
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the Unified Build/Test/Install GitHub Actions workflow to proactively reclaim disk space on Linux GitHub-hosted runners before checking out and building CIRCT, addressing recurring “out of space” CI failures.
Changes:
- Adds an early “Free disk space” step on Linux runners using
jlumbroso/free-disk-space. - Configures the cleanup to remove Android/.NET/Haskell components and Docker images while leaving large packages and tool-cache intact.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
https://github.com/jlumbroso/free-disk-space
The step finished less than a minute (maybe because |
|
Here's another clue as to why our builds are failing sporadically: sometimes the runners have 145GB disks and other times it's 72GB. @uenoku the most time I've seen it take is 1m43s. The other one is ~45s. I'd say that overhead is worth it so we're not (in the future) wondering why release works but not debug. (I've been bitten by this sort of environment divergence in the past.) |
|
Nightly test matrix: https://github.com/llvm/circt/actions/runs/25879925419 Removing all but |
|
WTF! https://github.com/llvm/circt/actions/runs/25879925419/job/76056891061#step:20:6291 We gave this build an extra 25 GB of space and it still doesn't have enough space for static linking. Is this an actual bug? |
|
@teqdruid: Hey, this looks great! If it's just the link, we really should not be using |
|
@teqdruid wrote:
This is also great info. Thanks for figuring this out. I had suspected that there was some variability here, but hadn't suspected it was that much! Nice find. |
|
FWIW the static + Debug used 50GB locally, |
The GH runners are severely disk space limited. Clean up a bunch of stuff which we don't need before we do anything else.