Skip to content

Replace legacy EventSource providers with source-generated logging#4058

Open
marcschier wants to merge 3 commits into
masterfrom
remove-legacy-eventsource
Open

Replace legacy EventSource providers with source-generated logging#4058
marcschier wants to merge 3 commits into
masterfrom
remove-legacy-eventsource

Address logging review feedback

4791bd1
Select commit
Loading
Failed to load commit list.
Azure Pipelines / OPCFoundation.UA-.NETStandard failed Jul 22, 2026 in 8m 8s

Build #2.0.123-preview+38052ace6c had test failures

Details

Tests

  • Failed: 6 (0.01%)
  • Passed: 107,564 (97.82%)
  • Other: 2,392 (2.18%)
  • Total: 109,962

Annotations

Check failure on line 52 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Build log #L52

Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1

Check failure on line 55 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Build log #L55

Dotnet command failed with non-zero exit code on the following projects : [
  'D:\\a\\_work\\1\\s\\tests\\Opc.Ua.PubSub.Udp.Tests\\Opc.Ua.PubSub.Udp.Tests.csproj'
]

Check failure on line 13 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Build log #L13

1 test(s) failed or the run was aborted mid-execution.

Check failure on line 14 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Build log #L14

PowerShell exited with code '1'.

Check failure on line 1 in Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

  Assert.That(caughtException, expression)
  Expected: <Opc.Ua.ServiceResultException>
  But was:  <System.TimeoutException: The operation has timed out.
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<>c__DisplayClass29_0.<<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>b__1>d.MoveNext() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1076
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, Func`1 asyncCode, String message, Object[] args)>
Raw output
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1075
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1090
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

1)    at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1075
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)

Check failure on line 1 in Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

  Assert.That(caughtException, expression)
  Expected: <Opc.Ua.ServiceResultException>
  But was:  <System.TimeoutException: The operation has timed out.
   at System.Threading.Tasks.PolyFills.<WaitAsync>d__1.MoveNext() in /_/src/Opc.Ua.Types/Polyfills/System.Threading.Tasks.cs:line 108
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<>c__DisplayClass29_0.<<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>b__1>d.MoveNext() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1076
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, Func`1 asyncCode, String message, Object[] args)>
Raw output
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>d__29.MoveNext() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1090
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

1)    at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>d__29.MoveNext()

Check failure on line 1 in Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

  Assert.That(caughtException, expression)
  Expected: <Opc.Ua.ServiceResultException>
  But was:  <System.TimeoutException: The operation has timed out.
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<>c__DisplayClass29_0.<<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>b__1>d.MoveNext() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1076
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, Func`1 asyncCode, String message, Object[] args)>
Raw output
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1075
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1090
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

1)    at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1075
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)

Check failure on line 1 in Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / OPCFoundation.UA-.NETStandard

Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync

  Assert.That(caughtException, expression)
  Expected: <Opc.Ua.ServiceResultException>
  But was:  <System.TimeoutException: The operation has timed out.
   at System.Threading.Tasks.PolyFills.<WaitAsync>d__1.MoveNext() in /_/src/Opc.Ua.Types/Polyfills/System.Threading.Tasks.cs:line 108
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<>c__DisplayClass29_0.<<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>b__1>d.MoveNext() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1076
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Assert.ThrowsAsync(IResolveConstraint expression, Func`1 asyncCode, String message, Object[] args)>
Raw output
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>d__29.MoveNext() in /_/tests/Opc.Ua.Core.Tests/Stack/Client/ClientChannelManagerManagedTests.cs:line 1090
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

1)    at Opc.Ua.Core.Tests.Stack.Client.ClientChannelManagerManagedTests.<ReconnectAsyncWithBudgetShrinksDelayToFitRemainingAsync>d__29.MoveNext()