New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused tools to free up CI disk space #1864
Conversation
.github/workflows/ci.yaml
Outdated
- name: Free disk space | ||
run: | | ||
df --human-readable | ||
sudo swapoff --all | ||
sudo rm --force /swapfile | ||
sudo apt clean | ||
docker rmi $(docker image ls --all --quiet) | ||
rm -rf "$AGENT_TOOLSDIRECTORY" |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
It's only 512MB and seems useful https://help.ubuntu.com/community/SwapFaq#Why_do_I_need_swap.3F
Seems quite effective, cleans up an additional 7GB compared to our previous setup. |
Thank you @juliettepretot ! I was dreading the process of figuring out why CI was broken for #1846 and now I don't have to! |
Reproducibility Index:
Reproducibility Index diff: |
Currently it seems our CI workflow is running out of space.
Some PRs where this is happening:
#1843
#1846
#1857
This tries to patch it by removing some prebuilt tools included by GitHub to free up more space.
An approach recommend here: actions/runner-images#709 (comment)
And used by big repos such as https://github.com/facebook/proxygen
Checklist
Cloudbuild
cover any TODOs and/or unfinished work.
construction.