-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Package testing skips Microsoft.Windows.Compatibility #27503
Comments
As a result of this bug we missed this problem:
Related: https://github.com/dotnet/corefx/issues/32391 |
From the date of the package version it seems it is depending on a live version of the package. Was SqlClient package deleted or something? |
It was bumped to 4.7.0 |
Let's see what we can do to make sure this gets tested. @joperezr we also may be missing updating the version of this in our index when a new one ships in servicing. I wonder if we need to expand the logic for index updates to account for dependencies in addition to harvesting. |
We could do that. If we make it so that every package (not only the ones that have dlls on them) has an entry on the package index, then we can call our task to update all stable versions listed in NuGet for all of the package index so that would cover these cases. Alternatively, we could also do what you suggest and expand the logic so that it also does it for dependencies. |
Triage: keep this in 5.0 and at least manually test the meta-package. |
Getting to this today or tomorrow. |
I just did this validation locally. Published it for different RIDs and ran VerifyClosure in it and everything looks good. Also looked at the set of dependencies and everything looks reasonable. So I'm going to remove |
Conversion to CSProj won't help. The Csproj tooling is meant to test the contents of the package for API compat. The main thing we want to test for this is the validity of the package. For that it should leverage the package-testing we do after pack where we generate projects and restore them. That could be made to work today, but it needs a change here to also consider dependency groups in the nuspec: https://github.com/dotnet/arcade/blob/28a6403ee97077256fcdc60f599f0ad9e38e3cfa/src/Microsoft.DotNet.PackageTesting/GetCompatiblePackageTargetFrameworks.cs#L37 |
But the migration to csprojs would have caught other issues like just the recent one where the Compatibility pack tried to restore a dead-ended package, right? |
It may, but we should still test it in package testing. That’s what this issue is meant to track. |
Sure, absolutely. @safern as you are assigned, are you currently working on this or have a branch somewhere that we can pick up? |
Nope, I never got a chance to look into this. And definitely with the API Compat work, don't have bandwidth to pick it up. I will remove my assignment. |
This is done because the package report doesn't list any supported frameworks.
That's because package reports only consider files and not dependencies. We should update the package reports to also consider dependencies (in the absence of files) to mirror the NuGet algo.
The text was updated successfully, but these errors were encountered: