JDK-8367043 : Test tools/javac/launcher/ModuleSourceLauncherTests.java timed out after completion
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: tbd
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-09-08
  • Updated: 2025-11-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
----------System.err:(15/971)----------
STARTED    ModuleSourceLauncherTests::testHelloModularWorld 'testHelloModularWorld(Path)'
SUCCESSFUL ModuleSourceLauncherTests::testHelloModularWorld 'testHelloModularWorld(Path)' [21879ms]
STARTED    ModuleSourceLauncherTests::testTwoAndHalfPackages 'testTwoAndHalfPackages(Path)'
SUCCESSFUL ModuleSourceLauncherTests::testTwoAndHalfPackages 'testTwoAndHalfPackages(Path)' [1576ms]
STARTED    ModuleSourceLauncherTests::testServiceLoading 'testServiceLoading(Path)'
SUCCESSFUL ModuleSourceLauncherTests::testServiceLoading 'testServiceLoading(Path)' [5369ms]
STARTED    ModuleSourceLauncherTests::testUserModuleOnModulePath 'testUserModuleOnModulePath(Path)'
SUCCESSFUL ModuleSourceLauncherTests::testUserModuleOnModulePath 'testUserModuleOnModulePath(Path)' [6410ms]

[ JUnit Containers: found 4, started 4, succeeded 4, failed 0, aborted 0, skipped 0]
[ JUnit Tests: found 4, started 4, succeeded 4, failed 0, aborted 0, skipped 0]


JavaTest Message: Test complete.

result: Error. "junit" action timed out with a timeout of 120 seconds on agent 15

The stacktrace shows:

   {
            "tid": "536",
            "time": "2025-09-08T01:15:56.103873367Z",
            "name": "Thread-236",
            "state": "WAITING",
            "stack": [
              "java.base\/java.lang.Object.wait0(Native Method)",
              "java.base\/java.lang.Object.wait(Object.java:391)",
              "java.base\/java.lang.Object.wait(Object.java:353)",
              "jdk.jshell\/jdk.internal.jshell.tool.StopDetectingInputStream.waitInputNeeded(StopDetectingInputStream.java:177)",
              "jdk.jshell\/jdk.internal.jshell.tool.StopDetectingInputStream.lambda$setInputStream$0(StopDetectingInputStream.java:63)",
              "java.base\/java.lang.Thread.run(Thread.java:1474)"
            ],
Comments
As ModuleSourceLauncherTests creates files on the default file system and spawns JVMs via the `java` launcher, there might be IO related issues?
22-09-2025

For comparsion, here's an exemplary run on an idle machine. STARTED ModuleSourceLauncherTests::testHelloModularWorld 'testHelloModularWorld(Path)' SUCCESSFUL ModuleSourceLauncherTests::testHelloModularWorld 'testHelloModularWorld(Path)' [364ms] STARTED ModuleSourceLauncherTests::testTwoAndHalfPackages 'testTwoAndHalfPackages(Path)' SUCCESSFUL ModuleSourceLauncherTests::testTwoAndHalfPackages 'testTwoAndHalfPackages(Path)' [112ms] STARTED ModuleSourceLauncherTests::testServiceLoading 'testServiceLoading(Path)' SUCCESSFUL ModuleSourceLauncherTests::testServiceLoading 'testServiceLoading(Path)' [169ms] STARTED ModuleSourceLauncherTests::testUserModuleOnModulePath 'testUserModuleOnModulePath(Path)' SUCCESSFUL ModuleSourceLauncherTests::testUserModuleOnModulePath 'testUserModuleOnModulePath(Path)' [512ms] [ JUnit Containers: found 4, started 4, succeeded 4, failed 0, aborted 0, skipped 0] [ JUnit Tests: found 4, started 4, succeeded 4, failed 0, aborted 0, skipped 0] Duration increase factors compared to a local run: testHelloModularWorld 60x testTwoAndHalfPackages 14x testServiceLoading 31x testUserModuleOnModulePath 12x On average: 35234/1157 30x
22-09-2025

I will not bump timeout on this test as the junit printout shows a total timeout of all junit tests together taking /much/ less time than 120 seconds
08-09-2025

It is possible we need to extend the timeout after JDK-8260555
08-09-2025