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

[SKIP SOF-TEST] github: free some disc space #9766

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Jan 7, 2025

We're getting GitHub workflow failures like:

docker: failed to register layer: write /usr/lib/x86_64-linux-gnu/libz3.so.4: no space left on device.

e.g. in
https://github.com/thesofproject/sof/actions/runs/12651056289/job/35250849879?pr=9702 This patch frees some space before running tests.

@lyakh lyakh marked this pull request as ready for review January 7, 2025 15:33
@lyakh lyakh changed the title github: free some disc space [SKIP SOF-TEST] github: free some disc space Jan 7, 2025
We're getting GitHub workflow failures like:

docker: failed to register layer: write /usr/lib/x86_64-linux-gnu/libz3.so.4: no space left on device.

e.g. in
https://github.com/thesofproject/sof/actions/runs/12651056289/job/35250849879?pr=9702
This patch frees some space before running tests.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Thanks @lyakh ! Seems the free space is fluctuating and this will help (and seems to be used by other projects ). Not sure how longterm sustainable it is to maintain a list of cleanup actions, but I can't see this hurting either to make SOF at least a bit less susceptble to fluctuation in available free space in the runners.

@lyakh
Copy link
Collaborator Author

lyakh commented Jan 8, 2025

Thanks @lyakh ! Seems the free space is fluctuating and this will help (and seems to be used by other projects ). Not sure how longterm sustainable it is to maintain a list of cleanup actions, but I can't see this hurting either to make SOF at least a bit less susceptble to fluctuation in available free space in the runners.

@kv2019i should we verify if this hasn't been caused by a change on our side? E.g. one of the docker images became too large? Or we somehow download too many of them? We haven't seen such failures before, have we?

@kv2019i
Copy link
Collaborator

kv2019i commented Jan 8, 2025

@lyakh I'm really not an expert here, but it does seem our disk space usage has probably crept up. The SLA guarantees 14GB of space for standard public Ubuntu runners, but in practise there is usually a bit more space available (and more can be free with actions like this patch).

In worst case we might need to split our workflow jobs per platforms so that we don't need to install full SDK for every job. This is obviously quite a bit of work to do (both initially and to maintain), but an option at least.

Ref: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories

@lgirdwood lgirdwood merged commit 92521cf into thesofproject:main Jan 8, 2025
42 of 45 checks passed
@lyakh lyakh deleted the space branch January 8, 2025 15:47
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.

4 participants