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

ci: Workaround in the aarch64 runner to avoid out of space #7941

Merged

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Feb 15, 2023

Due to some new libraries being added to the build, we hit the disk space limit on the aarch64 runner; this adds a workaround to cleanup some build artifacts that are not needed after a certain point, which helps give some breathing space.

You can see a job failing here: https://github.com/osquery/osquery/actions/runs/4183644659/jobs/7248309929

And a build where I was testing this workaround: https://github.com/osquery/osquery/actions/runs/4185682265

Adding 30MB of a single static library caused ~4GB of additional disk space taken by tests.

See this comment for further explanation: #6397 (comment)

@Smjert Smjert added CI/CD Anything about the Continuous Integration or Continuous Deployment tool used by the repository aarch64 labels Feb 15, 2023
@Smjert Smjert requested a review from a team as a code owner February 15, 2023 17:18
@Smjert Smjert added this to the 5.8.0 milestone Feb 15, 2023
Copy link
Member

@directionless directionless left a comment

Choose a reason for hiding this comment

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

Happy to approve, but if there are more than a couple, this will generally be faster in an find | xargs | rm pipeline. Though you have to worry more about spaces.

@Smjert
Copy link
Member Author

Smjert commented Feb 15, 2023

Happy to approve, but if there are more than a couple, this will generally be faster in an find | xargs | rm pipeline. Though you have to worry more about spaces.

Deleting those files takes few seconds; the whole step (including installing) is taking 19 seconds, I don't think it's a problem.

@Smjert Smjert merged commit 15f7828 into osquery:master Feb 15, 2023
@Smjert Smjert deleted the stefano/ci/aarch64-out-of-space-workaround branch February 15, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aarch64 CI/CD Anything about the Continuous Integration or Continuous Deployment tool used by the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants