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

Use DispatcherTaskScheduler instead of TaskScheduler.FromCurrentSynchronizationContext #17825

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

Use DispatcherTaskScheduler instead of TaskScheduler.FromCurrentSynch…

7ae9fcc
Select commit
Loading
Failed to load commit list.
Open

Use DispatcherTaskScheduler instead of TaskScheduler.FromCurrentSynchronizationContext #17825

Use DispatcherTaskScheduler instead of TaskScheduler.FromCurrentSynch…
7ae9fcc
Select commit
Loading
Failed to load commit list.
Azure Pipelines / AvaloniaUI.Avalonia failed Dec 24, 2024 in 15m 5s

Build #20241224.4 had test failures

Details

Tests

  • Failed: 18 (0.23%)
  • Passed: 7,717 (98.81%)
  • Other: 75 (0.96%)
  • Total: 7,810

Annotations

Check failure on line 1367 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Build log #L1367

[xUnit.net 00:00:04.96]     Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled [FAIL]

Check failure on line 1390 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Build log #L1390

[xUnit.net 00:00:04.98]     Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Update_Data_Validation_On_Task_Exception [FAIL]

Check failure on line 1402 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Build log #L1402

[xUnit.net 00:00:05.06]     Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Get_Property_Value_From_Task [FAIL]

Check failure on line 1427 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Build log #L1427

[xUnit.net 00:00:08.62]     Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Update_Data_Validation_On_Task_Exception [FAIL]

Check failure on line 1 in Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled

Assert.Equal() Failure: Strings differ
Expected: "foo"
Actual:   null
Raw output
   at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 117
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Update_Data_Validation_On_Task_Exception

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Update_Data_Validation_On_Task_Exception

Assert.True() Failure
Expected: True
Actual:   False
Raw output
   at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.AssertBindingError(TargetClass target, AvaloniaProperty property, Exception expectedException, BindingErrorType errorType) in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.DataValidation.cs:line 425
   at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Update_Data_Validation_On_Task_Exception() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 73
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled

System.AggregateException : One or more errors occurred. (Assert.Equal() Failure: Strings differ
Expected: "foo"
Actual:   null) (The test left 1 unprocessed dispatcher job:
  - Avalonia.Threading.DispatcherTaskScheduler.QueueTaskCallback [Default]
Consider using ScopedTestBase or UnitTestApplication.Start().)
---- Assert.Equal() Failure: Strings differ
Expected: "foo"
Actual:   null
---- The test left 1 unprocessed dispatcher job:
  - Avalonia.Threading.DispatcherTaskScheduler.QueueTaskCallback [Default]
Consider using ScopedTestBase or UnitTestApplication.Start().
Raw output
----- Inner Stack Trace #1 (Xunit.Sdk.EqualException) -----
   at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 117
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace #2 (Xunit.Sdk.FailException) -----
   at Avalonia.UnitTests.VerifyEmptyDispatcherAfterTestAttribute.After(MethodInfo methodUnderTest) in /home/vsts/work/1/s/tests/Avalonia.UnitTests/VerifyEmptyDispatcherAfterTestAttribute.cs:line 29

Check failure on line 1 in Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Update_Data_Validation_On_Task_Exception

See this annotation in the file changed.

@azure-pipelines azure-pipelines / AvaloniaUI.Avalonia

Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Update_Data_Validation_On_Task_Exception

Assert.True() Failure
Expected: True
Actual:   False
Raw output
   at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.AssertBindingError(TargetClass target, AvaloniaProperty property, Exception expectedException, BindingErrorType errorType) in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.DataValidation.cs:line 425
   at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Update_Data_Validation_On_Task_Exception() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 73
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)