-
Notifications
You must be signed in to change notification settings - Fork 759
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
[email protected] redownloading jdk on every run #632
Comments
Hello @Ivanuil, Thank you for creating this issue and we will look into it :) |
Haha |
I'm using the default installed version java 21.
Will be cool this action to take advantage of the pre-existent java versions already installed |
We're seeing the same thing on our self hosted runners. Shouldn't it re-use |
Try specifying https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L553 |
That did the trick. Thanks) |
Hello @Ivanuil, I've tried to reproduce the issue but didn't encounter any problems. Here's a screenshot for you to look at. Could you please outline the steps that led to this issue, so I can attempt to recreate it? |
@mahabaleshwars It should say: "Resolved Java 17.0.11 from tool-cache" when it re-uses the cache. Look at the code I pointed to above, using "17" as the version will disqualify that dir in |
Hello @Ivanuil, |
Hello @Ivanuil Yeah but that's not how it works in reality, unfortunately. See my comments above. |
something is downloading every time that i build something
|
Same for me :( Everything worked as it was supposed to for a month. And a few days ago the action started redownloading something on every run. It also usually fails to download (percentage get stuck at some point) and i have to cancel that run |
My job looks like this:
|
Hi @Ivanuil, I've attempted to reproduce the issue but I didn't encounter the problem you described. Could you provide a public repository where the issue is reproducible? |
Sure, repo: https://github.com/Ivanuil/FriendAlertBot |
Hello @Ivanuil, I have forked the repository ""FriendAlertBot"" but am still unable to reproduce the issue. |
Hello @Ivanuil, Please let us know if you still have any concerns on the above comment. |
Thank you for the info. Could you give me some advice on how to set up cahche in my reposityory so that everything works? :) |
Hello @Ivanuil, Could you enable debugging in your repository by adding the following secrets: Additionally, could you share your runner configuration file and its log so we can examine if it is contributing to this issue? |
Hello @Ivanuil, were you able to debug with the commands mentioned above? |
Hello @Ivanuil, Caching Mechanisms for Java in GitHub Actions
Each method has its own use cases and benefits, such as reducing build times and improving efficiency. Choose the appropriate method based on which part of the build process you want to cache.
Comparison
Choose the appropriate caching mechanism based on your project's needs and the level of customization required. |
Hello @Ivanuil, We are closing this issue now. Please feel free to reach out to us for any other concerns. |
Description:
[email protected] redownloading jdk on every every job in a pipeline while executing on a self-hosted Linux runner (about 15min on every job).
Task version:
v4.2.0
Platform:
Runner type:
Repro steps:
Workflow file:
Setup JDK log:
Post setup JDK log:
The text was updated successfully, but these errors were encountered: