Flaky tests: TestLogs/since_60s TestLogs/until_60s
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
Open cmd/nerdctl/container/container_logs_test.go and inspect TestLogs, especially since_60s and until_60s around line 130. Reproduce the failures from the linked Actions run and compare the expected output with the logged command results. Done means these tests no longer fail intermittently while preserving the intended --since and --until behavior.
Written by the indexing model from the issue text.
Description
https://github.com/containerd/nerdctl/actions/runs/22842041042/job/66250620585
2026-03-09T07:18:19.7902157Z === RUN TestLogs/until_60s
2026-03-09T07:18:19.7902689Z === PAUSE TestLogs/until_60s
2026-03-09T07:18:19.7903097Z === CONT TestLogs/until_60s
2026-03-09T07:18:19.7903472Z container_logs_test.go:130:
2026-03-09T07:18:19.7903847Z
2026-03-09T07:18:19.7904259Z +============================================================================================================+
2026-03-09T07:18:19.7905068Z | 🚀 | "TestLogs/until_60s": starting test! |
2026-03-09T07:18:19.7905834Z +============================================================================================================+
2026-03-09T07:18:19.7906456Z | ⏳ | /tmp/TestLogsuntil_60s1237140276/001/391dae9f |
2026-03-09T07:18:19.7906994Z +============================================================================================================+
2026-03-09T07:18:19.7907391Z | | |
2026-03-09T07:18:19.7907787Z +============================================================================================================+
2026-03-09T07:18:19.7908198Z | config | { |
2026-03-09T07:18:19.7908667Z | | "Namespace": "nerdctl-test", |
2026-03-09T07:18:19.7909139Z | | "PrivateMode": "" |
2026-03-09T07:18:19.7909559Z | | } |
2026-03-09T07:18:19.7910219Z +============================================================================================================+
2026-03-09T07:18:19.7910625Z | labels | {} |
2026-03-09T07:18:19.7911026Z +============================================================================================================+
2026-03-09T07:18:19.7911324Z
2026-03-09T07:18:19.7911490Z container_logs_test.go:130:
2026-03-09T07:18:19.7911693Z
2026-03-09T07:18:19.7911992Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:19.7912668Z | ➡️ | ⚙️ /usr/local/bin/nerdctl logs --until 60s testlogs-c5a0ee74 |
2026-03-09T07:18:19.7913243Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:19.7913960Z | | 🟢 foo |
2026-03-09T07:18:19.7914368Z | | bar |
2026-03-09T07:18:19.7914830Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:19.7915655Z | | 🟠 + echo foo |
2026-03-09T07:18:19.7916380Z | | + echo bar |
2026-03-09T07:18:19.7917250Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:19.7918271Z | 🌱 | HOME=/root |
2026-03-09T07:18:19.7918832Z | | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
2026-03-09T07:18:19.7919368Z | | :/bin |
2026-03-09T07:18:19.7919888Z | | DOCKER_CONFIG=/tmp/TestLogsuntil_60s1237140276/003 |
2026-03-09T07:18:19.7920509Z | | NERDCTL_TOML=/tmp/TestLogsuntil_60s1237140276/003/nerdctl.toml |
2026-03-09T07:18:19.7921078Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:19.7921650Z | ⏰ | <1s (limit: 3m0s) |
2026-03-09T07:18:19.7922143Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:19.7922769Z | 📁 | /tmp/TestLogsuntil_60s1237140276/002 |
2026-03-09T07:18:19.7923306Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:19.7923674Z
2026-03-09T07:18:19.7923837Z container_logs_test.go:130:
2026-03-09T07:18:19.7924042Z
2026-03-09T07:18:19.7924189Z <<<<<<<<<<<<<<<<<<<<
2026-03-09T07:18:19.7924461Z 🖊️ Inspecting output (does not contain)
2026-03-09T07:18:19.7924744Z 👀 testing: `foo
2026-03-09T07:18:19.7924929Z bar
2026-03-09T07:18:19.7925082Z `
2026-03-09T07:18:19.7925269Z ❌ FAILED! ! ~= `foo
2026-03-09T07:18:19.7925758Z bar
2026-03-09T07:18:19.7925903Z `
2026-03-09T07:18:19.7926046Z >>>>>>>>>>>>>>>>>>>>
2026-03-09T07:18:19.7926485Z
2026-03-09T07:18:19.7926640Z --- FAIL: TestLogs/until_60s (0.02s)
2026-03-09T07:18:19.7927025Z [31mFAIL[0m cmd/nerdctl/container.TestLogs/until_60s (0.02s)
2026-03-09T07:18:21.3700094Z [32mPASS[0m cmd/nerdctl/container.TestLogs/since_1s (2.02s)
2026-03-09T07:18:21.3971633Z === RUN TestLogs/since_60s
2026-03-09T07:18:21.3972434Z === PAUSE TestLogs/since_60s
2026-03-09T07:18:21.3973102Z === CONT TestLogs/since_60s
2026-03-09T07:18:21.3973693Z container_logs_test.go:130:
2026-03-09T07:18:21.3974064Z
2026-03-09T07:18:21.3974574Z +============================================================================================================+
2026-03-09T07:18:21.3976019Z | 🚀 | "TestLogs/since_60s": starting test! |
2026-03-09T07:18:21.3976916Z +============================================================================================================+
2026-03-09T07:18:21.3978120Z | ⏳ | /tmp/TestLogssince_60s1777586438/001/944fea49 |
2026-03-09T07:18:21.3979343Z +============================================================================================================+
2026-03-09T07:18:21.3980063Z | | |
2026-03-09T07:18:21.3980760Z +============================================================================================================+
2026-03-09T07:18:21.3981722Z | config | { |
2026-03-09T07:18:21.3983069Z | | "Namespace": "nerdctl-test", |
2026-03-09T07:18:21.3983752Z | | "PrivateMode": "" |
2026-03-09T07:18:21.3984615Z | | } |
2026-03-09T07:18:21.3985645Z +============================================================================================================+
2026-03-09T07:18:21.3986677Z | labels | {} |
2026-03-09T07:18:21.3987936Z +============================================================================================================+
2026-03-09T07:18:21.3988736Z
2026-03-09T07:18:21.3989061Z container_logs_test.go:130:
2026-03-09T07:18:21.3989646Z
2026-03-09T07:18:21.3990449Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:21.3992321Z | ➡️ | ⚙️ /usr/local/bin/nerdctl logs --since 60s testlogs-c5a0ee74 |
2026-03-09T07:18:21.3993893Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:21.3995676Z | 🌱 | HOME=/root |
2026-03-09T07:18:21.3996889Z | | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
2026-03-09T07:18:21.3997924Z | | :/bin |
2026-03-09T07:18:21.3998939Z | | DOCKER_CONFIG=/tmp/TestLogssince_60s1777586438/003 |
2026-03-09T07:18:21.4000161Z | | NERDCTL_TOML=/tmp/TestLogssince_60s1777586438/003/nerdctl.toml |
2026-03-09T07:18:21.4001308Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:21.4002785Z | ⏰ | <1s (limit: 3m0s) |
2026-03-09T07:18:21.4003728Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:21.4004820Z | 📁 | /tmp/TestLogssince_60s1777586438/002 |
2026-03-09T07:18:21.4006061Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:21.4006802Z
2026-03-09T07:18:21.4007084Z container_logs_test.go:130:
2026-03-09T07:18:21.4007462Z
2026-03-09T07:18:21.4007711Z <<<<<<<<<<<<<<<<<<<<
2026-03-09T07:18:21.4008198Z 🖊️ Inspecting output (equals)
2026-03-09T07:18:21.4008673Z 👀 testing: ``
2026-03-09T07:18:21.4009091Z ❌ FAILED! = `foo
2026-03-09T07:18:21.4009429Z bar
2026-03-09T07:18:21.4009702Z `
2026-03-09T07:18:21.4009965Z >>>>>>>>>>>>>>>>>>>>
2026-03-09T07:18:21.4010288Z
2026-03-09T07:18:21.4010574Z --- FAIL: TestLogs/since_60s (0.03s)
2026-03-09T07:18:21.4011560Z [31mFAIL[0m cmd/nerdctl/container.TestLogs/since_60s (0.03s)
2026-03-09T07:18:21.4012483Z [32mPASS[0m cmd/nerdctl/container.TestRunSigProxy/SigProxyTrue (2.52s)
2026-03-09T07:18:21.4198298Z [32mPASS[0m cmd/nerdctl/container.TestRunSigProxy (0.00s)
2026-03-09T07:18:21.8174978Z [32mPASS[0m cmd/nerdctl/container.TestLogs/until_1s (2.03s)
2026-03-09T07:18:22.3853764Z === RUN TestLogs
2026-03-09T07:18:22.3854305Z === PAUSE TestLogs
2026-03-09T07:18:22.3859207Z === CONT TestLogs
2026-03-09T07:18:22.3859989Z container_logs_test.go:130:
2026-03-09T07:18:22.3860729Z
2026-03-09T07:18:22.3862518Z +============================================================================================================+
2026-03-09T07:18:22.3864781Z | 🧽 | "TestLogs": initial cleanup |
2026-03-09T07:18:22.3867120Z +============================================================================================================+
2026-03-09T07:18:22.3867750Z
2026-03-09T07:18:22.3868027Z container_logs_test.go:52:
2026-03-09T07:18:22.3868387Z
2026-03-09T07:18:22.3868933Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3870370Z | ➡️ | ⚙️ /usr/local/bin/nerdctl rm -f testlogs-c5a0ee74 |
2026-03-09T07:18:22.3871493Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3872855Z | | 🟠 time="2026-03-09T07:17:07Z" level=error msg="1 errors:\nno such container: testlogs-c5a0ee74" |
2026-03-09T07:18:22.3873824Z | | |
2026-03-09T07:18:22.3874689Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3875990Z | 🌱 | HOME=/root |
2026-03-09T07:18:22.3876957Z | | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
2026-03-09T07:18:22.3877886Z | | :/bin |
2026-03-09T07:18:22.3878825Z | | DOCKER_CONFIG=/tmp/TestLogs3916220912/003 |
2026-03-09T07:18:22.3879976Z | | NERDCTL_TOML=/tmp/TestLogs3916220912/003/nerdctl.toml |
2026-03-09T07:18:22.3881082Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3882597Z | ⏰ | <1s (limit: 3m0s) |
2026-03-09T07:18:22.3883533Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3884726Z | 📁 | /tmp/TestLogs3916220912/002 |
2026-03-09T07:18:22.3885962Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3886687Z
2026-03-09T07:18:22.3887008Z container_logs_test.go:130:
2026-03-09T07:18:22.3887381Z
2026-03-09T07:18:22.3887791Z +============================================================================================================+
2026-03-09T07:18:22.3888847Z | 🏗 | "TestLogs": setup |
2026-03-09T07:18:22.3889942Z +============================================================================================================+
2026-03-09T07:18:22.3890597Z
2026-03-09T07:18:22.3890907Z container_logs_test.go:56:
2026-03-09T07:18:22.3891292Z
2026-03-09T07:18:22.3892098Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3893514Z | ➡️ | ⚙️ /usr/local/bin/nerdctl run --quiet --name testlogs-c5a0ee74 ghcr.io/stargz-containers/alpine: |
2026-03-09T07:18:22.3894680Z | | 3.13-org sh -euxc echo foo; echo bar; |
2026-03-09T07:18:22.3895927Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3897028Z | | 🟢 foo |
2026-03-09T07:18:22.3897815Z | | bar |
2026-03-09T07:18:22.3898726Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3899796Z | | 🟠 + echo foo |
2026-03-09T07:18:22.3900618Z | | + echo bar |
2026-03-09T07:18:22.3901502Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3902600Z | 🌱 | HOME=/root |
2026-03-09T07:18:22.3903612Z | | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
2026-03-09T07:18:22.3904588Z | | :/bin |
2026-03-09T07:18:22.3905737Z | | DOCKER_CONFIG=/tmp/TestLogs3916220912/003 |
2026-03-09T07:18:22.3906873Z | | NERDCTL_TOML=/tmp/TestLogs3916220912/003/nerdctl.toml |
2026-03-09T07:18:22.3907968Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3909053Z | ⏰ | <1s (limit: 3m0s) |
2026-03-09T07:18:22.3909999Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3911457Z | 📁 | /tmp/TestLogs3916220912/002 |
2026-03-09T07:18:22.3912443Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3913148Z
2026-03-09T07:18:22.3913430Z container_logs_test.go:130:
2026-03-09T07:18:22.3913959Z ⤵️️ "TestLogs": into subtests prep
2026-03-09T07:18:22.3914407Z container_logs_test.go:130:
2026-03-09T07:18:22.3914910Z ↩️️ "TestLogs": done with subtests prep
2026-03-09T07:18:22.3915570Z container_logs_test.go:130:
2026-03-09T07:18:22.3915935Z
2026-03-09T07:18:22.3916359Z +============================================================================================================+
2026-03-09T07:18:22.3917373Z | 🧽 | "TestLogs": post-cleanup |
2026-03-09T07:18:22.3918205Z +============================================================================================================+
2026-03-09T07:18:22.3918784Z
2026-03-09T07:18:22.3919056Z container_logs_test.go:52:
2026-03-09T07:18:22.3919635Z
2026-03-09T07:18:22.3920190Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3921447Z | ➡️ | ⚙️ /usr/local/bin/nerdctl rm -f testlogs-c5a0ee74 |
2026-03-09T07:18:22.3922498Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3923624Z | | 🟢 testlogs-c5a0ee74 |
2026-03-09T07:18:22.3924569Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3925863Z | 🌱 | HOME=/root |
2026-03-09T07:18:22.3927040Z | | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
2026-03-09T07:18:22.3928169Z | | :/bin |
2026-03-09T07:18:22.3929078Z | | DOCKER_CONFIG=/tmp/TestLogs3916220912/003 |
2026-03-09T07:18:22.3930214Z | | NERDCTL_TOML=/tmp/TestLogs3916220912/003/nerdctl.toml |
2026-03-09T07:18:22.3931351Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3932487Z | ⏰ | <1s (limit: 3m0s) |
2026-03-09T07:18:22.3933742Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3934969Z | 📁 | /tmp/TestLogs3916220912/002 |
2026-03-09T07:18:22.3936205Z +------------------------------------------------------------------------------------------------------------+
2026-03-09T07:18:22.3936910Z
2026-03-09T07:18:22.3937193Z --- FAIL: TestLogs (0.51s)
2026-03-09T07:18:22.3937773Z [31mFAIL[0m cmd/nerdctl/container.TestLogs (0.51s)
- 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