You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump XUnitAnalyzersVersion from 1.27.0 to 2.0.0-pre.51 in both Directory.Packages.props and src/Microsoft.DotNet.Arcade.Sdk/tools/DefaultVersions.props.
This comment was generated with the assistance of GitHub Copilot.
@akoeplinger — heads up that this analyzer bump (xunit.analyzers1.27.0 → 2.0.0-pre.51) is surfacing error-level rules that break dotnet/runtime once it flows in via the VMR. xUnit 2.0 promotes a couple of rules to errors with no accommodation, so the bare version bump fails the build:
xUnit1065 — "Member data 'X' is ambiguous. Rename the members to use different names." (overloaded [MemberData] targets, e.g. System.Linq.Parallel.Tests.Sources.Ranges)
xUnit1056 — "Test class must have a single public non-static constructor."
dotnet/runtime#128648 (main codeflow) — carries the identical bump + byte-identical test code, so the same library compile legs will fail the same way (its run was largely obscured by unrelated timeouts).
Current main is green only because it still has 1.27.0. There's no revert or follow-up in arcade, and no adapting fix in runtime/VMR yet. Runtime will need to either suppress/downgrade xUnit1065/xUnit1056 in eng/CodeAnalysis.test.globalconfig, pin XUnitAnalyzersVersion back, or fix the flagged test code before/as 2.0 lands. Flagging here since this PR is the origin of the change.
@lewing these are already fixed in dotnet/runtime#128648, we can cherry-pick the commits to the P5 PR if necessary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump
XUnitAnalyzersVersionfrom 1.27.0 to 2.0.0-pre.51 in bothDirectory.Packages.propsandsrc/Microsoft.DotNet.Arcade.Sdk/tools/DefaultVersions.props.Addresses feedback from #16717 (comment)
To double check: