-
Notifications
You must be signed in to change notification settings - Fork 571
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
CI: Test on all current Java LTS versions (8, 11 ,17, and 21) #4938
base: master
Are you sure you want to change the base?
CI: Test on all current Java LTS versions (8, 11 ,17, and 21) #4938
Conversation
Tests on JDK 17 and 21 are optional (since they currently fail). The very existence of these testes will increase the awareness on the importance of code compatibility with newer Java versions, thus enabling future transitions to be implemented gradually. Making the code run on JDK 11 took a lot of hacking. This will reduce the effort for eventual future transitions.
Looks like it's TestNG causing problems? |
Well, it seems this PR is already achieving its aim of raising awareness on things to improve...
Like this PR, for example: #4942 |
Don't you need to run your test with add-opens? forge/forge-gui-desktop/src/main/config/forge.sh Lines 44 to 52 in 152ad0b
|
Wouldn't this hide the fact that the current code does not compile with JDK 17+? I think that it is important to be explicitly aware of this... If we are not even aware of this problem, then no one will see an incentive to fix it... As I said above, I think that just this awareness in itself makes merging this worth it... |
it would. if using the right ADD-OPENS parameters |
This PR has not been updated in a while nad has been marked on stale. Stale PRs will be auto closed |
Well, being explicit about that the code won't compile unless that hack is used is part of the "awareness raising" rationale I mentioned when I first opened this PR... |
I mean, the first step to solve a problem is to accept its existence, right? |
The "pain" you are referring too is JAVA 17+ messing up our Code we depend on it, and can't really update |
Here's my suggestion for this PR. Instead of having these failing (optional) tests run every single PR which is a lot of noise and Github Actions CPU cycles. And potentially very noisy for new people who don't understand that this is expected behavior, why don't we associate this change only during release builds that way we can keep it in mind if there's a future way to avoid add-opens, but its not just noise for the sake of noise. |
Tests on JDK 17 and 21 are optional (since they currently fail).
The very existence of these tests will increase the awareness on the importance of code compatibility with newer Java versions, thus enabling future transitions to be implemented gradually.
Making the code run on JDK 11 took a lot of hacking. This will reduce the effort for eventual future transitions.