Closed
Description
There seems to be some non-deterministic behavior since the assert fails like this which suggests the classes were generated in a different order:
Assert.Equal() Failure
↓ (pos 128490)
Expected: ··· class __SourceGen__MinLengthAttribute : global::System.Compo···
Actual: ··· class __SourceGen__RangeAttribute : global::System.Component···
↑ (pos 128490)
at Microsoft.Gen.OptionsValidation.Test.EmitterTests.TestEmitter() in /_/src/libraries/Microsoft.Extensions.Options/tests/SourceGenerationTests/EmitterTests.cs:line 56
--- End of stack trace from previous location ---
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=431517
Build error leg or test failing: Microsoft.Gen.OptionsValidation.Test.EmitterTests.TestEmitter
Pull request: #93201
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "",
"ErrorPattern": "Actual:.*class __SourceGen__RangeAttribute",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=431517
Error message validated: Actual:.*class __SourceGen__RangeAttribute
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/9/2023 3:03:46 PM UTC
Report
Summary
24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
---|---|---|
22 | 36 | 36 |