OpenLiberty / guides-common

Common Guide files
Other
9 stars 6 forks source link

Test the guides with 22.0.0.10 GM candidate build #839

Closed gkwan-ibm closed 2 years ago

gkwan-ibm commented 2 years ago

Candidate build: cl221020220912-1100

Manual test the guides against GM with Semeru JDK 11:

Additional guides:

When completed:

Tests instructions:

gkwan-ibm commented 2 years ago

session guide passed

[INFO] Getting: https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/2022-09-12_1100/openliberty-all-22.0.0.10-cl221020220912-1100.zip
[INFO] To: /Users/gkwan/.m2/repository/wlp-cache/openliberty-all-22.0.0.10-cl221020220912-1100.zip

and

gilberts-mbp:start gkwan$ kubectl exec -it cart-deployment-5997cdc5f8-l4fl9 -- cat /logs/messages.log
********************************************************************************
product = Open Liberty 22.0.0.10 (wlp-1.0.69.cl221020220912-1100)
wlp.install.dir = /opt/ol/wlp/
server.output.dir = /opt/ol/wlp/output/defaultServer/
java.home = /opt/java/openjdk
java.version = 11.0.16.1
java.runtime = IBM Semeru Runtime Open Edition (11.0.16.1+1)
os = Linux (5.10.104-linuxkit; amd64) (en_US)
process = 1@10.1.1.11
Classpath = /opt/ol/wlp/bin/tools/ws-server.jar:/opt/ol/wlp/bin/tools/ws-javaagent.jar
Java Library path = /opt/java/openjdk/lib/default:/opt/java/openjdk/lib:/usr/lib64:/usr/lib
********************************************************************************
[9/13/22, 20:34:34:969 UTC] 00000001 com.ibm.ws.kernel.launch.internal.Framework
gkwan-ibm commented 2 years ago

mp-reactive-message guide passed

gilberts-mbp:start gkwan$ docker logs system

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)
[AUDIT   ] CWWKE0001I: The server defaultServer has been launched.

and

gilberts-mbp:start gkwan$ docker logs inventory

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)
[AUDIT   ] CWWKE0001I: The server defaultServer has been launched.
shin19991207 commented 2 years ago

guide-microprofile-jwt

Output from mvn liberty:run from frontend directory:

[INFO] Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.15+10 (en_US)

Output from mvn liberty:run from system directory:

[INFO] Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.15+10 (en_US)

Ran guide end-to-end without issue.

gkwan-ibm commented 2 years ago

jpa guide passed

[INFO] Running integration tests...
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running it.io.openliberty.guides.event.EventEntityIT
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.216 s - in it.io.openliberty.guides.event.EventEntityIT
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] Integration tests finished.
[INFO] 

and

[INFO] Listening for transport dt_socket at address: 56579
[INFO] Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.12+7 (en_CA)
[INFO] [AUDIT   ] CWWKE0001I: The server defaultServer has been launched.
gkwan-ibm commented 2 years ago

social-media-login guide passed

[INFO] CWWKM2102I: Using serverDirectory : /Users/gkwan/tasks/CNAI/guides/testsite/social-media-login/prod/guide-social-media-login/start/target/liberty/wlp/usr/servers/defaultServer.
[INFO] Getting: https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/2022-09-12_1100/openliberty-all-22.0.0.10-cl221020220912-1100.zip
[INFO] To: /Users/gkwan/.m2/repository/wlp-cache/openliberty-all-22.0.0.10-cl221020220912-1100.zip
[INFO] Not modified - so not downloaded
[INFO] CWWKM2143I: Server defaultServer does not exist. Now creating...
[INFO] CWWKM2001I: Invoke command is [/Users/gkwan/tasks/CNAI/guides/testsite/social-media-login/prod/guide-social-media-login/start/target/liberty/wlp/bin/server, create, defaultServer].
gkwan-ibm commented 2 years ago

CargoTracker passed

[INFO] CWWKM2001I: Invoke command is [/Users/gkwan/tasks/CNAI/guides/otherrepos/CargoTracker/eclipse-ee4/liberty-experimental/cargotracker/target/liberty/wlp/bin/server, debug, defaultServer].
[INFO] 
[INFO] Listening for transport dt_socket at address: 7777
[INFO] Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.12+7 (en_CA)
[INFO] [AUDIT   ] CWWKE0001I: The server defaultServer has been launched.
[INFO] CWWKM2010I: Searching for CWWKF0011I: in /Users/gkwan/tasks/CNAI/guides/otherrepos/CargoTracker/eclipse-ee4/liberty-experimental/cargotracker/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log. This search will timeout after 90 seconds.
[INFO] [AUDIT   ] CWWKZ0058I: Monitoring dropins for applications.
shin19991207 commented 2 years ago

guide-microprofile-graphql

Output from docker build -t system:1.0-java8-SNAPSHOT --build-arg JAVA_VERSION=java8 system/.:

 => [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                                                         0.1s

Output from docker build -t system:1.0-java11-SNAPSHOT --build-arg JAVA_VERSION=java11 system/.:

 => [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                                                         0.0s

Output from docker build -t graphql:1.0-SNAPSHOT graphql/.:

 => CACHED [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                                                  0.0s

Output from docker logs system-java11:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Output from docker logs system-java8:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Output from docker logs graphql:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Ran guide end-to-end, no issue.

shin19991207 commented 2 years ago

guide-mongodb-intro

Output from mvn liberty:run:

[INFO] Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.15+10 (en_US)

Ran guide end-to-end, no issue.

shin19991207 commented 2 years ago

draft-guide-graphql-client

Output from docker build -t system:1.0-java8-SNAPSHOT --build-arg JAVA_VERSION=java8 system/.:

 => CACHED [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                                                        0.0s

Output from docker build -t system:1.0-java11-SNAPSHOT --build-arg JAVA_VERSION=java11 system/.:

 => [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                                                               0.0s

Output from docker build -t graphql:1.0-SNAPSHOT graphql/.:

 => CACHED [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                                                        0.0s

Output from docker build -t query:1.0-SNAPSHOT query/.:

 => CACHED [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                                                        0.0s

Output from docker logs query:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Output from docker logs graphql:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Output from docker logs system-java8:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Output from docker logs system-java11:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

mvn verify gives error:

com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"Head \"https://registry-1.docker.io/v2/testcontainers/ryuk/manifests/0.3.3\": unauthorized: incorrect username or password"}

Update: the mvn verify issue was solved.

gkwan-ibm commented 2 years ago

draft-guide-graphql-client passed

[main] INFO 🐳 [graphql:1.0-SNAPSHOT] - Container graphql:1.0-SNAPSHOT is starting: 8dbf4aad465768bb56244703feb887e05ab406d445bae08c88aae4f4974890c6
[docker-java-stream--931224826] INFO it.io.openliberty.guides.query.QueryResourceIT - STDOUT: 
[docker-java-stream--931224826] INFO it.io.openliberty.guides.query.QueryResourceIT - STDOUT: Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

and

TEST: Testing get system load /systemLoad/system-java8
TEST: Testing editing note /mutation/system/note
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.262 s - in it.io.openliberty.guides.query.QueryResourceIT
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ guide-graphql-client-query ---
shin19991207 commented 2 years ago

guide-kubernetes-microprofile-config

Output from docker build -t system:1.0-SNAPSHOT system/.:

 => [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                        1.4s 

Output from docker build -t inventory:1.0-SNAPSHOT inventory/.:

 => CACHED [1/4] FROM docker.io/guidesbot/olguides:cl221020220912-1100                 0.0s 

Output from kubectl logs <inventory container id>:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Output from kubectl logs <system container id>:

Launching defaultServer (Open Liberty 22.0.0.10/wlp-1.0.69.cl221020220912-1100) on Eclipse OpenJ9 VM, version 11.0.16.1+1 (en_US)

Ran guide end-to-end, no issue.

gkwan-ibm commented 2 years ago

close