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

[Android] Android x86 emulator failures in System.Diagnostics.DiagnosticSource runtime metrics #105203

Closed
matouskozak opened this issue Jul 21, 2024 · 4 comments
Labels
arch-x86 area-System.Diagnostics.Metric Known Build Error Use this to report build issues in the .NET Helix tab os-android
Milestone

Comments

@matouskozak
Copy link
Member

matouskozak commented Jul 21, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=748618
Build error leg or test failing: System.Diagnostics.DiagnosticSource.Tests
Affected CI: android_x86_release_allsubsets_mono (runtime-extra-platforms)

Stack trace example:

07-20 10:08:58.329 16840 16860 I DOTNET  : 1) 	[FAIL] System.Diagnostics.Metrics.Tests.RuntimeMetricsTests.GcCollectionsCount   Test name: System.Diagnostics.Metrics.Tests.RuntimeMetricsTests.GcCollectionsCount
07-20 10:08:58.329 16840 16860 I DOTNET  :    Assembly:  [System.Diagnostics.DiagnosticSource.Tests, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
07-20 10:08:58.329 16840 16860 I DOTNET  :    Exception messages: Expected to find a measurement for 'gen0'.   Exception stack traces:    at System.Diagnostics.Metrics.Tests.RuntimeMetricsTests.GcCollectionsCount() in /_/src/libraries/System.Diagnostics.DiagnosticSource/tests/RuntimeMetricsTests.cs:line 111
07-20 10:08:58.329 16840 16860 I DOTNET  :    at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
07-20 10:08:58.329 16840 16860 I DOTNET  :    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Error Message

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

{
  "ErrorMessage": "Expected to find a measurement for 'gen0'",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=748618
Error message validated: [Expected to find a measurement for 'gen0']
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/21/2024 4:49:54 PM UTC

Report

Build Definition Test Pull Request
758343 dotnet/runtime System.Diagnostics.Metrics.Tests.RuntimeMetricsTests.GcCollectionsCount
748618 dotnet/runtime System.Diagnostics.Metrics.Tests.RuntimeMetricsTests.GcCollectionsCount

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 2
@matouskozak matouskozak added arch-x86 blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-android untriaged New issue has not been triaged by the area owner Known Build Error Use this to report build issues in the .NET Helix tab labels Jul 21, 2024
Copy link
Contributor

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

@matouskozak
Copy link
Member Author

matouskozak commented Jul 21, 2024

Similar to #105202, likely related to the new tests introduced in #104680, affecting only x86 Android emulator at the moment. Do you know if these tests should be disabled or same changes are needed for them to work on x86 Android emulators? @stevejgordon @tarekgh ?

Edit. Looks like the failure is not 100% reproducible since I've seen only two failures on rolling-builds from 2024/07/20 so far.

@matouskozak matouskozak changed the title [Android] Mobile failures in System.Diagnostics.DiagnosticSource runtime metrics [Android] Android x86 emulator failures in System.Diagnostics.DiagnosticSource runtime metrics Jul 21, 2024
@matouskozak matouskozak removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Jul 21, 2024
@tarekgh tarekgh added this to the 9.0.0 milestone Jul 21, 2024
@tarekgh tarekgh removed the untriaged New issue has not been triaged by the area owner label Jul 21, 2024
@stevejgordon
Copy link
Contributor

@matouskozak I'd say it's best and safe to disable these on the affected platforms.

@matouskozak
Copy link
Member Author

@matouskozak I'd say it's best and safe to disable these on the affected platforms.

Thank you @stevejgordon, is the same approach the best for #105202 as well?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x86 area-System.Diagnostics.Metric Known Build Error Use this to report build issues in the .NET Helix tab os-android
Projects
None yet
Development

No branches or pull requests

3 participants