Skip to content

script/critest.sh: always skip OOMKilled on systemd cgroup - #12819

Merged
fuweid merged 1 commit into
containerd:mainfrom
fuweid:followup-12714
Feb 6, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
fuweid:followup-12714

Conversation

@fuweid

@fuweid fuweid commented Jan 26, 2026

Copy link
Copy Markdown
Member

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

@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jan 26, 2026
@dosubot dosubot Bot added the area/cri Container Runtime Interface (CRI) label Jan 26, 2026
@samuelkarp

Copy link
Copy Markdown
Member

Do we have an issue tracking this open yet? If not, we should get one. Reliability of the oom-killed indication has been a challenge for a long time, and if we do know at least one cause of that we should think about how to fix it too.

@fuweid

fuweid commented Feb 1, 2026

Copy link
Copy Markdown
Member Author

Do we have an issue tracking this open yet?

There is open one - #8893

Reliability of the oom-killed indication has been a challenge for a long time

We have already fixed the missed event issue for the cgroupfs case. For the systemd case, I added a comment in script/critest.sh.

In theory, we could invoke journalctl to address this. That would work, but it’s not an ideal solution.

I’ve also been considering using eBPF for tracing and removing the dependency on inotify altogether—this is just an idea at the moment. I’ll revisit this issue once I’ve cleaned up my pending work items.

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 <[email protected]>

@mikebrow mikebrow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fuweid
fuweid added this pull request to the merge queue Feb 6, 2026
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Feb 6, 2026
Merged via the queue into containerd:main with commit 72d5139 Feb 6, 2026
54 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) size/M

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants