-
Notifications
You must be signed in to change notification settings - Fork 244
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
Shell: Use ps command which works for linux and mac #4538
Conversation
@praveenkumar : Shall we also update the windows version? crc/pkg/os/shell/shell_windows.go Line 67 in 5c6743b
|
f937504
to
339a62b
Compare
Done |
339a62b
to
3866f6e
Compare
As part of 74d1f1b ps command has `--sort=-pid` which doesn't work with macOS by default so in this PR `--sort=-pid` option is removed and reverse sorting against pid is implemented in `inspectProcessOutputForRecentlyUsedShell`. This way this code works on mac/linux same way. fixes: crc-org#4537
3866f6e
to
0400330
Compare
Thanks for the quick fix! I've tested this change on the following environments and it seems to be working as expected:
|
@praveenkumar: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
@lilyLuLiu can you run nighty test using that pr and see if it works for all platform. |
@praveenkumar Tests on this pr passed on macOS-arm64, but failed on macOS-x86 |
Manually test on macOS-x86 passed. |
We tried to test manually on x86 ( Thanks @lilyLuLiu for sharing the details) and figure out it is something related to testing side (test used older version of binary).
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gbraad, rohanKanojia 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 |
As part of 74d1f1b ps command has
--sort=-pid
which doesn't work with macOS by default so in this PR--sort=-pid
option is removed and reverse sorting against pid is implemented ininspectProcessOutputForRecentlyUsedShell
. This way this code works on mac/linux same way.fixes: #4537