JDK-8221710 : [TESTBUG] more configurable parameters for docker testing
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-03-29
  • Updated: 2024-06-04
  • Resolved: 2019-04-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.
JDK 11 JDK 13 JDK 8 Other
11.0.10-oracleFixed 13 b16Fixed 8u281Fixed openjdk8u282Fixed
Related Reports
Relates :  
Description
1. Docker command: jdk.test.docker.command
    On some systems docker is installed in locations other than /bin or /usr/bin. However, JTreg harness sets PATH to these locations, hence other locations such as /usr/local/bin/ is not visible/executable within JTReg tests. A good practice in this case is to provide the full path to the executable for the test.

2. Retaining image after test: jdk.test.docker.retain.image
    This is very useful for diagnostic purposes, for trouble shooting. By default, docker images created by the tests are removed at the end of the test. 
    Specifying this option to "true" provides an ability to inspect the image, run the image, etc.

3. Overriding JDK under test just for docker tests: jdk.test.docker.jdk.under.test
    This feature is useful when developing tests on non-Linux platform. In such cases, the default JDK under test is non-Linux, hence will not run inside a docker container. This property allows user to point the docker tests to JDK-under-test built for Linux.

Also, now that jtreg.SkippedException is available, using it.
Comments
Fix Request (OpenJDK 8u): Please approve backporting this to OpenJDK 8u. This is tooling for more flexible docker testing. It depends on JDK-8221342 and JDK-8224502 which both are in 8u282 and it enables cleaner backports the likes of JDK-8242480. The JDK 11 patch does not apply cleanly but issues were trivially resolved. The 8u patch got reviewed by Paul Hohensee. Risk should be minimal as it's a test-only patch. RFR: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012857.html webrev: https://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8221710/jdk8/02/
27-10-2020

Fix Request (OpenJDK 11u): Please approve backporting this test infrastructure change. The JDK 13 patch applies as-is since JDK-8208655 has been backported. This patch is a pre-requisite for JDK-8224165 in turn helpful to verify JDK-8220672 works as expected. Test only change, ran docker tests on Linux x86_64 to verify it works.
08-08-2019

URL: http://hg.openjdk.java.net/jdk/jdk/rev/b354ffb03ae4 User: mseledtsov Date: 2019-04-04 19:30:12 +0000
04-04-2019

http://cr.openjdk.java.net/~mseledtsov/8221710.00/ Testing: Ran docker tests.
29-03-2019