-
Notifications
You must be signed in to change notification settings - Fork 752
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
Oracle JDK takes significantly longer to set up #596
Oracle JDK takes significantly longer to set up #596
Comments
Hello @fniephaus, Thank you creating this issue and we will look into it :) |
I'm having the same issue with v4. I noticed that The problem is not happening in v3, which runs |
Downloading the JDK does not seem to be the problem:
To my surprise, it seems to be the creation of the
|
I've tried to debug this some more and it seems that the main
It seems to be part of the var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}; At this point, I'm unable to tell whether this is a bug in the awaiter code or in Node.js. |
Ok, I think I got it. In my fork, setup-java takes 5s again. The problem is related to ruby/setup-ruby#543 (comment) and what I did to make it run in 5s again is to manually apply this patch to the index.js in my fork. I'm guessing this problem is also causing other issues such as #591. |
Hello @fniephaus 👋, |
Yes, the fix needs to be applied to |
Hello @fniephaus, The actions/toolkit#1572 released and updated actions/http-client version to 2.2.1 as part of setup-java v4.2.0 release. Tested from our end, the time difference in the post run process in v4. Please check and confirm to proceed to close this issue. |
I can confirm that |
Description:
For some reason, the time it takes to run
setup-java
withdistribution: 'oracle'
is currently significantly larger than for other distros. In this job, for example, it took 3mins, while others only need a couple of seconds (example).Task version:
v4.0.0
Platform:
Runner type:
Repro steps:
Just look at the e2e tests in this repo.
Expected behavior:
Oracle JDK takes seconds to be set up.
Actual behavior:
Oracle JDK takes minutes to be setup.
Full disclosure: I work for Oracle.
The text was updated successfully, but these errors were encountered: