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

[Apple] New Environment.CpuUsage tests failing on Apple mobile #105322

Closed
matouskozak opened this issue Jul 23, 2024 · 5 comments · Fixed by #105722
Closed

[Apple] New Environment.CpuUsage tests failing on Apple mobile #105322

matouskozak opened this issue Jul 23, 2024 · 5 comments · Fixed by #105722
Assignees
Labels
arch-arm64 arch-x64 area-System.Runtime 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-ios Apple iOS os-tvos Apple tvOS
Milestone

Comments

@matouskozak
Copy link
Member

matouskozak commented Jul 23, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=750924
Build error leg or test failing: System.Tests.EnvironmentTests.TestCpuUsage, System.Diagnostics.Metrics.Tests.RuntimeMetricsTests.CpuTime
Affected CI: tvos_arm64_release_allsubsets_mono, [ios/tvos]simulator_x64_release_allsubsets_mono (runtime-extra-platforms
Range of commits: f304e99...b252fa5

Stack trace example:

[18:23:54] dbug: 2024-07-22 18:23:54.787192-0400 System.Runtime.Extensions.Tests[42406:561226] 	[FAIL] System.Tests.EnvironmentTests.TestCpuUsage
[18:23:54] dbug: Assert.Equal() Failure: Values differ
[18:23:54] dbug: Expected: 00:00:00
[18:23:54] dbug: Actual:   00:00:28.3581230
[18:23:54] dbug: at System.Tests.EnvironmentTests.TestCpuUsage()
[18:23:54] dbug: 2024-07-22 18:23:54.787476-0400 System.Runtime.Extensions.Tests[42406:561226]    at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
[18:23:54] dbug: at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Error Message

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

{
  "ErrorMessage": "[FAIL] System.Tests.EnvironmentTests.TestCpuUsage",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=750924
Error message validated: [[FAIL] System.Tests.EnvironmentTests.TestCpuUsage]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/23/2024 3:32:24 PM UTC

Report

Build Definition Test Pull Request
758343 dotnet/runtime System.Runtime.Extensions.Tests.WorkItemExecution
757260 dotnet/runtime System.Runtime.Extensions.Tests.WorkItemExecution
755747 dotnet/runtime System.Runtime.Extensions.Tests.WorkItemExecution
751577 dotnet/runtime System.Runtime.Extensions.Tests.WorkItemExecution
750924 dotnet/runtime System.Runtime.Extensions.Tests.WorkItemExecution

Summary

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

Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to 'os-tvos': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

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

@matouskozak
Copy link
Member Author

Likely introduced by the new tests from #105152 @tarekgh. I see there is an assumption that on iOS and TvOS the times should be zero. Is this something we should reconsider in the test design and try to enable the "regular" path for these platforms?

@tarekgh tarekgh self-assigned this Jul 23, 2024
@vitek-karas vitek-karas added this to the 9.0.0 milestone Jul 24, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Jul 24, 2024
@matouskozak
Copy link
Member Author

The failures are still present on the CI https://dev.azure.com/dnceng-public/public/_build/results?buildId=763399&view=logs&j=acac6bf3-3edd-5022-4e45-3362a02520b1&t=1de8bf71-8fe5-5d5c-4360-8c2eb159d012. This time only on tvos_arm64_release_allsubsets_mono pipeline (actual tvOS device, not simulator) @tarekgh

[18:41:26.5988610] 2024-08-01 15:41:26.621 System.Runtime.Extensions.Tests[26622:107344504] 	[FAIL] System.Tests.EnvironmentTests.TestCpuUsage
[18:41:26.5988980] Assert.NotEqual() Failure: Values are equal
[18:41:26.5989060] Expected: Not 00:00:00
[18:41:26.5989120] Actual:       00:00:00
[18:41:26.5989170]    at System.Tests.EnvironmentTests.TestCpuUsage()

@matouskozak matouskozak reopened this Aug 2, 2024
@tarekgh tarekgh closed this as completed Aug 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 arch-x64 area-System.Runtime 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-ios Apple iOS os-tvos Apple tvOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants