Commit Graph

11 Commits

Author SHA1 Message Date
Sergey Kanzhelev
7ea6bb604b allow to pass multiple extra arguments to critest
Signed-off-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2026-03-24 16:30:17 +00:00
Wei Fu
c3ba452cf0 script/critest.sh: always skip OOMKilled on systemd cgroup
Skip the OOMKilled test when running with systemd cgroups, regardless of the
user-provided ginkgo skip list, to avoid this known issue.

```
critest '--ginkgo.skip=should prefer new apparmor field|should support apparmor field|should support deprecated apparmor_profile field|should support unsafe sysctls|should support safe sysctls|should allow privilege escalation when false'

Jan 23 08:55:25 c48dfdc00254 bash[130]: Summarizing 1 Failure:
Jan 23 08:55:25 c48dfdc00254 bash[130]:   [FAIL] [k8s.io] Container OOM runtime should output OOMKilled reason [It] should terminate with exitCode 137 and reason OOMKilled
Jan 23 08:55:25 c48dfdc00254 bash[130]:
sigs.k8s.io/cri-tools/pkg/validate/container_linux.go:165
```

REF: https://github.com/containerd/containerd/actions/runs/21280114724/job/61248062856

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-31 20:47:01 -05:00
Wei Fu
bdff34ef61 *: skip critest OOMKilled testcase for systemd cgroup
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-01-06 20:44:04 -05:00
Derek McGowan
9ae0168c7f Add focus test option to critest
Allows easily running a single critest using the contrib test setup

Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-10-19 09:03:19 -07:00
Akhil Mohan
3851bd5402 fix unbound SKIP_TEST variable error
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2025-05-01 15:46:44 +05:30
Akhil Mohan
8e6c93b6b0 add option to skip tests in critest
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
(cherry picked from commit 4ba3d82ca2)
2025-04-16 16:23:40 -04:00
lengrongfu
095131abf9 add use systemd cgroup e2e
Signed-off-by: lengrongfu <lenronfu@gmail.com>
Signed-off-by: rongfu.leng <lenronfu@gmail.com>
2024-10-03 00:37:29 +08:00
Rodrigo Campos
89a2cac377 scripts/critest.sh: Prepare for userns tests in runc
When runc 1.2.0 is released, it will expose support for userns and
therefore the critest suite will run those tests. The thing is, runc
needs to be able to traverse the path to mount the rootfs on itself.

Let's just mark the paths from the BDIR upwards with +x permissions, so
the tests run fine. Containerd already makes sure that the paths below
(the ones it creates) have the right permissions and for the right
group, etc.

I've tested with runc 1.2.0-rc.2 and CI fails without this path, with
this patch it works just fine.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2024-07-10 17:26:31 +02:00
Wei Fu
3b065cdddb CI: skip test in arm64 CI
Co-authored-by: Wei Fu <fuweid89@gmail.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-05-07 21:24:28 +09:00
Akihiro Suda
6c3c5376fc critools-version: v1.30.0
Pulls in kubernetes-sigs/cri-tools PR 1344 (`KEP-3857: Recursive Read-only (RRO) mounts`)
to test PR 9787

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-05-07 21:23:51 +09:00
Kazuyoshi Kato
b6df6708b9 Check containerd's readiness before calling critest
It was assuming containerd was ready right after starting.
But it depends GitHub actions' performance.

In addition to that, this commit extracts the script from ci.yml.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2022-12-22 16:29:12 +00:00