dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.96k stars 4.65k forks source link

[mono] Mobile failures in TensorExtensionsTwoSpanInSpanOut #107244

Closed matouskozak closed 1 week ago

matouskozak commented 2 weeks ago

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=793084 Build error leg or test failing: System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInSpanOut Affected CI: Android arm/x64/x86, MacCatalyst x64/arm64, iOS/tvOS x64 (runtime-extra-platforms) Range of commits: https://github.com/dotnet/runtime/compare/aaec1c49...2694613a

Stack trace example:

2024-08-29 19:08:07.411 Df System.Numerics.Tensors.Tests[1935:3b9982] 1)    [FAIL] System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInSpanOut   Test name: System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInSpanOut<Single>(tensorPrimitivesOperation: TensorPrimitivesTwoSpanInSpanOut`1 { Method = Void Add(System.ReadOnlySpan`1[System.Single], System.ReadOnlySpan`1[System.Single], System.Span`1[System.Single]), Target = null }, tensorOperation: TensorTwoSpanInSpanOut`1 { Method = System.Numerics.Tensors.TensorSpan`1[System.Single]& Add[Single](System.Numerics.Tensors.ReadOnlyTensorSpan`1[System.Single] ByRef, System.Numerics.Tensors.ReadOnlyTensorSpan`1[System.Single] ByRef, System.Numerics.Tensors.TensorSpan`1[System.Single] ByRef), Target = null })   Test case: System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInSpanOut
   Assembly:  [System.Numerics.Tensors.Tests, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
2024-08-29 19:08:07.411 Df System.Numerics.Tensors.Tests[1935:3b9982]    Exception messages: Assert.All() Failure: 1 out of 12 items in the collection did not pass.
[11]: Item:  [1, 2, 3, 4, 5, ···]
2024-08-29 19:08:07.411 Df System.Numerics.Tensors.Tests[1935:3b9982]       Error: Index was outside the bounds of the array.   Exception stack traces:    at System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInSpanOut[Single](TensorPrimitivesTwoSpanInSpanOut`1 tensorPrimitivesOperation, TensorTwoSpanInSpanOut`1 tensorOperation)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
2024-08-29 19:08:07.411 Df System.Numerics.Tensors.Tests[1935:3b9982]    at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   Execution time: 0.0618239

Error Message

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

{
  "ErrorMessage": "Assert.All() Failure: 1 out of 12 items in the collection did not pass.",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=793084 Error message validated: [Assert.All() Failure: 1 out of 12 items in the collection did not pass.] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 9/7/2024 6:44:52 PM UTC

Report

Build Definition Test Pull Request
801271 dotnet/runtime System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut(tensorPrimitivesOperation: TensorPrimitivesTwoSpanInTOut1 { Method = Single Distance(System.ReadOnlySpan1[System.Single], System.ReadOnlySpan1[System.Single]), Target = null }, tensorOperation: TensorTwoSpanInTOut1 { Method = Single Distance[Single](System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef, System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef), Target = null }) dotnet/runtime#107499
801150 dotnet/runtime System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut(tensorPrimitivesOperation: TensorPrimitivesTwoSpanInTOut1 { Method = Single Distance(System.ReadOnlySpan1[System.Single], System.ReadOnlySpan1[System.Single]), Target = null }, tensorOperation: TensorTwoSpanInTOut1 { Method = Single Distance[Single](System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef, System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef), Target = null }) dotnet/runtime#107499
801061 dotnet/runtime System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut(tensorPrimitivesOperation: TensorPrimitivesTwoSpanInTOut1 { Method = Single Distance(System.ReadOnlySpan1[System.Single], System.ReadOnlySpan1[System.Single]), Target = null }, tensorOperation: TensorTwoSpanInTOut1 { Method = Single Distance[Single](System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef, System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef), Target = null }) dotnet/runtime#107499
801027 dotnet/runtime System.Numerics.Tensors.Tests.TensorSpanTests.TensorExtensionsTwoSpanInFloatOut(tensorPrimitivesOperation: TensorPrimitivesTwoSpanInTOut1 { Method = Single Distance(System.ReadOnlySpan1[System.Single], System.ReadOnlySpan1[System.Single]), Target = null }, tensorOperation: TensorTwoSpanInTOut1 { Method = Single Distance[Single](System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef, System.Numerics.Tensors.ReadOnlyTensorSpan1[System.Single] ByRef), Target = null })
794325 dotnet/runtime System.Numerics.Tensors.Tests.WorkItemExecution
793084 dotnet/runtime System.Numerics.Tensors.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 4 6
dotnet-policy-service[bot] commented 2 weeks ago

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

dotnet-policy-service[bot] commented 2 weeks ago

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

dotnet-policy-service[bot] commented 2 weeks ago

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

dotnet-policy-service[bot] commented 2 weeks ago

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

dotnet-policy-service[bot] commented 2 weeks ago

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

matouskozak commented 2 weeks ago

Could the failures be caused by https://github.com/dotnet/runtime/pull/106985 @michaelgsharp @tannergooding ?

vitek-karas commented 2 weeks ago

Possibly also related to https://github.com/dotnet/runtime/issues/107254 ?

matouskozak commented 1 week ago

Tracked at https://github.com/dotnet/runtime/issues/107254