Skip to content

Flaky tests: TestLogs/since_60s TestLogs/until_60s #4782

@AkihiroSuda

Description

@AkihiroSuda

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cie.g., CI failure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions