Skip to content

[LOGS]: on windows, logs do not show up / are extremely slow? #4237

Open
@apostasie

Description

@apostasie

Description

TestLogsWithFailingContainer has been failing repeatedly on windows (for eg in #4209 )

What this test does is:

nerdctl run --name foo busybox sh -euxc "echo foo; echo bar; exit 42; echo baz"

Then:

sleep 5

Still:

nerdctl logs foo

will very often return nothing.

5 seconds feels like a very long time - even in a highly parallel context.

Also, this does not happen on linux.

There seem to be something different with Windows, where logs take much longer to show up.
Note that this also happen on other tests.

@fahedouch are we missing sync on windows, or something like that?

Any idea why windows would be different?

Steps to reproduce the issue

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

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions