-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 Failure:System.Diagnostics.Tests.ProcessTests.TestCheckChildProcessUserAndGroupIdsElevated #55491
Comments
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process Issue DetailsRun runtime-libraries-coreclr outerloop 20210711.1
Error message:
|
this is failing 1/4 of the time on mac. I'll disable it or something. TestResults
| join kind=inner WorkItems on WorkItemId
| join kind=inner Jobs on JobId
| where Finished >= now(-30d)
| where Type == "System.Diagnostics.Tests.ProcessTests"
| where Branch !startswith "refs/pull"
| where Method == "TestCheckChildProcessUserAndGroupIdsElevated"
| summarize count() by Method, Result, QueueName
|
Noticing that when If it was that we were running this test even when not root, or sudo was not present or broken, then I would expect the named pipe test Connection_UnderDifferentUsers_BehavesAsExpected to fail as well. (Having said that I don't see any failures ever for that one. We don't store passes, so I can't say for certain it's running.) |
@safern, do our runs in PR validation always define
Some but not all of our tests that have RequiresElevation and run on Unix have |
Not really. It seems like that trait is for when we want to execute tests that require elevation and make sure that they run (and if we are not elevated fail, like in this case). For other tests it seems like we detect if we are elevated and if so then run them, otherwise skip them. We seem to be using ConditionalFact. https://github.com/dotnet/runtime/search?q=Elevated |
I see so Tests that need sudo/elevation should use So How can I tell which configurations run as root and which don't? |
Run runtime-libraries-coreclr outerloop 20210711.1
Failed Test::
Error message:
The text was updated successfully, but these errors were encountered: