-
Notifications
You must be signed in to change notification settings - Fork 651
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" in build job #482
base: main
Are you sure you want to change the base?
Conversation
- Add "Maximize Build Space" step to Build job, to prevent `System.IO.IOException: No space left on device`. (It was already in the Inspect code and Verify plugin jobs.) - Also add it to the Test job, assuming that will start running out of space soon too. - Pin jlumbroso/free-disk-space action to particular version to avoid unexpected workflow behavior changes.
I encountered a "No space left on device" error during a build job. I tried a fix, and it worked perfectly! 🎉 |
I can confirm, applied the same changes to my plugin and it did the job! |
.github/workflows/build.yml
Outdated
@@ -100,6 +107,13 @@ jobs: | |||
runs-on: ubuntu-latest | |||
steps: | |||
|
|||
# Free GitHub Actions Environment Disk Space | |||
- name: Maximize Build Space | |||
uses: jlumbroso/[email protected] |
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 can confirm that this reconfiguration works! 🙌
Why do we point to a specific version instead of the jlumbroso/free-disk-space@main
ref?
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.
Why do we point to a specific version instead of the
jlumbroso/free-disk-space@main
ref?
It's generally a good idea to pin actions to avoid unexpected changes. And actually, since this is a third-party action not maintained by JetBrains, it would be best to pin it to a particular SHA to improve security. (jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
is v1.3.1.)
Don't we need the |
Probably yes, since that workflow ends up (re-)running the build task. |
System.IO.IOException: No space left on device
. (It was already in the Inspect code and Verify plugin jobs.)versionSHA for security and to avoid unexpected workflow behavior changes.