[CI]: TestImagePrune failure on EL9
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- go
- Domain
- ci-cd, cli, testing-qa
Research direction
Start by reproducing TestImagePrune, specifically the with_until/Wait_and_remove_until=10ms case, on EL9 and inspect image_prune_test.go around lines 239-250. Trace why the image remains listed after pruning, then confirm the test passes without regressing other image-prune cases.
Written by the indexing model from the issue text.
Description
Description
https://github.com/containerd/nerdctl/actions/runs/15053159687/job/42312653222?pr=4247
=== RUN TestImagePrune/with_until/Wait_and_remove_until=10ms
image_prune_test.go:250:
+============================================================================================================+
| 🏗 | "TestImagePrune/with_until/Wait_and_remove_until=10ms": setup |
+============================================================================================================+
image_prune_test.go:250:
+============================================================================================================+
| 🚀 | "TestImagePrune/with_until/Wait_and_remove_until=10ms": starting test! |
+============================================================================================================+
| ⏳ | /tmp/TestImagePrunewith_untilWait_and_remove_until=10ms2821158703/001/3597bb21 |
+============================================================================================================+
| | |
+============================================================================================================+
| config | { |
| | "BuildkitHost": "unix:///run/user/1001/buildkit-nerdctl-test/buildkitd.sock", |
| | "Namespace": "nerdctl-test", |
| | "PrivateMode": "" |
| | } |
+============================================================================================================+
| labels | {} |
+============================================================================================================+
image_prune_test.go:250:
+------------------------------------------------------------------------------------------------------------+
| ➡️ | ⚙️ /usr/local/bin/nerdctl image prune --force --all --filter until=10ms |
+------------------------------------------------------------------------------------------------------------+
| 🌱 | XDG_SESSION_TYPE=tty |
| | HOME=/home/rootless |
| | XDG_SESSION_CLASS=user |
| | XDG_SESSION_ID=4 |
| | XDG_RUNTIME_DIR=/run/user/1001 |
| | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
| | :/bin:/usr/games:/usr/local/games:/snap/bin |
| | DOCKER_CONFIG=/tmp/TestImagePrunewith_untilWait_and_remove_until=10ms2821158703/003 |
| | NERDCTL_TOML=/tmp/TestImagePrunewith_untilWait_and_remove_until=10ms2821158703/003/nerdctl.toml |
+------------------------------------------------------------------------------------------------------------+
| ⏰ | <1s (limit: 3m0s) |
+------------------------------------------------------------------------------------------------------------+
| 📁 | /tmp/TestImagePrunewith_untilWait_and_remove_until=10ms2821158703/002 |
+------------------------------------------------------------------------------------------------------------+
image_prune_test.go:250:
<<<<<<<<<<<<<<<<<<<<
🖊️ Inspecting output (contains)
👀 testing: ``
❌ FAILED! ~= `testimageprune-with-until-7c219acd`
>>>>>>>>>>>>>>>>>>>>
image_prune_test.go:239:
+------------------------------------------------------------------------------------------------------------+
| ➡️ | ⚙️ /usr/local/bin/nerdctl images |
+------------------------------------------------------------------------------------------------------------+
| | 🟢 REPOSITORY TAG IMAGE ID CREATED PLA |
| | TFORM SIZE BLOB SIZE |
| | testimageprune-with-until-7c219acd latest 8d8071fcf82d Less than a second ago linux/ |
| | amd64 5.865MB 2.814MB |
+------------------------------------------------------------------------------------------------------------+
| 🌱 | XDG_SESSION_TYPE=tty |
| | HOME=/home/rootless |
| | XDG_SESSION_CLASS=user |
| | XDG_SESSION_ID=4 |
| | XDG_RUNTIME_DIR=/run/user/[1001](https://github.com/containerd/nerdctl/actions/runs/15053159687/job/42312653222?pr=4247#step:10:1002) |
| | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
| | :/bin:/usr/games:/usr/local/games:/snap/bin |
| | DOCKER_CONFIG=/tmp/TestImagePrunewith_untilWait_and_remove_until=10ms2821158703/003 |
| | NERDCTL_TOML=/tmp/TestImagePrunewith_untilWait_and_remove_until=10ms2821158703/003/nerdctl.toml |
+------------------------------------------------------------------------------------------------------------+
| ⏰ | <1s (limit: 3m0s) |
+------------------------------------------------------------------------------------------------------------+
| 📁 | /tmp/TestImagePrunewith_untilWait_and_remove_until=10ms2821158703/002 |
+------------------------------------------------------------------------------------------------------------+
image_prune_test.go:240: assertion failed: strings.Contains(imgList, data.Labels().Get("imageID")) is true: REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE
testimageprune-with-until-7c219acd latest 8d8071fcf82d Less than a second ago linux/amd64 5.865MB 2.814MB
%!(EXTRA string=)
--- FAIL: TestImagePrune/with_until/Wait_and_remove_until=10ms (1.08s)
Steps to reproduce the issue
Seen on CI
Describe the results you received and expected
Not fail
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
- Dominant language
- Go
- Stars
- 10.5k
- Forks
- 853
- Avg merge
- 6d 14h
- Merged PRs (30d)
- 38
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from containerd/nerdctl
-
Test and examples: update wordpress images (to silence potential false security alerts)Possibly taken @Guurdeep claimed this 20 days ago. Openarea/ci documentation priority/low
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
containerd/nerdctl#5283 · 2 comments ·
Maintainers usually reply within 3 days
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signalsMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
containerd/nerdctl#5171 · 3 comments ·
Maintainers usually reply within 3 days
-
area/project
Difficulty 1/5 Under an hour Newbie friendliness 25/100
containerd/nerdctl#5383 · 5 comments ·
Maintainers usually reply within 3 days
-
Restart-policy containers loop on "unable to apply apparmor profile" after reboot until the creating user logs in (OCI hook inherits the client's XDG_RUNTIME_DIR)Possibly taken @Shubhranshu153 claimed this today. Openarea/rootless bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
containerd/nerdctl#5377 · 1 assignee ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
containerd/nerdctl#5355 ·
Maintainers usually reply within 3 days
All issues in containerd/nerdctl
Similar issues
-
P3 tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
kind/feature needs-triage priority/unprioritized
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NVIDIA/k8s-test-infra#1504 ·
Maintainers usually reply within 1 day
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
wso2/agent-manager#2717 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
open-policy-agent/opa#9685 · 1 comment ·
Maintainers usually reply within 1 day