RFR: 8361950: Update to use jtreg 8
Hao Sun
haosun at openjdk.org
Wed Jul 30 06:04:55 UTC 2025
On Fri, 11 Jul 2025 09:05:40 GMT, Christian Stein <cstein at openjdk.org> wrote:
> Please review the change to update to using jtreg 8.
>
> The primary change is to the `jib-profiles.js` file, which specifies the version of jtreg to use, for those systems that rely on this file. In addition, the requiredVersion has been updated in the various `TEST.ROOT` files.
Hi, I encountered two jtreg failures with this new version `8` on both AArch64 and x86_64 platforms.
Note that these two jtreg cases can pass with jtreg `7.5.2+1` version.
### some details
JDK source: master
jtreg version: `8+2` version
JDK build: `fastdebug`
OS: `ubuntu 24.04`
two jtreg test cases
test/jdk/java/security/SignedJar/spi-calendar-provider/TestSPISigned.java
test/hotspot/jtreg/vmTestbase/nsk/jvmti/ResourceExhausted/resexhausted003/TestDescription.java
how to reproduce:
make test TEST="test/jdk/java/security/SignedJar/spi-calendar-provider/TestSPISigned.java"
make test TEST=test/hotspot/jtreg/vmTestbase/nsk/jvmti/ResourceExhausted/resexhausted003/TestDescription.java
### the snippet of error log for case `TestSPISigned.java` on AArch64
STDERR:
java.nio.file.NoSuchFileException: /tmp/build-fastdebug/test-support/jtreg_test_jdk_java_security_SignedJar_spi_calendar_provider_TestSPISigned_java/classes/0/java/security/SignedJar/spi-calendar-provider/TestSPISigned.d/../provider/.
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:57)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:161)
at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.base/java.nio.file.Files.readAttributes(Files.java:1702)
at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:216)
at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:268)
at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:306)
at java.base/java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:69)
at java.base/java.nio.file.Files.find(Files.java:3649)
at jdk.test.lib.util.JarUtils.findAllRegularFiles(JarUtils.java:425)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:75)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:106)
at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:115)
at TestSPISigned.main(TestSPISigned.java:84)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335) at java.base/java.lang.Thread.run(Thread.java:1474)
JavaTest Message: Test threw exception: java.nio.file.NoSuchFileException
JavaTest Message: shutting down test
TEST RESULT: Failed. Execution failed: `main' threw exception: java.nio.file.NoSuchFileException: /tmp/build-fastdebug/test-support/jtreg_test_jdk_java_security_SignedJar_spi_calendar_provider_TestSPISigned_java/classes/0/java/security/SignedJar/spi-cal
endar-provider/TestSPISigned.d/../provider/.
--------------------------------------------------
Test results: failed: 1
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26261#issuecomment-3134956713
More information about the core-libs-dev
mailing list