-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test for systemd cgroupdriver memory setting #36172
Conversation
No systemd in CI 🛑 |
The current idea is to have this test, but add a |
f4fa6c9
to
854779a
Compare
OK, this is good to go for current CI. Still need to check if the test works in an environment with systemd.
|
And the older failure message looked like:
|
Same unrelated failure on ppc and experimenal: 04:02:02 ---------------------------------------------------------------------- I am seeing it for other PRs as well, guess some recent swarm or dockerd changes caused it. |
This is skipped in current CI but can be potentially usable for environment having systemd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
d := daemon.New(t, "docker", "dockerd", daemon.Config{}) | ||
client, err := d.NewClient() | ||
require.NoError(t, err) | ||
d.StartWithBusybox(t, "--exec-opt", "native.cgroupdriver=systemd") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If using t.Parallel()
, you must use --iptables=false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching, fixed!
(detailed explanation is in commit 9e31938)
854779a
to
99848c4
Compare
Codecov Report
@@ Coverage Diff @@
## master #36172 +/- ##
=========================================
Coverage ? 34.87%
=========================================
Files ? 612
Lines ? 45801
Branches ? 0
=========================================
Hits ? 15973
Misses ? 27759
Partials ? 2069 |
99848c4
to
b09de47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
failure on Z is unrelated (#36547):
An interesting failure on powerpc:
Filed #36569 as a possible fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐯
b09de47
to
e2e4fda
Compare
rebased (for the sake of merged fixes for unrelated test failures) |
@kolyshkin needs a rebase (😓)
|
This is a test case for issue moby#35123, making sure we can set container's memory limit when using `native.cgroupdriver=systemd`. [v2: skip if no systemd present] [v3: add --iptables=false to avoid flaky tests with t.Parallel()] [v4: rebase after PR#36507 merge] Signed-off-by: Kir Kolyshkin <[email protected]>
e2e4fda
to
4ca5c53
Compare
Unrelated failure on experimental (logs here), subject of #36611:
Unrelated failure on janky (logs here), subject of #34051:
|
It's green now, flaky tests passed 👍 |
This is a test case for issue #35123, making sure we can set container's memory limit when using
native.cgroupdriver=systemd
.