The event-bus test for broker events from another instance no longer fails at random in CI #267
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#267
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Ninlil.Dns.Server.Core.Tests.EventBus.DnsServerEventBusTests.ReceiveFromBroker_OfAnotherInstancesEvent_ReachesOnlyRemoteAwareSubscribersfails intermittently in CI and passes locally (5 of 5 runs). It failed the Test .NET job of the
push run on develop at
7fee823d(runner asgard, task 4327) and, very likely, of PR #266's run 969:Line 90 is
Assert.Single(bus.Remote.Zones): the drain marker was seen before the remote zoneevent reached the remote-aware subscriber. On paper the order holds (
BrokerEventConsumerService.HandleEnvelopeenqueues into the control channel synchronously, the dispatcher reads control before lossy, and the
marker is lossy), so the race is somewhere less obvious: in the fake transport's callback, the
consumer's start-up,
LocalSubscriber.ArmMarker/MarkerSeen, or a stale marker.What changes
Find the race (reproduce under load, for example
stressor many parallel runs), fix its cause inthe test harness or the bus, and say in a comment why the order now holds. Do not paper over it
with a longer wait or a retry.
Acceptance
dotnet test src/dotnet/tests/Ninlil.Dns.Server.Core.Testspasses.Ghost referenced this issue2026-11-04 23:56:58 -05:00