-
Notifications
You must be signed in to change notification settings - Fork 653
ci: Address tight disk space on GHA runners #4974
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
Conversation
- Mount the host's root under /host/root so it's visible in the containers. - Remove stuff we don't need to free lots of disk space. - While we're at it, arrange for the commands (copied from OSL) that allow the containers to see a CPU, when available. Signed-off-by: Larry Gritz <lg@larrygritz.com>
jfpanisset
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, hope it works for you!
| image: ${{ inputs.container }} | ||
| volumes: ${{ fromJson( inputs.container_volumes ) }} | ||
| options: -v /:/host/root ${{ (contains(inputs.runner, 'gpu') && '-e NVIDIA_DRIVER_CAPABILITIES=compute,graphics,utility --gpus all') || '-e A=x' }} | ||
| # Extra options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used this conditional syntax before, I'm guessing that the || '-e A=x' part just sets an innocuous env var A=x since you can't have an empty "else" part of the conditional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. That part is just ported from OSL and is what I needed to make it work.
|
Also note that on a system where the container image store is on a different filesystem than the root filesystem, running Of course we only care about freeing up disk space on the same filesystem as where the container image is stored, and this is a Ubuntu GHA runner specific hack anyway. |
|
I think they're the same, but I fixed anyway. |
|
I was able to shave around 1.3GB from the images and have re-released ci-oiio 2024.5 / 2025.4 / 2026.2 and here are the results: This should hopefully allow the |
|
Thanks, @jfpanisset. I believe I will need the same for ci-osl |
|
All 2024.5 / 2025.4 / 2026.2 images have been re-released with the spurious Conan download cache purged. |
…n#4974) - Mount the host's root under /host/root so it's visible in the containers. - Remove stuff we don't need to free lots of disk space. - While we're at it, arrange for the commands (copied from OSL) that allow the containers to see a CPU, when available. This is freeing 20+ GB! --------- Signed-off-by: Larry Gritz <lg@larrygritz.com>
…n#4974) - Mount the host's root under /host/root so it's visible in the containers. - Remove stuff we don't need to free lots of disk space. - While we're at it, arrange for the commands (copied from OSL) that allow the containers to see a CPU, when available. This is freeing 20+ GB! --------- Signed-off-by: Larry Gritz <lg@larrygritz.com>
…n#4974) - Mount the host's root under /host/root so it's visible in the containers. - Remove stuff we don't need to free lots of disk space. - While we're at it, arrange for the commands (copied from OSL) that allow the containers to see a CPU, when available. This is freeing 20+ GB! --------- Signed-off-by: Larry Gritz <lg@larrygritz.com>
…n#4974) - Mount the host's root under /host/root so it's visible in the containers. - Remove stuff we don't need to free lots of disk space. - While we're at it, arrange for the commands (copied from OSL) that allow the containers to see a CPU, when available. This is freeing 20+ GB! --------- Signed-off-by: Larry Gritz <lg@larrygritz.com>
…n#4974) - Mount the host's root under /host/root so it's visible in the containers. - Remove stuff we don't need to free lots of disk space. - While we're at it, arrange for the commands (copied from OSL) that allow the containers to see a CPU, when available. This is freeing 20+ GB! --------- Signed-off-by: Larry Gritz <lg@larrygritz.com>
This is freeing 20+ GB!