Skip to content

[Host] Adds message header filtering for consumers #1742

[Host] Adds message header filtering for consumers

[Host] Adds message header filtering for consumers #1742

Triggered via pull request December 3, 2025 08:56
@t11omast11omas
synchronize #447
Status Failure
Total duration 4m 26s
Artifacts 1

build.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 10 warnings
SlimMessageBus.Host.Memory.Test.MemoryMessageBusTests ► When_Publish_Given_TwoConsumersOnSameTopic_WithDifferentFilters_Then_OnlyMatchingConsumerInvoked: src/Tests/SlimMessageBus.Host.Memory.Test/MemoryMessageBusTests.cs#L602
Failed test found in: ./test-results/SlimMessageBus.Host.Memory.Test_Unit_net9.0_20251203085957.trx Error: Moq.MockException : Expected invocation on the mock should never have been performed, but was 1 times: x => x.OnHandle(It.IsAny<SomeMessageA>(), It.IsAny<CancellationToken>()) Performed invocations: Mock<SomeMessageAConsumer2:2> (x): SomeMessageAConsumer2.OnHandle(SomeMessageA { Value = e3c7571f-2696-4644-9ddf-7e20be473536 }, CancellationToken)
SlimMessageBus.Host.Test.MessageBusBaseTests ► When_Produce_Given_LongRunningCreateInterceptor_Then_ProduceWaitsUntilInterceptorFinishes(isPublish: True): src/Tests/SlimMessageBus.Host.Test/MessageBusTested.cs#L87
Failed test found in: ./test-results/SlimMessageBus.Host.Test_Unit_net9.0_20251203090019.trx Error: System.NullReferenceException : Object reference not set to an instance of an object.
build
Failed test were found and 'fail-on-error' option is set to ***
build
Process completed with exit code 1.
build: src/SlimMessageBus.Host/Consumer/MessageProcessors/MessageProcessor.cs#L81
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
build: src/SlimMessageBus.Host.Serialization.SystemTextJson/JsonMessageSerializer.cs#L19
Remove this call from a constructor to the overridable 'CreateDefaultOptions' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)
build: src/SlimMessageBus.Host/Consumer/MessageProcessors/MessageProcessor.cs#L188
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
build: src/SlimMessageBus.Host/Consumer/MessageProcessors/MessageProcessor.cs#L81
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
build: src/SlimMessageBus.Host/Hybrid/HybridMessageBus.cs#L37
Remove this call from a constructor to the overridable 'BuildBus' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)
build: src/SlimMessageBus.Host.Serialization.SystemTextJson/JsonMessageSerializer.cs#L19
Remove this call from a constructor to the overridable 'CreateDefaultOptions' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)
build: src/SlimMessageBus.Host/Consumer/MessageProcessors/MessageProcessor.cs#L188
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
build: src/SlimMessageBus.Host/Consumer/MessageProcessors/MessageProcessor.cs#L81
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
build: src/SlimMessageBus.Host/Hybrid/HybridMessageBus.cs#L37
Remove this call from a constructor to the overridable 'BuildBus' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)
build: src/SlimMessageBus.Host.Serialization.SystemTextJson/JsonMessageSerializer.cs#L19
Remove this call from a constructor to the overridable 'CreateDefaultOptions' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)

Artifacts

Produced during runtime
Name Size Digest
test-results
191 KB
sha256:15d0158915a3686c6fc7e74c702d134af003d0ffb6999b0d8f3433d3944463d1