containerd / containerd/nerdctl
[LOGS]: on windows, logs do not show up / are extremely slow?
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
### 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
1.
2.
3.
### 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_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.