Skip to content

High performance logging #1392

High performance logging

High performance logging #1392

Triggered via push January 11, 2025 23:46
Status Failure
Total duration 4m 45s
Artifacts 1

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 11 warnings
SlimMessageBus.Host.Test.Hybrid.HybridMessageBusTest ► Given_UndeclaredRequestType_When_Send_Then_FollowsSettingsMode(mode: RaiseOneTimeLog): src/Tests/SlimMessageBus.Host.Test/Hybrid/HybridMessageBusTest.cs#L218
Failed test found in: ./test-results/SlimMessageBus.Host.Test_Unit_net8.0_20250111234949.trx Error: Moq.MockException : Expected invocation on the mock once, but was 0 times: x => x.Log<It.IsAnyType>(LogLevel.Information, It.IsAny<EventId>(), It.Is<It.IsAnyType>((x, _) => MoqMatchers.LogMessageMatcher(x, m => m.StartsWith("Could not find any bus that produces the message type: "))), It.IsAny<Exception>(), It.IsAny<Func<It.IsAnyType, Exception, string>>()) Performed invocations: Mock<ILogger<HybridMessageBusSettings>:12> (x): ILogger.IsEnabled(LogLevel.Debug) ILogger.IsEnabled(LogLevel.Information)
SlimMessageBus.Host.Test.Hybrid.HybridMessageBusTest ► Given_UndeclaredRequestTypeWithoutResponse_When_Send_Then_FollowsSettingsMode(mode: RaiseOneTimeLog): src/Tests/SlimMessageBus.Host.Test/Hybrid/HybridMessageBusTest.cs#L256
Failed test found in: ./test-results/SlimMessageBus.Host.Test_Unit_net8.0_20250111234949.trx Error: Moq.MockException : Expected invocation on the mock once, but was 0 times: x => x.Log<It.IsAnyType>(LogLevel.Information, It.IsAny<EventId>(), It.Is<It.IsAnyType>((x, _) => MoqMatchers.LogMessageMatcher(x, m => m.StartsWith("Could not find any bus that produces the message type: "))), It.IsAny<Exception>(), It.IsAny<Func<It.IsAnyType, Exception, string>>()) Performed invocations: Mock<ILogger<HybridMessageBusSettings>:4> (x): ILogger.IsEnabled(LogLevel.Debug) ILogger.IsEnabled(LogLevel.Information)
SlimMessageBus.Host.Test.Hybrid.HybridMessageBusTest ► Given_UndeclareMessageType_When_Publish_Then_FollowsSettingsMode(mode: RaiseOneTimeLog): src/Tests/SlimMessageBus.Host.Test/Hybrid/HybridMessageBusTest.cs#L179
Failed test found in: ./test-results/SlimMessageBus.Host.Test_Unit_net8.0_20250111234949.trx Error: Moq.MockException : Expected invocation on the mock once, but was 0 times: x => x.Log<It.IsAnyType>(LogLevel.Information, It.IsAny<EventId>(), It.Is<It.IsAnyType>((x, _) => MoqMatchers.LogMessageMatcher(x, m => m.StartsWith("Could not find any bus that produces the message type: "))), It.IsAny<Exception>(), It.IsAny<Func<It.IsAnyType, Exception, string>>()) Performed invocations: Mock<ILogger<HybridMessageBusSettings>:18> (x): ILogger.IsEnabled(LogLevel.Debug) ILogger.IsEnabled(LogLevel.Information)
build
Failed test were found and 'fail-on-error' option is set to ***
build
Process completed with exit code 1.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build: src/SlimMessageBus/RequestResponse/IRequest.cs#L7
'TResponse' is not used in the interface. (https://rules.sonarsource.com/csharp/RSPEC-2326)
build: src/SlimMessageBus/RequestResponse/IRequest.cs#L15
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
build: src/SlimMessageBus/RequestResponse/IRequest.cs#L15
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
build: src/SlimMessageBus/RequestResponse/IRequest.cs#L7
'TResponse' is not used in the interface. (https://rules.sonarsource.com/csharp/RSPEC-2326)
build: src/SlimMessageBus/RequestResponse/IRequest.cs#L15
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
build: src/SlimMessageBus/RequestResponse/IRequest.cs#L7
'TResponse' is not used in the interface. (https://rules.sonarsource.com/csharp/RSPEC-2326)
build: src/Tools/SecretStore/Secrets.cs#L5
Remove the field '_store' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
build: src/SlimMessageBus.Host.Configuration/TypeCollection.cs#L28
The parameter name 'type' is not declared in the argument list. (https://rules.sonarsource.com/csharp/RSPEC-3928)
build: src/SlimMessageBus.Host.Serialization.Json/JsonMessageSerializer.cs#L45
Either log this exception and handle it, or rethrow it with some contextual information. (https://rules.sonarsource.com/csharp/RSPEC-2139)
build: src/SlimMessageBus.Host.Serialization.SystemTextJson/JsonMessageSerializer.cs#L18
Remove this call from a constructor to the overridable 'CreateDefaultOptions' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)

Artifacts

Produced during runtime
Name Size
test-results
127 KB