-
Notifications
You must be signed in to change notification settings - Fork 33
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
Improve usage of Maven cache between GitHub Actions #1656
Labels
Milestone
Comments
php-coder
added
the
ADR/needed
A decision has been made and it needs to be documented
label
Dec 29, 2023
php-coder
added a commit
that referenced
this issue
Jan 5, 2024
…d amongst workflows Part of #1656 [skip ci]
php-coder
added a commit
that referenced
this issue
Jan 5, 2024
php-coder
added a commit
that referenced
this issue
Jan 5, 2024
php-coder
added a commit
that referenced
this issue
Jan 6, 2024
php-coder
added a commit
that referenced
this issue
Jan 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use the same configuration everywhere:
So, the jobs use Maven cache by default. But there seems to be a problem that a cache might not have some dependencies and a job had to download them. Here is the example:
in the middle of the log, there a lot of downloads:
and at the end:
The root cause is that the jobs might need different set of dependencies but they use a single cache for everyone. Also, it's not clear who is publishing that cache. It seems like, a job that the first finished, puts its dependencies to a cache.
I see the following ways to fix it:
pom.xml
modification)Anyway, we will have to manage cache manually because
actions/setup-java
doesn't have capabilities to adjust cache properties (actions/setup-java#551).The text was updated successfully, but these errors were encountered: