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

Fix installer tests on runtime-staging #53025

Merged
merged 2 commits into from
May 20, 2021

Conversation

akoeplinger
Copy link
Member

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.

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.
@ghost
Copy link

ghost commented May 20, 2021

Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

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.

Author: akoeplinger
Assignees: -
Labels:

area-Single-File

Milestone: -

@akoeplinger akoeplinger merged commit b9b876a into dotnet:main May 20, 2021
@akoeplinger akoeplinger deleted the fix-host-tests branch May 20, 2021 16:48
@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.

2 participants