JDK-8328174 : tools/jpackage/share/IconTest.java timed out
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 23
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2024-03-14
  • Updated: 2024-04-13
  • Resolved: 2024-04-12
Related Reports
Relates :  
Relates :  
Description
The following test timed out in the JDK23 CI:

tools/jpackage/share/IconTest.java

Here's snippets from the log file:

#section:main
----------messages:(9/612)----------
command: main -Xmx512m --add-opens jdk.jpackage/jdk.jpackage.internal=ALL-UNNAMED jdk.jpackage.test.Main --jpt-run=IconTest
reason: User specified action: run main/othervm/timeout=540 -Xmx512m --add-opens jdk.jpackage/jdk.jpackage.internal=ALL-UNNAMED jdk.jpackage.test.Main --jpt-run=IconTest 
started: Thu Mar 14 06:36:50 GMT 2024
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jpackage --add-exports jdk.jpackage/jdk.jpackage.internal=ALL-UNNAMED
Timeout information:
--- Timeout information end.
finished: Thu Mar 14 07:26:49 GMT 2024
elapsed time (seconds): 2998.796
----------configuration:(5/187)----------
Boot Layer
  add modules: jdk.jpackage                       
  add exports: jdk.jpackage/jdk.jpackage.internal ALL-UNNAMED
  add opens:   jdk.jpackage/jdk.jpackage.internal ALL-UNNAMED

----------System.out:(1839/173127)----------
[06:36:50.670] Parsing [--jpt-run=IconTest]...
[06:36:50.717] IconTest.test -> [public void IconTest.test() throws java.io.IOException]
[06:36:50.729] Create: IconTest(AppImage, DefaultIcon).test
[06:36:50.729] Create: IconTest(AppImage, CustomIcon).test

<snip>

[06:58:21.046] TRACE: assertEquals(0): Check command [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+14-1070/macosx-x64.jdk/jdk-23.jdk/Contents/Home/bin/jpackage --input ./test.f79b089b/input --dest ./test.f79b089b/output --name IconTest --type dmg --main-jar hello.jar --main-class Hello --icon /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+14-1070/src.full/open/test/jdk/tools/jpackage/resources/icon2.icns --resource-dir ./test.f79b089b/resources.0 --runtime-image ./test.f79b089b/fake_runtime -J-Djlink.debug=true --verbose](21) exited with 0 code
[06:58:21.047] TRACE: assertTrue(): Check [./test.f79b089b/output/IconTest-1.0.dmg] path exists
[06:58:21.048] TRACE: assertTrue(): Check [./test.f79b089b/output/IconTest-1.0.dmg] is a file
[06:58:21.048] TRACE: assertNotNull([06:56:03.030] Using custom package resource [icon] (loaded from file /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+14-1070/src.full/open/test/jdk/tools/jpackage/resources/icon2.icns).): Check output contains [Using custom package resource [icon] (loaded from file] string
Timeout signalled after 2160 seconds
[07:16:00.434] TRACE: Exploded [./test.f79b089b/output/IconTest-1.0.dmg] in [/Volumes/IconTest/.background] directory
[07:16:00.450] TRACE: exec: Execute [cp -r /Volumes/IconTest/.background ./test.f79b089b/unpacked-dmg/Applications](4); discard I/O...
[07:16:00.458] TRACE: exec: Done. Exit code: 0

<snip>

[07:18:10.201] TRACE: assertTrue(): Check [./test.dd895b94/output/IconTest-1.0.dmg] path exists
[07:18:10.201] TRACE: assertTrue(): Check [./test.dd895b94/output/IconTest-1.0.dmg] is a file
[07:18:10.202] TRACE: assertNotNull([07:16:02.177] Using default package resource JavaApp.icns [icon] (add IconTest.icns to the resource-dir to customize).): Check output contains [Using default package resource JavaApp.icns [icon] (add IconTest.icns to the resource-dir to customize)] string
----------System.err:(0/0)----------
----------rerun:(40/7390)*----------

<snip>

result: Error. Program `/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+14-1070/macosx-x64.jdk/jdk-23.jdk/Contents/Home/bin/java' timed out (timeout set to 2160000ms, elapsed time including timeout handling was 2998762ms).

Comments
top info for the timed out test: Processes: 468 total, 3 running, 465 sleeping, 1723 threads 2024/03/14 07:26:50 Load Avg: 2.06, 1.60, 1.58 CPU usage: 27.68% user, 12.80% sys, 59.50% idle SharedLibs: 2306M resident, 273M data, 830M linkedit. MemRegions: 91361 total, 17G resident, 11M private, 475M shared. PhysMem: 29G used (3001M wired, 5268M compressor), 2604M unused. VM: 15T vsize, 3538M framework vsize, 420911796(0) swapins, 425261107(0) swapouts. Networks: packets: 799648994/1590G in, 525434652/1200G out. Disks: 76640908/2636G read, 310979271/9166G written. The load average is fairly low for a machine running tests. I logged into the machine just now: $ uptime 14:24 up 21 days, 16:25, 3 users, load averages: 8.90 11.49 10.68 21 days of uptime is not unreasonable. I usually reboot my MacMini after 30 days. I don't see anything obvious to explain why this test timed out nor why the task timed out.
14-03-2024