RFR: 8349099: java/awt/Headless/HeadlessMalfunctionTest.java fails on CI with Compilation error [v4]

Karm Michal Babacek duke at openjdk.org
Fri Mar 7 18:08:52 UTC 2025


On Fri, 7 Mar 2025 18:03:46 GMT, Phil Race <prr at openjdk.org> wrote:

>> I ran your tests, and now windows and mac pass, but Linux now fails 
>> test result: Error. can't find jdk.test.lib.helpers.ClassFileInstaller in test directory or libraries
>
>> I ran your tests, and now windows and mac pass, but Linux now fails test result: Error. can't find jdk.test.lib.helpers.ClassFileInstaller in test directory or libraries
> 
> Oh. I see you just updated to fix this a few hours ago. I'll re-run.

@prrace @jerboaa 

Given the different code path MacOS and Windows take to initialize the affected isHeadless part, I propose *excluding* Windows and MacOS from the test.

Mere relaxing the test, parsing only for "isHeadless" string in the error message, makes little sense, because such test passes both on Windows and MacOS **regardless** of the JDK-8336382 https://github.com/openjdk/jdk/pull/20169 patch.

The current state of the PR passes `test/jdk/java/awt/Headless` dir on these platforms:

* :green_circle: Windows amd64, 14 PASS 1 SKIPPED (this one)  [REPORT](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=w2k19/artifact/jdk/jtreg_results/jdk/JTreport/html/index.html), [LOGS](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=w2k19/consoleText)
* :green_circle: MacOS aarch64: 14 PASS 1 SKIPPED (this one) [REPORT](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=macos_aarch64/artifact/jdk/jtreg_results/jdk/JTreport/html/index.html), [LOGS](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=macos_aarch64/consoleText)
* :green_circle: Linux amd64: 15 PASS [REPORT](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=el8/artifact/jdk/jtreg_results/jdk/JTreport/html/index.html), [LOGS](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=el8/consoleText)
* :green_circle: Linux aarch64: 15 PASS [REPORT](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=el8_aarch64/artifact/jdk/jtreg_results/jdk/JTreport/html/index.html), [LOGS](https://ci.modcluster.io/job/mandrel-jdk-build-matrix/19/LABEL=el8_aarch64/consoleText)

@prrace I will keep using this CI I established for my future client libs contributions, to aviod platform surprises...

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23852#issuecomment-2707082359


More information about the client-libs-dev mailing list