[TESTBUG] runtime/containers/docker/TestCPUAwareness.java failed in docker not supporting --cpus
David Holmes
david.holmes at oracle.com
Tue Jan 22 21:24:24 UTC 2019
cc'ing Bob as our containers expert ...
On 23/01/2019 1:10 am, Ao Qi wrote:
> Hi,
>
> --cpus is available in Docker 1.13 and higher [1], so
> runtime/containers/docker/TestCPUAwareness.java failed in docker which
> does not support --cpus.
>
> Webrev: http://cr.openjdk.java.net/~aoqi/docker/webrev.00/
>
> This patch skips the test if --cpus is not supported. I tested
> runtime/containers/docker/TestCPUAwareness.java on a Fedora 25 (Docker
> version 1.12.6, build ae7d637/1.12.6, not supporting --cpus) and
> Ubuntu 16.04 (Docker version 17.03.2-ce, build f5ec1e2, supporting
> --cpus)
The patch causes the test to pass if launching Docker fails for any
reason so that is not good.
> I am not sure if this is a testbug, so I did not file it on JBS. In
> fact, I am not quite sure what kind of issue can be filed on JBS. Is
> there any guidance document?
Any/all issues can be filed on JBS. You don't need to pre-classify as a
testbug, simple create an issue that a test is failing under specific
conditions. Whomever works on the bug will then determine whether it is
a testbug or product issue or something else. (We don't seem to have any
docs on using JBS ...)
In this case I'm not sure whether we require a docker version that
supports --cpus, and the test should be skipped otherwise. Though
ideally this would involve an explicit version check so we don't just
pass if the docker process fails.
Thanks,
David
>
> Cheers,
> Ao Qi
>
> [1] https://docs.docker.com/config/containers/resource_constraints/#cpu
>
More information about the hotspot-runtime-dev
mailing list