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

HDDS-10470. Populate Maven dependency cache in separate workflow #6340

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Create a separate CI workflow to populate the cache for Maven dependencies from scratch. This prevents cache inflation that can happen if existing cache is updated with new dependencies: obsolete dependencies are never removed.

The workflow runs on master and ozone-1.4 branches whenever pom.xml files are changed. It also runs on a schedule to avoid cache miss due to expiry.

Existing workflows are updated to only restore the cache, do not create/update it.

https://issues.apache.org/jira/browse/HDDS-10470

How was this patch tested?

Tested in fork:

@adoroszlai adoroszlai added the CI label Mar 6, 2024
@adoroszlai adoroszlai self-assigned this Mar 6, 2024
Copy link
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

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

Thanks @adoroszlai . lgtm

@adoroszlai adoroszlai merged commit 48bc30f into apache:master Mar 8, 2024
39 checks passed
@adoroszlai adoroszlai deleted the HDDS-10470 branch March 8, 2024 07:52
@adoroszlai
Copy link
Contributor Author

Thanks @smengcl for the review.

adoroszlai added a commit to adoroszlai/ozone that referenced this pull request Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants