Skip to content

test logs failed #4889

@ningmingxiao

Description

@ningmingxiao
=== CONT  TestLogs/until_60s
    container_logs_test.go:131: 
        
        +============================================================================================================+
        | 🚀      | "TestLogs/until_60s": starting test!                                                             |
        +============================================================================================================+
        | ⏳      | /tmp/TestLogsuntil_60s695587861/001/391dae9f                                                     |
        +============================================================================================================+
        |         |                                                                                                  |
        +============================================================================================================+
        | config  | {                                                                                                |
        |         |   "FlakyTest": "Only",                                                                           |
        |         |   "Namespace": "nerdctl-test",                                                                   |
        |         |   "PrivateMode": ""                                                                              |
        |         | }                                                                                                |
        +============================================================================================================+
        | labels  | {}                                                                                               |
        +============================================================================================================+
        
    container_logs_test.go:131: 
        
        +------------------------------------------------------------------------------------------------------------+
        | ➡️      | ⚙️ /usr/local/bin/nerdctl logs --until 60s testlogs-c5a0ee74                                     |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🟢 foo                                                                                           |
        |         | bar                                                                                              |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🟠 + echo foo                                                                                    |
        |         | + echo bar                                                                                       |
        +------------------------------------------------------------------------------------------------------------+
        | 🌱      | HOME=/root                                                                                       |
        |         | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
        |         | :/bin                                                                                            |
        |         | DOCKER_CONFIG=/tmp/TestLogsuntil_60s695587861/003                                                |
        |         | NERDCTL_TOML=/tmp/TestLogsuntil_60s695587861/003/nerdctl.toml                                    |
        +------------------------------------------------------------------------------------------------------------+
        | ⏰      | <1s (limit: 3m0s)                                                                                |
        +------------------------------------------------------------------------------------------------------------+
        | 📁      | /tmp/TestLogsuntil_60s695587861/002                                                              |
        +------------------------------------------------------------------------------------------------------------+
        
    container_logs_test.go:131: 	
        
        <<<<<<<<<<<<<<<<<<<<
        	🖊️ Inspecting output (does not contain)
        	👀 testing:		`foo
        bar
        `
        	❌ FAILED!		! ~= `foo
        bar
        `
        >>>>>>>>>>>>>>>>>>>>
        
--- FAIL: TestLogs/until_60s (0.02s)
FAIL cmd/nerdctl/container.TestLogs/until_60s (0.02s)
PASS cmd/nerdctl/container.TestLogs/since_1s (2.02s)
=== RUN   TestLogs/since_60s
=== PAUSE TestLogs/since_60s
=== CONT  TestLogs/since_60s
    container_logs_test.go:131: 
        
        +============================================================================================================+
        | 🚀      | "TestLogs/since_60s": starting test!                                                             |
        +============================================================================================================+
        | ⏳      | /tmp/TestLogssince_60s1903548088/001/944fea49                                                    |
        +============================================================================================================+
        |         |                                                                                                  |
        +============================================================================================================+
        | config  | {                                                                                                |
        |         |   "FlakyTest": "Only",                                                                           |
        |         |   "Namespace": "nerdctl-test",                                                                   |
        |         |   "PrivateMode": ""                                                                              |
        |         | }                                                                                                |
        +============================================================================================================+
        | labels  | {}                                                                                               |
        +============================================================================================================+
        
    container_logs_test.go:131: 
        
        +------------------------------------------------------------------------------------------------------------+
        | ➡️      | ⚙️ /usr/local/bin/nerdctl logs --since 60s testlogs-c5a0ee74                                     |
        +------------------------------------------------------------------------------------------------------------+
        | 🌱      | HOME=/root                                                                                       |
        |         | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
        |         | :/bin                                                                                            |
        |         | NERDCTL_TOML=/tmp/TestLogssince_60s1903548088/003/nerdctl.toml                                   |
        |         | DOCKER_CONFIG=/tmp/TestLogssince_60s1903548088/003                                               |
        +------------------------------------------------------------------------------------------------------------+
        | ⏰      | <1s (limit: 3m0s)                                                                                |
        +------------------------------------------------------------------------------------------------------------+
        | 📁      | /tmp/TestLogssince_60s1903548088/002                                                             |
        +------------------------------------------------------------------------------------------------------------+
        
    container_logs_test.go:131: 	
        
        <<<<<<<<<<<<<<<<<<<<
        	🖊️ Inspecting output (equals)
        	👀 testing:		``
        	❌ FAILED!		= `foo
        bar
        `
        >>>>>>>>>>>>>>>>>>>>
        
--- FAIL: TestLogs/since_60s (0.02s)
FAIL cmd/nerdctl/container.TestLogs/since_60s (0.02s)
PASS cmd/nerdctl/container.TestRunDomainname/Check_domain_name (0.56s)
PASS cmd/nerdctl/container.TestRunDomainname/check_fqdn (0.55s)
PASS cmd/nerdctl/container.TestRunDomainname (0.00s)
PASS cmd/nerdctl/container.TestRunSecurityOptSeccomp/default (0.56s)
PASS cmd/nerdctl/container.TestLogs/until_1s (2.03s)
=== RUN   TestLogs
=== PAUSE TestLogs
=== CONT  TestLogs
    container_logs_test.go:131: 
        
        +============================================================================================================+
        | 🧽      | "TestLogs": initial cleanup                                                                      |
        +============================================================================================================+
        
    container_logs_test.go:53: 
        
        +------------------------------------------------------------------------------------------------------------+
        | ➡️      | ⚙️ /usr/local/bin/nerdctl rm -f testlogs-c5a0ee74                                                |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🟠 time="2026-05-08T09:30:54Z" level=error msg="1 errors:\nno such container: testlogs-c5a0ee74" |
        |         |                                                                                                  |
        +------------------------------------------------------------------------------------------------------------+
        | 🌱      | HOME=/root                                                                                       |
        |         | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
        |         | :/bin                                                                                            |
        |         | DOCKER_CONFIG=/tmp/TestLogs3427688512/003                                                        |
        |         | NERDCTL_TOML=/tmp/TestLogs3427688512/003/nerdctl.toml                                            |
        +------------------------------------------------------------------------------------------------------------+
        | ⏰      | <1s (limit: 3m0s)                                                                                |
        +------------------------------------------------------------------------------------------------------------+
        | 📁      | /tmp/TestLogs3427688512/002                                                                      |
        +------------------------------------------------------------------------------------------------------------+
        
    container_logs_test.go:131: 
        
        +============================================================================================================+
        | 🏗       | "TestLogs": setup                                                                                |
        +============================================================================================================+
        
    container_logs_test.go:57: 
        
        +------------------------------------------------------------------------------------------------------------+
        | ➡️      | ⚙️ /usr/local/bin/nerdctl run --quiet --name testlogs-c5a0ee74 ghcr.io/stargz-containers/alpine: |
        |         | 3.13-org sh -euxc echo foo; echo bar;                                                            |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🟢 foo                                                                                           |
        |         | bar                                                                                              |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🟠 + echo foo                                                                                    |
        |         | + echo bar                                                                                       |
        +------------------------------------------------------------------------------------------------------------+
        | 🌱      | HOME=/root                                                                                       |
        |         | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
        |         | :/bin                                                                                            |
        |         | DOCKER_CONFIG=/tmp/TestLogs3427688512/003                                                        |
        |         | NERDCTL_TOML=/tmp/TestLogs3427688512/003/nerdctl.toml                                            |
        +------------------------------------------------------------------------------------------------------------+
        | ⏰      | <1s (limit: 3m0s)                                                                                |
        +------------------------------------------------------------------------------------------------------------+
        | 📁      | /tmp/TestLogs3427688512/002                                                                      |
        +------------------------------------------------------------------------------------------------------------+
        
    container_logs_test.go:131: 
        ⤵️️ "TestLogs": into subtests prep
    container_logs_test.go:131: 
        ↩️️ "TestLogs": done with subtests prep
    container_logs_test.go:131: 
        
        +============================================================================================================+
        | 🧽      | "TestLogs": post-cleanup                                                                         |
        +============================================================================================================+
        
    container_logs_test.go:53: 
        
        +------------------------------------------------------------------------------------------------------------+
        | ➡️      | ⚙️ /usr/local/bin/nerdctl rm -f testlogs-c5a0ee74                                                |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🟢 testlogs-c5a0ee74                                                                             |
        +------------------------------------------------------------------------------------------------------------+
        | 🌱      | HOME=/root                                                                                       |
        |         | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
        |         | :/bin                                                                                            |
        |         | NERDCTL_TOML=/tmp/TestLogs3427688512/003/nerdctl.toml                                            |
        |         | DOCKER_CONFIG=/tmp/TestLogs3427688512/003                                                        |
        +------------------------------------------------------------------------------------------------------------+
        | ⏰      | <1s (limit: 3m0s)                                                                                |
        +------------------------------------------------------------------------------------------------------------+
        | 📁      | /tmp/TestLogs3427688512/002                                                                      |
        +------------------------------------------------------------------------------------------------------------+
        
--- FAIL: TestLogs (0.92s)
FAIL cmd/nerdctl/container.TestLogs (0.92s)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions