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

Remove the deprecated/unused dotnet-xunit dependency #4574

Merged
merged 4 commits into from
Jun 13, 2023

Conversation

reyang
Copy link
Member

@reyang reyang commented Jun 9, 2023

I haven't looked into why this happened and nobody noticed this previously, just got the warning while doing local build.

image

The problem is that dotnet-xunit is a DotNetCliToolReference rather than PackageReference, so the version specified in

<PackageVersion Include="dotnet-xunit" Version="[2.3.1,3.0)" />
is not being used at all.

Also, the existing code has reference to DotNetXUnitCliVer while that variable is not even defined anywhere:

<DotNetCliToolReference Include="dotnet-xunit" Version="$(DotNetXUnitCliVer)" />

@reyang reyang requested a review from a team as a code owner June 9, 2023 05:29
@reyang reyang added the infra Infra work - CI/CD, code coverage, linters label Jun 9, 2023
@@ -28,8 +28,6 @@
-->
<MicrosoftCodeCoveragePkgVer>[17.4.1]</MicrosoftCodeCoveragePkgVer>
<OTelPreviousStableVer>1.5.0</OTelPreviousStableVer>
<SerilogPkgVer>[2.8.0,3.0)</SerilogPkgVer>
<SystemCollectionsImmutablePkgVer>1.4.0</SystemCollectionsImmutablePkgVer>
Copy link
Member Author

Choose a reason for hiding this comment

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

@CodeBlanch these are no longer needed I assume?

@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Merging #4574 (095620b) into main (039556d) will increase coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4574      +/-   ##
==========================================
+ Coverage   85.13%   85.18%   +0.05%     
==========================================
  Files         320      320              
  Lines       12679    12679              
==========================================
+ Hits        10794    10801       +7     
+ Misses       1885     1878       -7     

see 4 files with indirect coverage changes

@utpilla
Copy link
Contributor

utpilla commented Jun 9, 2023

Is adding DotNetCliToolReference required? I removed the <DotNetCliToolReference Include="dotnet-xunit" /> from the test projects and it still works (both on Visual Studio TestExplorer and dotnet test)

@reyang
Copy link
Member Author

reyang commented Jun 9, 2023

Is adding DotNetCliToolReference required? I removed the <DotNetCliToolReference Include="dotnet-xunit" /> from the test projects and it still works (both on Visual Studio TestExplorer and dotnet test)

Probably not needed on modern tools https://xunit.net/docs/nuget-packages.

dotnet-xunit This package was retired as of 2.4 Beta 2. .NET Core users should use xunit.runner.visualstudio and the dotnet test command line.

@reyang reyang changed the title Fix dotnet-xunit version Remove the deprecated/unused dotnet-xunit dependency Jun 10, 2023
@utpilla utpilla merged commit 6ba9245 into open-telemetry:main Jun 13, 2023
16 checks passed
@reyang reyang deleted the reyang/fix-dotnet-xunit-version branch March 2, 2024 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Infra work - CI/CD, code coverage, linters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants