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

Unnecessary suppression errors showing up in build using .NET 8 Preview 7 SDK #89206

Closed
mthalman opened this issue Jul 19, 2023 · 10 comments · Fixed by #89216 or #89524
Closed

Unnecessary suppression errors showing up in build using .NET 8 Preview 7 SDK #89206

mthalman opened this issue Jul 19, 2023 · 10 comments · Fixed by #89216 or #89524

Comments

@mthalman
Copy link
Member

When attempting to build the runtime repo with the latest build of .NET 8 Preview 7 SDK, it produces the following errors:

CoreCLR

/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-preview.7.23364.43/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : Unnecessary suppressions found. The APICompat suppression file can be updated by rebuilding with '/p:ApiCompatGenerateSuppressionFile=true' [/vmr/src/runtime/artifacts/source-build/self/src/src/coreclr/nativeaot/System.Private.CoreLib/src/System.Private.CoreLib.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-preview.7.23364.43/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Diagnostics.DebuggerGuidedStepThroughAttribute') [/vmr/src/runtime/artifacts/source-build/self/src/src/coreclr/nativeaot/System.Private.CoreLib/src/System.Private.CoreLib.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-preview.7.23364.43/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.EagerStaticClassConstructionAttribute') [/vmr/src/runtime/artifacts/source-build/self/src/src/coreclr/nativeaot/System.Private.CoreLib/src/System.Private.CoreLib.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-preview.7.23364.43/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0016 (Target: 'M:System.Runtime.InteropServices.Marshal.GetObjectForNativeVariant``1(System.IntPtr)->T?:[T:System.Diagnostics.CodeAnalysis.MaybeNullAttribute]') [/vmr/src/runtime/artifacts/source-build/self/src/src/coreclr/nativeaot/System.Private.CoreLib/src/System.Private.CoreLib.csproj]

Libraries

/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-preview.7.23364.43/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : Unnecessary suppressions found. The APICompat suppression file can be updated by rebuilding with '/p:ApiCompatGenerateSuppressionFile=true' [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-preview.7.23364.43/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.InteropServices.JavaScript.WebWorker', Left: 'ref/net8.0/System.Runtime.InteropServices.JavaScript.dll', Right: 'runtimes/browser/lib/net8.0/System.Runtime.InteropServices.JavaScript.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj]

These suppressions only seem to be relevant to Windows. So there needs to be a way to exclude these suppressions for Linux but include them for Windows.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 19, 2023
@mthalman mthalman added area-Infrastructure-coreclr area-Infrastructure-libraries and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jul 19, 2023
@ericstj ericstj added this to the 8.0.0 milestone Jul 19, 2023
@ericstj
Copy link
Member

ericstj commented Jul 19, 2023

We shouldn't have cases where we only have unnecessary suppressions on some platforms - that would indicate some inconsistencies in public API per platform.

@mthalman
Copy link
Member Author

We shouldn't have cases where we only have unnecessary suppressions on some platforms - that would indicate some inconsistencies in public API per platform.

I attempted to remove the suppressions in #89186 but it led to all these failures in the Windows build jobs. These errors didn't show up in the Linux jobs.

##[error].packages\microsoft.dotnet.apicompat.task\8.0.100-preview.7.23329.3\build\Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) API compatibility errors between 'ref/net8.0/System.Private.CoreLib.dll' (left) and 'lib/net8.0/System.Private.CoreLib.dll' (right):
D:\a\_work\1\s\.packages\microsoft.dotnet.apicompat.task\8.0.100-preview.7.23329.3\build\Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error CP0016: Cannot add attribute 'System.Diagnostics.CodeAnalysis.MaybeNullAttribute' to 'System.Runtime.InteropServices.Marshal.GetObjectForNativeVariant<T>(nint)'. [D:\a\_work\1\s\src\coreclr\nativeaot\System.Private.CoreLib\src\System.Private.CoreLib.csproj]
##[error].packages\microsoft.dotnet.apicompat.task\8.0.100-preview.7.23329.3\build\Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error CP0016: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot add attribute 'System.Diagnostics.CodeAnalysis.MaybeNullAttribute' to 'System.Runtime.InteropServices.Marshal.GetObjectForNativeVariant<T>(nint)'.
D:\a\_work\1\s\.packages\microsoft.dotnet.apicompat.task\8.0.100-preview.7.23329.3\build\Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : API breaking changes found. If those are intentional, the APICompat suppression file can be updated by rebuilding with '/p:ApiCompatGenerateSuppressionFile=true' [D:\a\_work\1\s\src\coreclr\nativeaot\System.Private.CoreLib\src\System.Private.CoreLib.csproj]
##[error].packages\microsoft.dotnet.apicompat.task\8.0.100-preview.7.23329.3\build\Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) API breaking changes found. If those are intentional, the APICompat suppression file can be updated by rebuilding with '/p:ApiCompatGenerateSuppressionFile=true'

@ericstj
Copy link
Member

ericstj commented Jul 19, 2023

#87567 introduced the public API inconsistencies in System.Runtime.InteropServices.JavaScript cc @pavelsavara

GetObjectForNativeVariant -> Missing nullable annotation here:

public static T GetObjectForNativeVariant<T>(IntPtr pSrcNativeVariant)

Return type should be T? to match others. Then we should remove suppression.

DebuggerGuidedStepThroughAttribute and EagerStaticClassConstructionAttribute - haven't seen this yet but will update once I see root cause.

@MichalPetryka
Copy link
Contributor

EagerStaticClassConstructionAttribute is a NativeAOT only undocumented attribute, it's not a part of the public API.
cc @MichalStrehovsky

@ericstj
Copy link
Member

ericstj commented Jul 19, 2023

I think those attribute suppressions were just stale. Put up a PR to clean this up, hopefully. 🤞

@mthalman
Copy link
Member Author

Starting on Friday, there's a new set of errors that popped up in builds of the VMR that use the SDK RC1 build:

/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : Unnecessary suppressions found. The APICompat suppression file can be updated by rebuilding with '/p:ApiCompatGenerateSuppressionFile=true' [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Linq.Expressions.Interpreter.LightLambda', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.CallSiteOps', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.Closure', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.RuntimeOps', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Linq.Expressions.Interpreter.LightLambda', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.CallSiteOps', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.Closure', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.RuntimeOps', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Linq.Expressions.Interpreter.LightLambda', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.CallSiteOps', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.Closure', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0001 (Target: 'T:System.Runtime.CompilerServices.RuntimeOps', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.ElementInit.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.ElementInit.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.IndexExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.IndexExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.InvocationExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.InvocationExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.LambdaExpression.get_CanCompileToIL', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.LambdaExpression.get_CanInterpret', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.MethodCallExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.MethodCallExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.NewExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.NewExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.ElementInit.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.ElementInit.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.IndexExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.IndexExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.InvocationExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.InvocationExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.LambdaExpression.get_CanCompileToIL', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.LambdaExpression.get_CanInterpret', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.MethodCallExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.MethodCallExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.NewExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.NewExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.ElementInit.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.ElementInit.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.IndexExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.IndexExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.InvocationExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.InvocationExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.LambdaExpression.get_CanCompileToIL', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.LambdaExpression.get_CanInterpret', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.MethodCallExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.MethodCallExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.NewExpression.get_ArgumentCount', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0002 (Target: 'M:System.Linq.Expressions.NewExpression.GetArgument(System.Int32)', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0020 (Target: 'M:System.Linq.Expressions.DynamicExpressionVisitor.#ctor', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/ios/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0020 (Target: 'M:System.Linq.Expressions.DynamicExpressionVisitor.#ctor', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/maccatalyst/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]
/vmr/src/runtime/artifacts/source-build/self/package-cache/microsoft.dotnet.apicompat.task/8.0.100-rc.1.23371.17/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : CP0020 (Target: 'M:System.Linq.Expressions.DynamicExpressionVisitor.#ctor', Left: 'ref/net8.0/System.Linq.Expressions.dll', Right: 'runtimes/tvos/lib/net8.0/System.Linq.Expressions.dll') [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj]

@ericstj
Copy link
Member

ericstj commented Jul 25, 2023

Those look to be introduced with #88723 cc @ivanpovazan

@ericstj ericstj reopened this Jul 25, 2023
@ericstj
Copy link
Member

ericstj commented Jul 25, 2023

Reactivating to address Linq.Expressions suppressions.

@ivanpovazan
Copy link
Member

@ericstj regarding:

Those look to be introduced with #88723 cc @ivanpovazan

Thank you for finding the root cause of the regression. To be honest, I am not familiar with these suppression errors and this was the first time I made such change in libraries. I suppose these suppressions need to be adjusted accordingly, but I never saw a CI failure with my PR or noticed any issues when building locally (it is possible there was an oversight).

In any case, I would like to know what needs to be done when we make such changes in order to prevent any future issues (to do it the right way next time).
Finally, please let me know if I can help in some way to resolve this.

@ericstj
Copy link
Member

ericstj commented Jul 26, 2023

Don't worry about this for now @ivanpovazan. We'll get it fixed.

Once we can pick up a new SDK from Preview7 you'll begin seeing a build diagnostic (warning as error) when we have suppressions for missing API that is actually present. When you see that you can run dotnet build /p:ApiCompatGenerateSuppressionFile=true to update the suppressions. Have a look at #89524 to see what the result is.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 26, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 27, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.