[jdk11u-dev] RFR: 8342988: GHA: Build JTReg in single step
Antonio Vieiro
duke at openjdk.org
Fri Feb 14 18:57:10 UTC 2025
Backport of [JDK-8349829](https://bugs.openjdk.org/browse/JDK-8349829) from 17u to build jtreg and cache it for subsequent builds. Low risk (only GHA actions affected).
The backport is not clean as [JDK-8338286](https://bugs.openjdk.org/browse/JDK-8338286) has not been backported to JDK-11, on purpose. Also `JAVA_HOME_11_X64` is being used now to build `jtreg`.
As expected jtreg is now being built & cached in subsequent builds:
2025-02-14T17:08:58.4041646Z Cache hit for: jtreg-7.3.1+1
2025-02-14T17:08:58.6790456Z Received 9265658 of 9265658 (100.0%), 42.7 MBs/sec
2025-02-14T17:08:58.6791682Z Cache Size: ~9 MB (9265658 B)
2025-02-14T17:08:58.6819135Z [command]/usr/bin/tar -xf /home/runner/work/_temp/fe85d627-93f0-40be-9ba4-b41aadc9f6ed/cache.tzst -P -C /home/runner/work/jdk11u-dev/jdk11u-dev --use-compress-program unzstd
2025-02-14T17:08:58.7115863Z Cache restored successfully
2025-02-14T17:08:58.7298813Z Cache restored from key: jtreg-7.3.1+1
All tests pass but I detected an intermittent time- out in serviceability agent in macos (possibly because of [JDK-8260389](https://bugs.openjdk.org/browse/JDK-8260389)? despite JDK-8294316 having been already integrated. This is under investigation).
2025-02-14T17:48:43.0846500Z --------------------------------------------------
2025-02-14T17:48:46.6648080Z TEST: serviceability/sa/ClhsdbFindPC.java#id0
2025-02-14T17:48:46.6661380Z build: 0.886 seconds
2025-02-14T17:48:46.6662400Z compile: 0.886 seconds
2025-02-14T17:48:46.6663300Z main: 34.198 seconds
2025-02-14T17:48:46.6664240Z TEST RESULT: Passed. Execution successful
2025-02-14T17:48:46.6665470Z --------------------------------------------------
2025-02-14T17:49:24.4350100Z TEST: serviceability/sa/ClhsdbFindPC.java#id2
2025-02-14T17:49:24.4351780Z build: 0.653 seconds
2025-02-14T17:49:24.4352850Z compile: 0.653 seconds
2025-02-14T17:49:24.4353430Z main: 31.826 seconds
2025-02-14T17:49:24.4353820Z TEST RESULT: Passed. Execution successful
2025-02-14T17:49:24.4354390Z --------------------------------------------------
2025-02-14T17:50:36.6580860Z TEST: serviceability/sa/ClhsdbFindPC.java#id1
2025-02-14T17:50:36.6582200Z TEST JDK: /Users/runner/work/jdk11u-dev/jdk11u-dev/bundles/jdk/jdk-11.0.27/fastdebug
...
2025-02-14T17:50:36.6836040Z TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test ERROR java.io.IOException: App waiting timeout
2025-02-14T17:50:36.6837390Z --------------------------------------------------
2025-02-14T17:51:15.1063160Z TEST: serviceability/sa/ClhsdbFindPC.java#id3
2025-02-14T17:51:15.1461480Z build: 2.91 seconds
2025-02-14T17:51:15.1520520Z compile: 2.909 seconds
2025-02-14T17:51:15.1535170Z main: 102.784 seconds
2025-02-14T17:51:15.1536860Z TEST RESULT: Passed. Execution successful
-------------
Commit messages:
- Backport 087e8a29f2aead8b31a71b144523810c8538388c
Changes: https://git.openjdk.org/jdk11u-dev/pull/2996/files
Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2996&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8342988
Stats: 83 lines in 3 files changed: 81 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk11u-dev/pull/2996.diff
Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2996/head:pull/2996
PR: https://git.openjdk.org/jdk11u-dev/pull/2996
More information about the jdk-updates-dev
mailing list