-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: Free up disk space on E2E test GHA runner node #2972
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
chore: Free up disk space on E2E test GHA runner node #2972
Conversation
Resolves kserve#2950 Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
So the disk clean-up of the "$AGENT_TOOLSDIRECTORY" happens before installing Python 3.9: >> Requirement already satisfied: poetry<2.0.0,>=1.2.2 in /opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages (from poetry-version-plugin==0.1.4) (1.4.0) If disk clean-up happens after installing Python: >> Installing Poetry Version Plugin Defaulting to user installation because normal site-packages is not writeable >> Requirement already satisfied: poetry<2.0.0,>=1.2.2 in /home/runner/.local/lib/python3.10/site-packages (from poetry-version-plugin==0.1.4) (1.4.0) Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
@yuzisun -- this PR is ready for review now. Its sole focus is on providing more storage on the GitHub Action runners for E2E tests. I added the disk clean-up step into the Minikube setup action, assuming where ever Minikube is being used, more disk space is need. I tried to re-enable the Triton (and other skipped) tests, but I assume more setup is needed for those which is best tackled in a separate PR by someone more familiar with the test setup. |
Signed-off-by: Dan Sun <dsun20@bloomberg.net>
Signed-off-by: Dan Sun <dsun20@bloomberg.net>
@ckadner I fixed a merge conflict, can you check if I did correctly? |
Thanks @ckadner for fixing the disk spaces! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ckadner, yuzisun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Remove cached tools and unnecessary libraries from GitHub Action Runner node before setting up Minikube Resolves kserve#2950 --------- Signed-off-by: Christian Kadner <ckadner@us.ibm.com> Signed-off-by: Dan Sun <dsun20@bloomberg.net> Co-authored-by: Dan Sun <dsun20@bloomberg.net> Signed-off-by: iamlovingit <freecode666@gmail.com>
Motivation
Some end-to-end tests cannot be run using GitHub Actions due to limited disk space.
We can free up disk space by following some best practices to reduce disk usage for GitHub action runners by deleting binaries that are not needed.
Modifications
Result
Increased available disk space by 21 GB (plus 1 GB after pruning docker images).
Before cleanup:
https://github.com/kserve/kserve/actions/runs/5183670232/jobs/9342128918#step:5:44
After cleanup:
https://github.com/kserve/kserve/actions/runs/5183670232/jobs/9342128918#step:5:54
After pruning docker images:
https://github.com/kserve/kserve/actions/runs/5183670232/jobs/9342128918#step:5:1218
Resolves #2950