Skip to content

[CI]: failure nerdctl - TestCreate/logs appears to be flaky #3717

Closed
@apostasie

Description

@apostasie

Description

Regularly seeing:

=== RUN   TestCreate/logs
    container_create_test.go:68: ======================== Pre-test cleanup ========================
    container_create_test.go:68: ======================== Test setup ========================
    container_create_test.go:68: ======================== Test Run ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test logs testcreate-container-13f956b8
    command.go:112: assertion failed: expression is false: strings.Contains(stdout, compare): Output does not contain: "foo"
        Command:  /usr/local/bin/nerdctl --namespace=nerdctl-test logs testcreate-container-13f956b8
        ExitCode: 0
        Stdout:   
        Stderr:   
        Env:
        HOSTNAME=7a31bdc569d5
        MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
        SYSTEMD_EXEC_PID=80
        container=docker
        HOME=/root
        LANG=C.UTF-8
        MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/docker-entrypoint.service/memory.pressure
        INVOCATION_ID=b617c8bc19b646fab[564](https://github.com/containerd/nerdctl/actions/runs/12128694305/job/33815645478?pr=3716#step:7:565)5ab9fa1d7038
        TERM=xterm
        USER=root
        SHLVL=3
        CGO_ENABLED=0
        _=/usr/local/bin/gotestsum
        PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        ***
        DOCKER_CONFIG=/tmp/TestCreatelogs930266936/001
        NERDCTL_TOML=/tmp/TestCreatelogs930266936/001/nerdctl.toml
    container_create_test.go:68: ======================== Processing subtests ========================
    case.go:164: ======================== Post-test cleanup ========================
--- FAIL: TestCreate/logs (0.02s)

It is unclear if the test is somehow broken, or if we have a deeper issue with logs.

Steps to reproduce the issue

No response

Describe the results you received and expected

na

What version of nerdctl are you using?

main

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions