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

fix: no space left on device #289

Merged
merged 4 commits into from
Nov 17, 2023
Merged

fix: no space left on device #289

merged 4 commits into from
Nov 17, 2023

Conversation

strophy
Copy link
Collaborator

@strophy strophy commented Nov 17, 2023

CI was failing with error build System.IO.IOException: No space left on device : '/home/runner/runners/2.311.0/_diag/Worker_20231116-033846-utc.log'

This PR uses a more advanced action to ensure there is sufficient free space on the runner. Let's let CI run through a few times to verify it works.

- name: Delete tools folder
run: rm -rf /opt/hostedtoolcache
- name: Maximize build space
uses: easimon/maximize-build-space@master
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not familiar with this action, I've used https://github.com/rvolosatovs/nixify/blob/main/.github/workflows/check.yml#L31-L35 myself with good results though for quite a while (just an FYI)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Interesting, these two actions do very similar things! I think easimon is a bit more advanced because in addition to uninstalling most of the same packages, it also takes the free space from the two available block devices and combines it using LVM to create a single partition with ~100GB of free space on the current generation of runners. I'm using this partition to host Docker's data-root which should give us more than enough headroom going forward.

@strophy strophy merged commit a7b2ca3 into main Nov 17, 2023
1 check passed
@strophy strophy deleted the fix/ci-disk-space branch November 17, 2023 11:27
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