Skip to content

Attributes.OnlyKeepUsed.NullableOnConstraints failing in dotnet-linker-tests #90431

@ericstj

Description

@ericstj

Error Blob

{
  "ErrorMessage": "Failed Attributes.OnlyKeepUsed.NullableOnConstraints",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Failure:

  Failed Attributes.OnlyKeepUsed.NullableOnConstraints [912 ms]
  Error Message:
     Custom attributes on `T' are not matching
  Expected: equivalent to <empty>
  But was:  < "System.Runtime.CompilerServices.NullableAttribute" >
  Extra (1): < "System.Runtime.CompilerServices.NullableAttribute" >

  Stack Trace:
     at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyCustomAttributes(ICustomAttributeProvider src, ICustomAttributeProvider linked) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 833
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyGenericParameters(IGenericParameterProvider src, IGenericParameterProvider linked, Boolean compilerGenerated) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 1077
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyMethodKept(MethodDefinition src, MethodDefinition linked, Boolean compilerGenerated) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 548
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyMethodInternal(MethodDefinition src, MethodDefinition linked, Boolean expectedKept, Boolean compilerGenerated) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 512
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyMethod(MethodDefinition src, MethodDefinition linked) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 496
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyTypeDefinitionKept(TypeDefinition original, TypeDefinition linked) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 297
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyTypeDefinition(TypeDefinition original, TypeDefinition linked) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 169
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyTypeDefinitionKept(TypeDefinition original, TypeDefinition linked) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 271
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.VerifyTypeDefinition(TypeDefinition original, TypeDefinition linked) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 169
   at Mono.Linker.Tests.TestCasesRunner.AssemblyChecker.Verify() in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/AssemblyChecker.cs:line 75
   at Mono.Linker.Tests.TestCasesRunner.ResultChecker.Check(LinkedTestCaseResult linkResult) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs:line 102
   at Mono.Linker.Tests.TestCases.All.Run(TestCase testCase) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCases/TestSuites.cs:line 299
   at Mono.Linker.Tests.TestCases.All.AttributesTests(TestCase testCase) in /_/src/tools/illink/test/Mono.Linker.Tests/TestCases/TestSuites.cs:line 34
   at InvokeStub_All.AttributesTests(Object, Span`1)

Reproduction Steps

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=371500
Error message validated: Failed Attributes.OnlyKeepUsed.NullableOnConstraints
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 8/11/2023 9:53:00 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Tools-ILLink.NET linker development as well as trimming analyzersblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'linkable-frameworkIssues associated with delivering a linker friendly framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions