-
Notifications
You must be signed in to change notification settings - Fork 2.6k
e2e: podman top with ps(1): race between run -d and top #19504
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
Comments
Hi @edsantiago I would like to give this a try. |
I am not so sure the answer is that simple, Therefore IMO the problem is not that the process is not running. I think there is an actual bug in podman top where it looses output. |
@Luap99 you're right. This flake today triggered in the second
That suggests that adding some sort of And, because we don't have enough stress in our lives, there's this remote flake, also today:
I've removed the |
So I tried to reproducer for hours without luck but I think I see the bug in the code so I am just opening a PR with a fix and future will tell us if the flake is fixed with that. |
Sometimes there is no output displayed from the podman top command but no error is shown either. Looking at the code I think the issue here is that we do not wait for the output reader to end as it runs in a different goroutine. Thus the last lines of output might be missing. The fix is simply to wait for said goroutine to finish before returning. While at it also fix the missing scanner error check and return the read errors back to the caller. [NO NEW TESTS NEEDED] It is a flake. Fixes containers#19504 Signed-off-by: Paul Holzinger <[email protected]>
Infrequent, but seen twice in the last two days:
Should be a simple fix: maybe add
podman wait --condition=running
, or maybe add anecho READY
+WaitForReady
. Filing as placeholder because I won't have time to get to it until next week.Also need to add annotations to the
len > 1
assertions, something like "number of output lines from top", because those are really hard to debug. (Alternatively, figure out a way to usestring...).To(HaveLen(Numerically(>1))
).The text was updated successfully, but these errors were encountered: