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

ci: compile in JDK 17 to run Java 8 unit tests [not for review] #2081

Closed
wants to merge 7 commits into from

Conversation

suztomo
Copy link
Member

@suztomo suztomo commented Jun 21, 2023

This ensures that the compilation by JDK 17 generates Java 8-compatible bytecode.

The file being modified is templated by OwlBot postprocessor. I'm running checks to confirm upcoming change in the template works good.

C.f., googleapis/java-spanner#2440

This ensures that the compilation by JDK 17 generates Java 8-compatible bytecode.
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Jun 21, 2023
@generated-files-bot
Copy link

generated-files-bot bot commented Jun 21, 2023

Warning: This pull request is touching the following templated files:

  • .github/workflows/ci.yaml
  • .kokoro/build.sh

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/java-storage API. label Jun 21, 2023
@suztomo suztomo changed the title [not for review] ci: compile in JDK 17 to run Java 8 unit tests ci: compile in JDK 17 to run Java 8 unit tests [not for review] Jun 21, 2023
@suztomo
Copy link
Member Author

suztomo commented Jun 21, 2023

Next step: Why did "ci / units (8)" succeed?

@suztomo
Copy link
Member Author

suztomo commented Jun 21, 2023

Finally it caught the dummy Java 8-incompatible code https://github.com/googleapis/java-storage/actions/runs/5337901838/jobs/9674553850?pr=2081 correctly:

Error: com.google.cloud.storage.Crc32cValueTest.ensureConcatenationOfTwoValuesOnlyWorksWhenTheLengthIsKnownForRightHandSide Time elapsed: 0.001 s <<< ERROR! java.lang.UnsupportedClassVersionError: org/graalvm/home/Version has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at com.google.cloud.storage.Crc32cValue.of(Crc32cValue.java:63) at

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant