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

[mono][android] Failure in SourceGeneration.Unit.Tests #93592

Closed
jandupej opened this issue Oct 17, 2023 · 4 comments · Fixed by #93709
Closed

[mono][android] Failure in SourceGeneration.Unit.Tests #93592

jandupej opened this issue Oct 17, 2023 · 4 comments · Fixed by #93709
Labels
area-Extensions-Options blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-android
Milestone

Comments

@jandupej
Copy link
Member

jandupej commented Oct 17, 2023

Occurs on net9.0-linux-Release-arm64-Mono_Release_LinuxBionic-Windows.10.Amd64.Android.Open and net9.0-linux-Release-x64-Mono_Release_LinuxBionic-Ubuntu.2204.Amd64.Android.29.Open.

There is a single failing test, with the following output:

Assert.Equal() Failure
                                 ↓ (pos 1)
Expected: ···ttributes.P0 m"..., "P11: The field OptionsUsingGeneratedAttr···
Actual:   ···ttributes.P0 m"..., "P11: The field OptionsUsingGeneratedAttr···
                                 ↑ (pos 1)
Stack Trace:
  /_/src/libraries/Microsoft.Extensions.Options/tests/SourceGeneration.Unit.Tests/OptionsRuntimeTests.cs(361,0): at Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes()
  /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs(22,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
  /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Logs:

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=439813
Build error leg or test failing: Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
Pull request: #93547

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "P11: The field OptionsUsingGenerated",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=439813
Error message validated: P11: The field OptionsUsingGenerated
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/17/2023 8:33:26 AM UTC

Report

Build Definition Test Pull Request
444074 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #93594
443974 dotnet/runtime Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes #93724
443717 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
443533 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
443348 dotnet/runtime Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes
443125 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
442968 dotnet/runtime Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes
442747 dotnet/runtime Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes
442269 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
442238 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #91800
441958 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
441762 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
441700 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
441488 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440723 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440640 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #93182
440293 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #91560
440312 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440248 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440106 dotnet/runtime Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes
439813 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #93547
439390 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
7 22 22
@jandupej jandupej added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-android area-Codegen-JIT-mono Known Build Error Use this to report build issues in the .NET Helix tab labels Oct 17, 2023
@jandupej jandupej added this to the 9.0.0 milestone Oct 17, 2023
@ghost
Copy link

ghost commented Oct 17, 2023

Tagging subscribers to 'arch-android': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Occurs on net9.0-linux-Release-arm64-Mono_Release_LinuxBionic-Windows.10.Amd64.Android.Open and net9.0-linux-Release-x64-Mono_Release_LinuxBionic-Ubuntu.2204.Amd64.Android.29.Open.

There is a single failing test, with the following output:

Assert.Equal() Failure
                                 ↓ (pos 1)
Expected: ···ttributes.P0 m"..., "P11: The field OptionsUsingGeneratedAttr···
Actual:   ···ttributes.P0 m"..., "P11: The field OptionsUsingGeneratedAttr···
                                 ↑ (pos 1)
Stack Trace:
  /_/src/libraries/Microsoft.Extensions.Options/tests/SourceGeneration.Unit.Tests/OptionsRuntimeTests.cs(361,0): at Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes()
  /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs(22,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
  /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Logs:

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=439813
Build error leg or test failing: Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
Pull request: #93547

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "P11: The field OptionsUsingGenerated",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Author: jandupej
Assignees: -
Labels:

blocking-clean-ci, os-android, area-Codegen-JIT-mono, Known Build Error

Milestone: 9.0.0

@tmds
Copy link
Member

tmds commented Oct 18, 2023

I see this error also on our CI on Fedora 38 (with CoreCLR).

Educated guess:

"P11: The field OptionsUsingGeneratedAttributes.P11 must be between 1/30/2023 12:00:00 AM and 12/30/2023 12:00:00 AM."

libicu on Fedora 38 is using a narrow no-break space instead of a regular space before the AM.
That may be the source if the inequality.

@akoeplinger
Copy link
Member

interesting, that could be. @tarekgh any ideas?

@ghost
Copy link

ghost commented Oct 18, 2023

Tagging subscribers to this area: @dotnet/area-extensions-options
See info in area-owners.md if you want to be subscribed.

Issue Details

Occurs on net9.0-linux-Release-arm64-Mono_Release_LinuxBionic-Windows.10.Amd64.Android.Open and net9.0-linux-Release-x64-Mono_Release_LinuxBionic-Ubuntu.2204.Amd64.Android.29.Open.

There is a single failing test, with the following output:

Assert.Equal() Failure
                                 ↓ (pos 1)
Expected: ···ttributes.P0 m"..., "P11: The field OptionsUsingGeneratedAttr···
Actual:   ···ttributes.P0 m"..., "P11: The field OptionsUsingGeneratedAttr···
                                 ↑ (pos 1)
Stack Trace:
  /_/src/libraries/Microsoft.Extensions.Options/tests/SourceGeneration.Unit.Tests/OptionsRuntimeTests.cs(361,0): at Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes()
  /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs(22,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
  /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Logs:

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=439813
Build error leg or test failing: Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
Pull request: #93547

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "P11: The field OptionsUsingGenerated",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=439813
Error message validated: P11: The field OptionsUsingGenerated
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/17/2023 8:33:26 AM UTC

Report

Build Definition Test Pull Request
442269 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
442238 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #91800
441958 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
441762 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
441700 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
441488 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440723 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440640 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #93182
440293 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #91560
440312 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440248 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution
440106 dotnet/runtime Microsoft.Gen.OptionsValidation.Unit.Test.OptionsRuntimeTests.TestCustomGeneratedAttributes
439813 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #93547
439390 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
6 14 14
Author: jandupej
Assignees: -
Labels:

blocking-clean-ci, os-android, area-Extensions-Options, Known Build Error

Milestone: 9.0.0

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Oct 19, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Oct 19, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Nov 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Extensions-Options blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-android
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants