Skip to content
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

Publisher: Clean up disk space before building #271

Merged
merged 9 commits into from
Nov 13, 2024
Merged

Publisher: Clean up disk space before building #271

merged 9 commits into from
Nov 13, 2024

Conversation

singiamtel
Copy link
Collaborator

Some images (like slc9-gpu-builder) are too big for the free runner, so
we need to remove some stuff before, mostly unused language packages

Reference for the free disk space:
actions/runner-images#2840

Builder error message:

==> docker:    At least 11799MB more space needed on the / filesystem.

Some images (like slc9-gpu-builder) are too big for the free runner, so
we need to remove some stuff before, mostly unused language packages

Reference for the free disk space:
actions/runner-images#2840

Builder error message:
```
==> docker:    At least 11799MB more space needed on the / filesystem.
```

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Some images are too large and we run out of disk space, so try to free some
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we clone this in our own alisw area? I'd rather avoid dependency on actions controlled by others.

sudo rm -rf /usr/share/dotnet || true
sudo rm -rf /opt/ghc || true
sudo rm -rf /usr/local/.ghcup || true
sudo docker image prune --all --force || true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need only the last line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to remove as many things from the default builder as possible because the slc9-gpu-builder is huge. It still doesn't fit, I'll have to find more space to regain...

==> docker: Stderr: Error response from daemon: write /opt/rocm-6.2.4/lib/rocfft/rocfft_kernel_cache.db: no space left on device

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine, but do we have:

          sudo rm -rf /usr/local/lib/android || true
          sudo rm -rf /usr/share/dotnet || true
           sudo rm -rf /opt/ghc || true
           sudo rm -rf /usr/local/.ghcup || true

in the first place? I mean, Haskell ? CSharp?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, the images come with basically everything preinstalled, to make them easier to use (and even several versions of some things, like 5 or 6 Pythons...). It's a questionable approach in my opinion, but at least it means we have some space to regain

https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely questionable... Merging..

@ktf ktf merged commit 59ef229 into master Nov 13, 2024
2 of 3 checks passed
@ktf ktf deleted the clean_runner branch November 13, 2024 13:56
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.

2 participants