-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
DO NOT MERGE: try to figure out the preserve-fds bug #16051
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Yay, the flake triggered! Boo, there are no extra open fds. Unless |
cbac6e5
to
91b250a
Compare
Sigh. Failed, with both |
@edsantiago Yes exec.Command closes all fds, see my comment on the issue:
It does not matter how many open fds the test has, in fact we cannot control this at all since they run in parallel. |
Ugh, you're right. I guess closing fds is user-friendly in some respects, it's just counterintuitive for someone who grew up on UNIX and C. Thanks for the reminder. Do you have any suggestions on how else to track this down? Since this is consistently ubuntu-only, could it be something that ubuntu changed in the Go libraries, as a distro patch? Or a too-old version of Go? Again, this is easy to fix in the test, I just don't want to hide a real bug. |
I don't really know, all I see is that we have some custom c code which checks the fds: podman/pkg/rootless/rootless_linux.c Lines 299 to 338 in 84c85f4
podman/pkg/rootless/rootless_linux.c Lines 274 to 281 in 84c85f4
|
I notice there's no matching |
Add "ls -l /proc/self/fd" before running the test. Might be useful to also run "lsof -p $$", what's the right Go incantation for getting my own pid? Signed-off-by: Ed Santiago <[email protected]>
91b250a
to
ee77cde
Compare
Unable to reproduce the flake if I use |
@edsantiago: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
A friendly reminder that this PR had no activity for 30 days. |
@edsantiago is this still valid, needs a rebase. |
This is an Ubuntu-only flake. We haven't run CI on Ubuntu in a month, so I'll just close this and reopen if we ever get Ubuntu back. |
Add "ls -l /proc/self/fd" before running the test.
Might be useful to also run "lsof -p $$", what's the
right Go incantation for getting my own pid?
Signed-off-by: Ed Santiago [email protected]