OpenLiberty / guides-common

Common Guide files
Other
9 stars 6 forks source link

Daily build test failed if run by JDK17 #893

Open gkwan-ibm opened 1 year ago

gkwan-ibm commented 1 year ago

Test results from https://github.com/OpenLiberty/guides-common/actions/runs/4053570256. Following guides failed:

ReeceNana commented 1 year ago

Ran Locally With JDK17 - openjdk version "17.0.5" 2022-10-18 IBM Semeru Runtime Open Edition 17.0.5.0 (build 17.0.5+8) Eclipse OpenJ9 VM 17.0.5.0 (build openj9-0.35.0, JRE 17 Mac OS X aarch64-64-Bit 20221018_182 (JIT enabled, AOT enabled)

All guides failure match with build test errors - https://github.com/OpenLiberty/guides-common/actions/runs/4053570256 - except security-intro, microprofile-reactive-messaging-acknowledgment and microprofile-reactive-messaging-rest-integration

- security-intro - microprofile-reactive-messaging-acknowledgment - microprofile-reactive-messaging-rest-integration

Ran guide end-to-end, no failures.

Errors from Guides below:

- gradle-intro

Ran ./gradlew tasks. Error Output :

FAILURE: Build failed with an exception.
* What went wrong:
org.codehaus.groovy.reflection.ReflectionCache (initialization failure)
> org.codehaus.groovy.vmplugin.v7.Java7 (initialization failure)

- maven-multimodes

Ran mvn install. Error Output :

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project guide-maven-multimodules-war: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.2:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.2' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Cannot access defaults field of Properties

- microshed-testing

Ran mvn verify. Error Output:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.22.0:verify (default) on project guide-microshed-testing: There are test failures.

[ERROR] Errors: 
[ERROR]   ErrorPathIT » ContainerFetch Can't get Docker image: RemoteDockerImage(imageNa...
[ERROR]   PersonServiceIT » ContainerFetch Can't get Docker image: RemoteDockerImage(ima...
[INFO] 
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0

- reactive-rest-client

Original error occurs in InventoryServiceIT

Ran mvn verify. Error Output:

[ERROR] Errors: 
[ERROR]   QueryServiceIT » IllegalArgument io.openliberty.guides.query.QueryResource is ...
[INFO] 
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

- reactive-service-testing

Original error occurs in InventoryServiceIT

Ran mvn verify. Error Output:

[ERROR] Errors: 
[ERROR]   QueryServiceIT » IllegalArgument io.openliberty.guides.query.QueryResource is ...
[INFO] 
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
gkwan-ibm commented 1 year ago

Because MST does not support JDK 17, the following guides are blocked

gkwan-ibm commented 1 year ago

The microshed-testing guide will be deprecated.

Will update the following guides to use Testcontainers directly: