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

feat: Platform runtime helper #18758

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

fix: Removed MacOS from runtimes list

6a0eb4f
Select commit
Loading
Failed to load commit list.
Open

feat: Platform runtime helper #18758

fix: Removed MacOS from runtimes list
6a0eb4f
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Uno.UI - CI failed Dec 17, 2024 in 2h 4m 55s

Build #5.6.0-PullRequest-18758-150465-18758.1232 had test failures

Details

Tests

  • Failed: 197 (0.20%)
  • Passed: 89,245 (90.41%)
  • Other: 9,264 (9.39%)
  • Total: 98,706

Annotations

Check failure on line 19 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

Build log #L19

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 6 in src\Uno.UI.Toolkit\RuntimeHelper.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

src\Uno.UI.Toolkit\RuntimeHelper.cs#L6

src\Uno.UI.Toolkit\RuntimeHelper.cs(6,14): Error CS0234: The type or namespace name 'Helpers' does not exist in the namespace 'Uno.UI' (are you missing an assembly reference?)

Check failure on line 486 in C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets#L486

C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets(486,5): Error MSB4181: The "CompileXaml" task returned false but did not log an error.

Check failure on line 20 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

Build log #L20

Process 'msbuild.exe' exited with code '1'.

Check failure on line 1 in When_Stretch(None, True)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

When_Stretch(None, True)

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.Fail failed. ImageAssert.HasColorAt @ line 112
====================
Color at (50,6) is not expected
expected: FF0ED145 #FF0ED145
actual  : 00000000 #00000000
tolerance : 28
difference: 255
screenshot size: 100x100

   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertFailed(String assertionName, String message)
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message, Object[] parameters)
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message)
   at Uno.UI.RuntimeTests.Helpers.ImageAssert.HasColorAtImpl(RawBitmap screenshot, Int32 x, Int32 y, Color expectedColor, Byte tolerance, Int32 line)
   at Uno.UI.RuntimeTests.Helpers.ImageAssert.HasColorAt(RawBitmap screenshot, Single x, Single y, String expectedColorCode, Byte tolerance, Int32 line)
   at Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Media.Given_ImageBrush.<>c__DisplayClass0_0.<<When_Stretch>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Uno.UI.RuntimeTests.Helpers.TestHelper.RetryAssert(Func`1 assertion, Int32 count)
   at Uno.UI.RuntimeTests.Helpers.TestHelper.RetryAssert(Func`1 assertion, Int32 count)
   at Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Media.Given_ImageBrush.When_Stretch(Stretch stretch, Boolean useRectangle)
   at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass63_1.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext()

Check failure on line 1 in When_IsSkia()

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

When_IsSkia()

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Expected boolean to be true, but found False.
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Primitives.BooleanAssertions.BeTrue(String because, Object[] becauseArgs)
   at Uno.UI.RuntimeTests.Tests.Uno_UI_Toolkit.Given_RuntimePlatformDetected.When_IsSkia() in C:\a\1\s\src\Uno.UI.RuntimeTests\Tests\Uno_UI_Toolkit\Given_RuntimePlatformDetected.cs:line 31
   at InvokeStub_Given_RuntimePlatformDetected.When_IsSkia(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in SamplesApp.UITests.Windows_ApplicationModel_Resources.ResourceLoader_Simple.ValidateResourceLoader_Simple

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

SamplesApp.UITests.Windows_ApplicationModel_Resources.ResourceLoader_Simple.ValidateResourceLoader_Simple

System.Exception : Error while performing WaitForElement(All().Marked("sampleControl"), "Timed out waiting for element...", 00:00:05, null, null)
  ----> System.TimeoutException : Timed out waiting for element...
TearDown : System.Exception : Error while performing Invoke("GetScreenshot", "0")
  ----> System.Net.Http.HttpRequestException : An error occurred while sending the request.
  ----> System.Net.Http.HttpIOException : The response ended prematurely. (ResponseEnded)
Raw output
   at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
   at Xamarin.UITest.Android.AndroidApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
   at Uno.UITest.Xamarin.XamarinApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
   at SamplesApp.UITests.SampleControlUITestBase.Run(String metadataName, Boolean waitForSampleControl, Boolean skipInitialScreenshot, Int32 sampleLoadTimeout) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 472
   at SamplesApp.UITests.Windows_ApplicationModel_Resources.ResourceLoader_Simple.ValidateResourceLoader_Simple() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_ApplicationModel_Resources/ResourceLoader_Simple.cs:line 20
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--TimeoutException
   at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T](Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
   at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass80_0.<WaitForElement>b__0()
   at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--TearDown
   at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
   at Xamarin.UITest.Android.AndroidApp.Invoke(String methodName, Object argument)
   at Uno.UITest.Xamarin.XamarinApp.Invoke(String methodName, Object argument)
   at Uno.UITest.Helpers.BackdoorInvocationHelper.InvokeGeneric(IApp app, String methodName, Object arg1)
   at SamplesApp.UITests.Extensions.AppExtensions.GetInAppScreenshot(IApp app) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Extensions/AppExtensions.cs:line 61
   at SamplesApp.UITests.SampleControlUITestBase.GetNativeScreenshot(String title) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 347
   at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, ScreenshotOptions options) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 307
   at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, Nullable`1 ignoreInSnapshotCompare) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 288
   at SamplesApp.UITests.SampleControlUITestBase.AfterEachTest() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 234
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--HttpRequestException
   at Xamarin.UITest.Shared.Http.HttpClient.SendData(String endpoint, String method, HttpContent content, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
   at Xamarin.UITest.Shared.Http.HttpClient.Post(String endpoint, Object arguments, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
   at Xamarin.UITest.Android.AndroidGestures.Invoke(String methodName, Object[] arguments)
   at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass88_0.<Invoke>b__0()
   at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--HttpIOException
   at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

Check failure on line 1 in When_IsUnoIsKnown()

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Uno.UI - CI

When_IsUnoIsKnown()

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Did not expect object to be equal to Unknown.
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Primitives.ObjectAssertions.NotBe(Object unexpected, String because, Object[] becauseArgs)
   at Uno.UI.RuntimeTests.Tests.Uno_UI_Toolkit.Given_RuntimePlatformDetected.When_IsUnoIsKnown() in C:\a\1\s\src\Uno.UI.RuntimeTests\Tests\Uno_UI_Toolkit\Given_RuntimePlatformDetected.cs:line 77
   at InvokeStub_Given_RuntimePlatformDetected.When_IsUnoIsKnown(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)