-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestExecInTTY: execin_test.go:351: unexpected carriage-return in output #2425
Comments
I also meet this issue: |
Got it one more time here: https://travis-ci.org/github/opencontainers/runc/jobs/740066484 (#2658 (comment)) |
Another occurrence: #2682 (comment) |
Seems that github actions is faster so we'll see this one more and more now since #2690 is in |
This helps to debug opencontainers#2425 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This helps to debug opencontainers#2425 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Do help to debug opencontainers#2425. Previous commit 1909051 modified the code in the wrong place. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This helps to debug opencontainers/runc#2425 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Do help to debug opencontainers/runc#2425. Previous commit 1909051b9cf modified the code in the wrong place. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
OK, finally got the output (from https://github.com/opencontainers/runc/runs/1659399228?check_suite_focus=true):
Note the first line ends with |
Easy to repro locally: $ cd libcontainer/integration
$ go test -c .
$ $ sudo ./integration.test -test.run TestExecInT -test.count 1000
--- FAIL: TestExecInTTY (0.02s)
execin_test.go:332: unexpected carriage-return in output "PID USER TIME COMMAND\r\n 1 root 0:00 cat\r\n 8 root 0:00 ps\r\n"
--- FAIL: TestExecInTTY (0.03s)
execin_test.go:332: unexpected carriage-return in output "PID USER TIME COMMAND\r\n 1 root 0:00 cat\r\n 7 root 0:00 ps\r\n"
FAIL |
Definitely a race:
Most of the times it passes, sometimes it's |
Reopened by #2749 |
This helps to debug opencontainers#2425 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Do help to debug opencontainers#2425. Previous commit 1909051 modified the code in the wrong place. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This is not fixed, thus reopening. |
One more manifestation of the same race is #4029 in which we use a very short-lived container which produces a single line of output. Sometimes it's with CR, sometimes without 😕 |
Yet another manifestation of the same race is #4074. |
During the course of CI for #2411 I saw a single failure from Fedora32 on Vagrant (logs here):
It only happened once, and so I suspect some race in the code or in the test. The test code comes from #1146.
@cyphar maybe you could take a look?
The text was updated successfully, but these errors were encountered: