-
Notifications
You must be signed in to change notification settings - Fork 18
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
Manually install JDK #127
Manually install JDK #127
Conversation
Why doesn't it work as is? I'm guessing this is the failure? It looks like it's installed the right version of Java, but for some reason the I'd rather avoid hardcoding the Java version because it's another place to increment when we upgrade. |
@JackPGreen I had to hardcode the path to the JDK in the RC script in the |
Can't you just add that environment variable rather than manual install? |
@ihsandemir |
Can't we remove this instead? Why's it there? |
|
Ok - do you know why that was? What JDK was being selected vs expected? |
You can see a failing run here: The RC jars require JDK 17, so I've updated the workflow to use that here: But the RC still uses JDK 8 it finds from somewhere. Could you have a look at what's wrong? |
This is the branch we have to update: |
The runners come with JDK8 out-of-the-box. So I'm guessing that no other JDK was configured in that environment?
How can you tell that's a Java-8 related issue? |
In the "Start Hazelcast Remote Controller" step, there is this:
|
Thanks! I think the problem is on the We install JDK 17 via From my testing, this doesn't seem to set
But in I've made a branch of
And that action looks to work there:
|
@yuce did you check other clients, how tey start rc, because we do not have this problem for them. You can check python or .NET as most up to date ones. I wonder what are we doing different here. |
@JackPGreen I remember something complaining about I think GH sets the Anyway, I think your solution is better than updating Thanks for coming up with this solution. |
@ihsandemir Python and .Net clients don't use This problem didn't arise before, since RC jar was compiled with JDk 8. You may get the same problem if you run the C++ client tests (and GH workflow installs JDK using |
The [tests are failing](https://github.com/hazelcast/hazelcast-go-client/actions/runs/10175906206/job/28144201884) because of a conflict between: - `JAVA_HOME` - Multiple Java installations on the runner Based on my [investigation and testing](hazelcast/client-compatibility-suites#127 (comment)) using `setup-java`, and avoiding hardcoding, resolves these issues.
In hazelcast/client-compatibility-suites#127 (comment) it was identified that using `apt-get` to install Java on GitHub runners can cause issues with Maven using the right JDK, and that using `setup-java` instead resolves that. Fixes: hazelcast#1222 🤞
The [tests are failing](https://github.com/hazelcast/hazelcast-go-client/actions/runs/10175906206/job/28144201884) because of a conflict between: - `JAVA_HOME` - Multiple Java installations on the runner Based on my [investigation and testing](hazelcast/client-compatibility-suites#127 (comment)) using `setup-java`, and avoiding hardcoding, resolves these issues.
hazelcast/hazelcast-go-client#1005
I'll have a look at that as well... |
@yuce based on ^ that ^ do we still need this PR? Or do you want to retest? |
@JackPGreen Thanks for the PR! |
No description provided.