feat: using latest ubuntu runners#420
Merged
thugrock7 merged 2 commits intohypertrace:mainfrom Apr 22, 2025
Merged
Conversation
varkey98
approved these changes
Apr 22, 2025
| ./gradlew jib -PtargetJDK=15 -Djib.httpTimeout=120000 -Djib.console=plain --stacktrace -Ptag=$TAG | ||
| working-directory: smoke-tests/springboot | ||
| env: | ||
| JVM_OPTS: -Xmx1g --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED |
Contributor
Author
There was a problem hiding this comment.
The --add-opens flags were added because Java 17 (default in ubuntu-latest) strictly blocks reflection access that was permitted in Java 11.
Ref actions: https://github.com/hypertrace/javaagent/actions/runs/14587461988/job/40915439308
To solve InaccessibleObjectException observed, explicitly granting permission to use reflection on Java's internal classes of java.util and java.io packages
shashank11p
approved these changes
Apr 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Ubuntu 20.04 Actions runner image is deprecated as of 15th April 2025. So updating to use ubuntu-latest image
Ref: actions/runner-images#11101
SInce latest ubuntu image uses java 17 by default, updated to use JDK 11 to build and test to keep things as it is