ci.maven icon indicating copy to clipboard operation
ci.maven copied to clipboard

Modify dev-it integration tests after server start issue addressed

Open turkeylurkey opened this issue 3 years ago • 2 comments

The following issue tracks an unexpected server startup hang while using dev mode. https://github.com/OpenLiberty/open-liberty/issues/20749

To work around this issue we added a trace string to dev-it/resources/basic-dev-project/src/main/liberty/config/bootstrap.properties. Once the server issue is addressed we should remove this trace string and remove the properties file if possible.

turkeylurkey avatar Apr 13 '22 15:04 turkeylurkey

Reproduced this issue using version 3.5.

[INFO] --- liberty-maven-plugin:3.5:dev (default-cli) @ dev-sample-proj ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:22.0.0.3:zip.
[INFO] CWWKM2102I: Using installDirectory : /Users/paulg/WAS/devExperience/featureGeneration/tmp/basic-dev-project/target/liberty/wlp.
[INFO] CWWKM2102I: Using serverName : defaultServer.
[INFO] CWWKM2102I: Using serverDirectory : /Users/paulg/WAS/devExperience/featureGeneration/tmp/basic-dev-project/target/liberty/wlp/usr/servers/defaultServer.
...

Add Java file, add dependency to pom.xml, add feature to server.xml, restart server.

...[restarting]
[INFO] CWWKM2001I: Invoke command is [/Users/paulg/WAS/devExperience/featureGeneration/tmp/basic-dev-project/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.3/wlp-1.0.62.cl220320220302-1100) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_231-b11 24_Oct_2019_15_52 Mac OS X x64(SR6) (en_CA)
[INFO] [AUDIT   ] CWWKE0001I: The server defaultServer has been launched.
[INFO] [AUDIT   ] CWWKG0028A: Processing included configuration resource: /Users/paulg/WAS/devExperience/featureGeneration/tmp/basic-dev-project/target/liberty/wlp/usr/servers/defaultServer/extraFeatures.xml
[INFO] CWWKM2010I: Searching for CWWKF0011I: in /Users/paulg/WAS/devExperience/featureGeneration/tmp/basic-dev-project/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log. This search will timeout after 120 seconds.
[INFO] CWWKM2011E: Timed out searching for CWWKF0011I: in /Users/paulg/WAS/devExperience/featureGeneration/tmp/basic-dev-project/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log.

turkeylurkey avatar Apr 18 '22 21:04 turkeylurkey

Need to investigate why Liberty Maven plugin server start code cannot see messages from server.

Simplified reproduction steps: Add Java file, observe compilation failure, restart server.

Once this issue is addressed we can remove the @Ignore annotation from resolveDependencyTest in DevTest.java.

turkeylurkey avatar Apr 22 '22 19:04 turkeylurkey