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

Use OperatingSystem APIs instead of RuntimeInformation in more places #52548

Merged
merged 2 commits into from
May 18, 2021

Conversation

akoeplinger
Copy link
Member

These are recommended instead of the older APIs.

@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 May 10, 2021

Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

These are recommended instead of the older APIs.

Author: akoeplinger
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@akoeplinger akoeplinger force-pushed the more-operatingsystem branch 3 times, most recently from 9b9a8eb to 8780dbd Compare May 10, 2021 18:16
@ViktorHofer
Copy link
Member

Changing labels as this isn't infrastructure.

@akoeplinger akoeplinger force-pushed the more-operatingsystem branch 2 times, most recently from 2778c28 to d03c90f Compare May 11, 2021 08:36
@akoeplinger akoeplinger marked this pull request as ready for review May 11, 2021 10:44
@akoeplinger akoeplinger force-pushed the more-operatingsystem branch from d03c90f to ee0520a Compare May 18, 2021 20:08
@akoeplinger akoeplinger merged commit 4a73cb9 into dotnet:main May 18, 2021
@akoeplinger akoeplinger deleted the more-operatingsystem branch May 18, 2021 23:08
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
akoeplinger added a commit to akoeplinger/runtime that referenced this pull request May 20, 2021
After dotnet#52548 some installer tests that were using `PlatformSpecific(TestPlatforms.Windows)` started failing in the runtime-staging pipeline on Linux, even though they shouldn't have been executing.

Turns out this is because with dotnet@81771ef we're adding the `-trait category=failing` on the runtime-staging pipeline.
This doesn't work since `PlatformSpecific` attribute works by setting the "failing" category.

To fix this use a separate trait that can be used to only run the specific tests we want in runtime-staging.
akoeplinger added a commit that referenced this pull request May 20, 2021
* Fix installer tests on runtime-staging

After #52548 some installer tests that were using `PlatformSpecific(TestPlatforms.Windows)` started failing in the runtime-staging pipeline on Linux, even though they shouldn't have been executing.

Turns out this is because with 81771ef we're adding the `-trait category=failing` on the runtime-staging pipeline.
This doesn't work since `PlatformSpecific` attribute works by setting the "failing" category.

To fix this use a separate trait that can be used to only run the specific tests we want in runtime-staging.

* Fix: Trait only works on class
@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