Skip to content
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

Merged
merged 5 commits into from
Dec 16, 2024
Merged

Fix GA/EA action #766

merged 5 commits into from
Dec 16, 2024

Conversation

SentryMan
Copy link
Contributor

@SentryMan SentryMan commented Dec 16, 2024

Also add maven cache

Signed-off-by: Josiah Noel <[email protected]>
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.21%. Comparing base (a5bd97e) to head (a88cd56).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           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]>
@SentryMan
Copy link
Contributor Author

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]>
@ascopes
Copy link
Owner

ascopes commented Dec 16, 2024

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

@SentryMan
Copy link
Contributor Author

it's both lombok and error prone

@ascopes
Copy link
Owner

ascopes commented Dec 16, 2024

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)?

@SentryMan
Copy link
Contributor Author

running

System.out.println(Runtime.version());

gives me 24-ea+28-3562

@ascopes
Copy link
Owner

ascopes commented Dec 16, 2024

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?

@SentryMan
Copy link
Contributor Author

SentryMan commented Dec 16, 2024

you can catch potential issues before they happen and notify the JDK devs before GA if it's a JDK problem

@ascopes
Copy link
Owner

ascopes commented Dec 16, 2024

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.

@ascopes ascopes merged commit 74075b6 into ascopes:main Dec 16, 2024
11 checks passed
@SentryMan SentryMan deleted the patch-2 branch December 16, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants