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(build-and-test): limit ccache size #7555

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

xmfcx
Copy link
Contributor

@xmfcx xmfcx commented Jun 18, 2024

Description

Default ccache max_size=5GB which can be too much for our github hosted machines.

This PR reduces it to 600MB.

Related links:

Related issue:

Tests performed

Ran the workflow against this branch:

image

It works ✅

Effects on system behavior

I had a ccache cache of 30GB on my machine.

Set the max size to 5GB.

Then rebuilt the Autoware.

The ccache size gradually became smaller down to 4GB automatically.

Interface changes

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
@xmfcx xmfcx requested a review from mitsudome-r June 18, 2024 09:10
@xmfcx xmfcx self-assigned this Jun 18, 2024
@github-actions github-actions bot added the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label Jun 18, 2024
@xmfcx xmfcx added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jun 18, 2024
@xmfcx xmfcx marked this pull request as ready for review June 18, 2024 09:15
@mitsudome-r mitsudome-r merged commit c9c58f8 into main Jun 18, 2024
47 checks passed
@mitsudome-r mitsudome-r deleted the ci/limit-ccache-size branch June 18, 2024 09:27
@xmfcx
Copy link
Contributor Author

xmfcx commented Jun 18, 2024

image

Cache size after the build is under 600MB ✅

simon-eisenmann-driveblocks pushed a commit to simon-eisenmann-driveblocks/autoware.universe that referenced this pull request Jun 26, 2024
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: Simon Eisenmann <simon.eisenmann@driveblocks.ai>
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:ci Continuous Integration (CI) processes and testing. (auto-assigned)
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants