Skip to content

Conversation

@jkoritzinsky
Copy link
Member

Add check to skip tests if all RuntimeTestModes are skipped

Fixes #105964

…runtime test modes

Add check to skip tests if all RuntimeTestModes are skipped

Fixes #105964
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a code-generation failure in XUnitWrapperGenerator when processing SkipOnCoreClrAttribute cases that result in no runtime-configuration/test-mode conditions, preventing invalid generated C# like if ().

Changes:

  • Add a guard in DecorateWithSkipOnCoreClrConfiguration to return an empty test set when no conditions are produced.
  • Avoid emitting ConditionalTest wrappers with an empty condition expression.

Updated skipped test platform and configuration handling to use 'Any' instead of 0 values as the default skip rules (matches the implementation in arcade)
Copilot AI review requested due to automatic review settings January 29, 2026 22:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings January 30, 2026 19:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings January 30, 2026 22:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 2, 2026 14:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@jkoritzinsky jkoritzinsky merged commit 73adf9e into main Feb 2, 2026
83 of 84 checks passed
@github-project-automation github-project-automation bot moved this to Done in AppModel Feb 2, 2026
@jkoritzinsky jkoritzinsky deleted the jkoritzinsky-patch-1 branch February 2, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

[Test] Issue with DecorateWithSkipOnCoreClrConfiguration

2 participants