RFR: 8333446: Add tests for hierarchical container support [v6]
Matthias Baesken
mbaesken at openjdk.org
Fri Aug 30 11:08:23 UTC 2024
On Wed, 28 Aug 2024 16:13:07 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
>> Please review this PR which adds test support for systemd slices so that bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be verified. The added test, `SystemdMemoryAwarenessTest` currently passes on cgroups v1 and fails on cgroups v2 due to the way how [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) was implemented when JDK 13 was a thing. Therefore immediately problem-listed. It should get unlisted once [JDK-8322420](https://bugs.openjdk.org/browse/JDK-8322420) merges.
>>
>> I'm adding those tests in order to not regress another time.
>>
>> Testing:
>> - [x] Container tests on Linux x86_64 cgroups v2 and Linux x86_64 cgroups v1.
>> - [x] New systemd test on cg v1 (passes). Fails on cg v2 (due to JDK-8322420)
>> - [x] GHA
>
> Severin Gehwolf has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 10 additional commits since the last revision:
>
> - Add root check for SystemdMemoryAwarenessTest.java
> - Merge branch 'master' into jdk-8333446-systemd-slice-tests
> - Merge branch 'master' into jdk-8333446-systemd-slice-tests
> - Merge branch 'master' into jdk-8333446-systemd-slice-tests
> - Add Whitebox check for host cpu
> - Merge branch 'master' into jdk-8333446-systemd-slice-tests
> - Merge branch 'master' into jdk-8333446-systemd-slice-tests
> - Merge branch 'master' into jdk-8333446-systemd-slice-tests
> - Fix comments
> - 8333446: Add tests for hierarchical container support
Looking through the coding it looks more or less okay to me; but if you really need to run it under user 'root' I think we will not have so much use for this in our test environments because we use other test users.
Not saying that this is a very bad thing, maybe it is just the way it is, that 'root' is needed ?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19530#issuecomment-2320865740
More information about the core-libs-dev
mailing list