RFR: 8360533: ContainerRuntimeVersionTestUtils fromVersionString fails with some docker versions [v2]

Matthias Baesken mbaesken at openjdk.org
Fri Jun 27 05:36:55 UTC 2025


> On Linux ppc64le RHEL 8, we have such a docker version :
> 
> docker --version
> Docker version v25.0.3, build 4debf41
> 
> 
> Unfortunately, the leading 'v' is not expected in ContainerRuntimeVersionTestUtils fromVersionString so we get an exception.
> 
> Probably we should simply skip the leading 'v' .
> Also the appended build info has to be considered.
> 
> Example failure
> 
> TEST: jdk/internal/platform/docker/TestDockerMemoryMetricsSubgroup.java
> TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed to parse container runtime version: Docker version v25.0.3, build 4debf41

Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:

  Update test/lib/jdk/test/lib/containers/docker/ContainerRuntimeVersionTestUtils.java
  
  Co-authored-by: Severin Gehwolf <jerboaa at gmail.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25996/files
  - new: https://git.openjdk.org/jdk/pull/25996/files/a1d49a48..b1ee1387

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25996&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25996&range=00-01

  Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/25996.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25996/head:pull/25996

PR: https://git.openjdk.org/jdk/pull/25996


More information about the hotspot-runtime-dev mailing list