-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix GA/EA action #766
Fix GA/EA action #766
Conversation
Signed-off-by: Josiah Noel <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #766 +/- ##
=======================================
Coverage 87.21% 87.21%
=======================================
Files 99 99
Lines 2942 2942
Branches 229 229
=======================================
Hits 2566 2566
Misses 329 329
Partials 47 47 |
Signed-off-by: Josiah Noel <[email protected]>
Signed-off-by: Josiah Noel <[email protected]>
Signed-off-by: Josiah Noel <[email protected]>
Well I suppose it's only natural lombok would fail the EA build since they don't support a JDK until after it becomes GA |
Signed-off-by: Josiah Noel <[email protected]>
We could update the Lombok example with a selector.groovy that filters out EA builds if you are able to determine that. // src/it/lombok/selector.groovy
if (thisIsAnEaBuild()) {
println("Lombok is not supported in EA builds")
return false
}
return true that'd allow you to keep this enabled. Maven Invoker would detect this automatically and just skip that test when it is detected. Edit: example: https://github.com/ascopes/protobuf-maven-plugin/blob/main/protobuf-maven-plugin/src/it/scalapb-plugin/selector.groovy |
it's both lombok and error prone |
Yeah, thought that'd be a problem. Do you know if the JDK has any descriptor of the version being early access (e g. in the Runtime.version() API)? |
running System.out.println(Runtime.version()); gives me |
Wonder if it is worth checking that with a regex just to disable the specific tests that are problematic... what do you think? Is testing against EA likely to provide additional benefit do you think? |
you can catch potential issues before they happen and notify the JDK devs before GA if it's a JDK problem |
Might be worth adding then! I can take a look when I have some time unless you'd like to add it to this PR. Thanks for fixing on such short notice, btw. |
Also add maven cache