RFR: 7903058: Add link to pre-built jtreg binaries

Jonathan Gibbons jonathan.gibbons at oracle.com
Sat Jan 8 03:47:06 UTC 2022


Michał,

I do not know the current state of the Adopt OpenJDK builds.

I suggest you either build jtreg yourself, using the instructions in the 
repo, or possibly check out the builds available at 
https://builds.shipilev.net/jtreg

-- Jon

On 1/2/22 3:03 AM, Michał Piotrowski wrote:
> On Thu, 11 Nov 2021 15:33:43 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
>
>> Preview here:
>> https://github.com/jerboaa/jtreg/tree/add-links-to-builds
> I think I will jump right here - my issue is somehow related to this, and I think sharing it here will be a valueable thing. Depending on how it goes further, I can post a new thread on the specific newsgroup, but wanted to start here first.
>
> I'm a newcomer to the whole OpenJDK-family, and at the moment I'm trying to actually compile OpenJDK using WSL. I know the docs are saying that it's not fully supported when it comes to testing, although I've deicded to give it a try.
>
> I've tried building the latest OpenJDK using Java 17, but the problem I kept getting with WSL (running Ubuntu, and default JTreg installation that came with it) was usages of deprecated API in the Applets somewhere deep down inside the tests. I've decided not to go that deep, and therefore I've thought about using more up-to-date version. As I've went through PRs in this project, I found this PR, and decided to skip compiling the whole thing manually, and use the binary version that you've provided here - https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/ using the latest avaialable version **6.1+1**.
>
> Unfotunately, it does not work, as when I run the whole pipeline (configure/make), and then tests, but got:
>
>
> Running test 'jtreg:test/hotspot/jtreg:tier1'
> Error: The testsuite at /mnt/e/Projekty/open-jdk/test/hotspot/jtreg requires jtreg version 6.1 b1 or higher and this is jtreg version 6-dev+1.
> Finished running test 'jtreg:test/hotspot/jtreg:tier1'
> Test report is stored in build/linux-x86_64-server-release/test-results/jtreg_test_hotspot_jtreg_tier1
>
> Running test 'jtreg:test/jdk:tier1'
> Error: The testsuite at /mnt/e/Projekty/open-jdk/test/jdk requires jtreg version 6.1 b1 or higher and this is jtreg version 6-dev+1.
> Finished running test 'jtreg:test/jdk:tier1'
> Test report is stored in build/linux-x86_64-server-release/test-results/jtreg_test_jdk_tier1
>
> Running test 'jtreg:test/langtools:tier1'
> Error: The testsuite at /mnt/e/Projekty/open-jdk/test/langtools requires jtreg version 6.1 b1 or higher and this is jtreg version 6-dev+1.
> Finished running test 'jtreg:test/langtools:tier1'
> Test report is stored in build/linux-x86_64-server-release/test-results/jtreg_test_langtools_tier1
>
> Running test 'jtreg:test/jaxp:tier1'
> Error: The testsuite at /mnt/e/Projekty/open-jdk/test/jaxp requires jtreg version 6.1 b1 or higher and this is jtreg version 6-dev+1.
> Finished running test 'jtreg:test/jaxp:tier1'
> Test report is stored in build/linux-x86_64-server-release/test-results/jtreg_test_jaxp_tier1
>
> Running test 'jtreg:test/lib-test:tier1'
> Error: The testsuite at /mnt/e/Projekty/open-jdk/test/lib-test requires jtreg version 6.1 b1 or higher and this is jtreg version 6-dev+1.
> Finished running test 'jtreg:test/lib-test:tier1'
> Test report is stored in build/linux-x86_64-server-release/test-results/jtreg_test_lib_test_tier1
>
>
> which is strange, as my version is specifically **6.1+1**. Therefore I've tried with the direct version **6.1**, and this time it also did not work (the same error message as above). I don't know whether it's of any meaning here, but wanted to share my findings - maybe that will be of some use, that the binaries linked here are not working or maybe I'm just doing something wrong.
>
> -------------
>
> PR: https://git.openjdk.java.net/jtreg/pull/41


More information about the jtreg-dev mailing list