-
Notifications
You must be signed in to change notification settings - Fork 30k
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
test: fix running child-process-uid-gid as root #8864
Conversation
LGTM For whoever lands this: This change is identical to the one in #8794 which already received several approvals. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Carry over LGTM
I'm sorry I didn't see the original PR, but I wonder if it wouldn't be better to change the UID when it's 0 instead of skipping the test ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'd prefer either skipping or failing than changing... changing the UID would mask the problem a bit if the test does happen to be run as root (it would pass when under tested conditions it typically would not) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This skips the child-test-uid-gid test when run as root. Previously, the test failed if executed as root. PR-URL: nodejs#8864 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
CI failures look unrelated. |
This skips the child-test-uid-gid test when run as root. Previously, the test failed if executed as root. PR-URL: #8864 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Landed in 8dc2b42 |
Was there a CI run for this change? This test failed on all Windows configurations on the last daily run, can it be related to this? |
The process.getuid method does not exist on this platform. Ref: #8864
There was one in the original PR and it apparently failed on Windows. Fix here: #8924 |
The process.getuid method does not exist on this platform. Ref: nodejs#8864 PR-URL: nodejs#8924 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This skips the child-test-uid-gid test when run as root. Previously, the test failed if executed as root. PR-URL: #8864 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
This skips the child-test-uid-gid test when run as root. Previously, the test failed if executed as root. PR-URL: #8864 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test
Description of change
test-child-process-uid-gid fails when run as root. Seeing that other tests are skipped when running as root, adding the same behavior to this test as well.
Replaces #8794