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

perf(x11): use a Timer instead of a DispatcherTimer for render callbacks #19054

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

chore: formatting

17a70a9
Select commit
Loading
Failed to load commit list.
Open

perf(x11): use a Timer instead of a DispatcherTimer for render callbacks #19054

chore: formatting
17a70a9
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Uno.UI - CI succeeded Dec 24, 2024 in 1h 4m 9s

Build #5.6.0-PullRequest-19054-150796-19054.1236 had test failures

Details

Tests

  • Failed: 976 (0.83%)
  • Passed: 107,269 (91.04%)
  • Other: 9,579 (8.13%)
  • Total: 117,824

Annotations

Check failure on line 117 in Build log

See this annotation in the file changed.

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

Build log #L117

Bash exited with code '2'.

Check failure on line 1 in When_MaxVisiblePips_GreaterThan_NumberOfPages_Horizontal()

See this annotation in the file changed.

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

When_MaxVisiblePips_GreaterThan_NumberOfPages_Horizontal()

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.Fail failed. ImageAssert.HasColorAt @ line 45
====================
Color at (55,10) is not expected
expected: B1000000 #B1000000
actual  : FF000000 #FF000000
tolerance : 0
difference: 78
screenshot size: 60x20

   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, Color expectedColor, Byte tolerance, Int32 line)
   at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Xaml_Controls.Given_PipsPager.When_MaxVisiblePips_GreaterThan_NumberOfPages_Horizontal()
   at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass63_1.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext()

Check failure on line 1 in SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.When_DragElementNestedInDraggableElement

See this annotation in the file changed.

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

SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.When_DragElementNestedInDraggableElement

  Expecting STARTING event, but reached the end of the log.
  Expected: True
  But was:  False
Raw output
   at SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.<RunTest>g__AssertEvent|3_5(String expectedSender, String expectedEvent, <>c__DisplayClass3_0&) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml/DragAndDropTests/DragDrop_Nested_Automated.cs:line 122
   at SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.RunTest(String testName) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml/DragAndDropTests/DragDrop_Nested_Automated.cs:line 80
   at SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.When_DragElementNestedInDraggableElement() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml/DragAndDropTests/DragDrop_Nested_Automated.cs:line 24

1)    at SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.<RunTest>g__AssertEvent|3_5(String expectedSender, String expectedEvent, <>c__DisplayClass3_0&) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml/DragAndDropTests/DragDrop_Nested_Automated.cs:line 122
   at SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.RunTest(String testName) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml/DragAndDropTests/DragDrop_Nested_Automated.cs:line 80
   at SamplesApp.UITests.Windows_UI_Xaml.DragAndDropTests.DragDrop_Nested_Automated.When_DragElementNestedInDraggableElement() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml/DragAndDropTests/DragDrop_Nested_Automated.cs:line 24

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 SamplesApp.UITests.Windows_UI_Core.SystemNavigationManagerTests.When_Hardware_Back_Button_Pressed

See this annotation in the file changed.

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

SamplesApp.UITests.Windows_UI_Core.SystemNavigationManagerTests.When_Hardware_Back_Button_Pressed

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_UI_Core.SystemNavigationManagerTests.When_Hardware_Back_Button_Pressed() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Core/SystemNavigationManagerTests.cs:line 17
   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)