Skip to content

Conversation

@pantha704
Copy link
Contributor

@pantha704 pantha704 commented Jan 24, 2026

Port disk space cleanup script from rust-lang/rust to free space on GitHub Actions runners before running abi-cafe tests.

Fixes #1624

@rustbot

This comment has been minimized.

Port disk space cleanup script from rust-lang/rust to free space on
GitHub Actions runners before running abi-cafe tests.

Fixes rust-lang#1624
@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2026

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

@bjorn3
Copy link
Member

bjorn3 commented Jan 24, 2026

Which commit of rust-lang/rust did you port it from? I'm seeing a bunch of differences with rust-lang/rust@d29e478.

@pantha704
Copy link
Contributor Author

pantha704 commented Jan 24, 2026

It isn't a direct port,
I wrote a simplified version based on the original's
approach.

Removed the isX86()/isGitHubRunner() conditionals since this repo
only runs on GitHub Actions.

The core cleanup logic (packages, docker, swap, directories) is the same.
If you'd prefer a closer match I can update it.

@bjorn3
Copy link
Member

bjorn3 commented Jan 24, 2026

A closer match would be preferred. And if you don't mind, please also link the exact commit you ported it from.

@pantha704
Copy link
Contributor Author

pantha704 commented Jan 24, 2026

I've updated the script to be an exact port of rust-lang/rust including all the conditionals and helpers, as requested.

The source is src/ci/scripts/free-disk-space-linux.sh from commit d29e478.

I verified the content matches closely

@bjorn3
Copy link
Member

bjorn3 commented Jan 24, 2026

Thanks!

@bjorn3 bjorn3 merged commit 41b7226 into rust-lang:main Jan 24, 2026
22 of 23 checks passed
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.

CI runs out of space for abi-cafe tests

3 participants