Skip to content
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

Run processenvironment EventPipe test as a separate process. #51022

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

lateralusX
Copy link
Member

Due to the following issue:

#51019

https://github.com/dotnet/runtime/tree/main/src/tests/tracing/eventpipe/processenvironment test fails on Mono runtime on none Windows platforms.

Since this test tests diagnostics server process environment command and not the implementation of SetEnvironmentVariable, running the diagnostics server as a separate process and pass over the environments variable to validate as part of running process would be more inline with how this will be used and mitigate the Mono runtime issue.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost
Copy link

ghost commented Apr 9, 2021

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

Due to the following issue:

#51019

https://github.com/dotnet/runtime/tree/main/src/tests/tracing/eventpipe/processenvironment test fails on Mono runtime on none Windows platforms.

Since this test tests diagnostics server process environment command and not the implementation of SetEnvironmentVariable, running the diagnostics server as a separate process and pass over the environments variable to validate as part of running process would be more inline with how this will be used and mitigate the Mono runtime issue.

Author: lateralusX
Assignees: -
Labels:

area-Diagnostics-coreclr

Milestone: -

Copy link
Contributor

@josalem josalem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the issue text you referenced, I'm assuming that you're intending for Mono to mimic CoreCLR's behavior (always go through PAL to get Env info)?

This change looks fine to me and preserves the intent of the test.

@lateralusX
Copy link
Member Author

Yes, we will probably get Mono over to same behaviour as CoreClr, but since this test is failing due to this (and guess it was not the intent for this test to validate this in the first place), doing this change will unblock the EventPipe test on none Windows Mono runtime, independently of fixing the underlying issue.

@lateralusX lateralusX merged commit 355eff5 into dotnet:main Apr 12, 2021
@lateralusX lateralusX changed the title Run processenvironment EnvetPipe test as a separate process. Run processenvironment EventPipe test as a separate process. Apr 20, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants