Develop push builds fail Test .NET on runners other than asgard #278

Closed
opened 2026-11-05 03:05:45 -05:00 by claude · 2 comments
Owner
  • Priority: high (develop has been red since the merge of #271, which hides real regressions)
  • Agent: coder, once the failing test is known
  • Depends on: a Test .NET log from a non-asgard runner

Why

The Test .NET job has failed on develop's push builds since run 1087 (runs 1087, 1090, 1093). It also failed on the push builds of feature/42 (1095) and feature/50 (1098). The pull-request builds of the same commits pass. Push builds run the RequiresDocker tests and pull-request builds skip them. The failing jobs ran on runners other than asgard, and their logs cannot be read from asgard.

What is known

  • On develop 30409f3b, every RequiresDocker test passes locally on asgard: Data.Integration 406, RabbitMq 3, ActiveMq 1, QueryLog 1.
  • The one failure seen in a readable log, PR #276's pull-request run 1097 on asgard, was Ninlil.Dns.Protocol.Plain.Tests.TcpZoneTransferDurationTests.AnAxfrThatOutlivesTheIdleTimeout_Completes. It threw NullReferenceException at line 36: the first transfer message came back null, so the server closed the connection before replying.
    • The test uses a 300 ms TcpIdleTimeout. Under CI load, the gap between accept and the query frame may exceed it.
    • The test passed 30 times locally, and 24 times under full CPU load.

What changes

  1. Get the failing test names from a non-asgard Test .NET log, for example run 1093, job 2.
  2. Fix each flaky test, or each runner-specific environment gap, that the log shows.
  3. Make TcpZoneTransferDurationTests tolerant of a slow first frame: start the idle clock after the query arrives, or use a longer idle time for the first read.

Acceptance

  • Develop's push build Test .NET job is green on two consecutive merges.
- **Priority:** high (develop has been red since the merge of #271, which hides real regressions) - **Agent:** coder, once the failing test is known - **Depends on:** a Test .NET log from a non-asgard runner ### Why The Test .NET job has failed on develop's push builds since run 1087 (runs 1087, 1090, 1093). It also failed on the push builds of feature/42 (1095) and feature/50 (1098). The pull-request builds of the same commits pass. Push builds run the `RequiresDocker` tests and pull-request builds skip them. The failing jobs ran on runners other than asgard, and their logs cannot be read from asgard. ### What is known - On develop 30409f3b, every `RequiresDocker` test passes locally on asgard: Data.Integration 406, RabbitMq 3, ActiveMq 1, QueryLog 1. - The one failure seen in a readable log, PR #276's pull-request run 1097 on asgard, was `Ninlil.Dns.Protocol.Plain.Tests.TcpZoneTransferDurationTests.AnAxfrThatOutlivesTheIdleTimeout_Completes`. It threw `NullReferenceException` at line 36: the first transfer message came back null, so the server closed the connection before replying. - The test uses a 300 ms `TcpIdleTimeout`. Under CI load, the gap between accept and the query frame may exceed it. - The test passed 30 times locally, and 24 times under full CPU load. ### What changes 1. Get the failing test names from a non-asgard Test .NET log, for example run 1093, job 2. 2. Fix each flaky test, or each runner-specific environment gap, that the log shows. 3. Make `TcpZoneTransferDurationTests` tolerant of a slow first frame: start the idle clock after the query arrives, or use a longer idle time for the first read. ### Acceptance - [ ] Develop's push build Test .NET job is green on two consecutive merges.
Author
Owner

Unblocked, 2026-11-06. The non-asgard logs can be read through a signed-in browser session at /lantea-one/ninlil/actions/runs/<run>/jobs/<job>/attempt/1/logs. The API has no log endpoint.

Develop push runs since 2026-11-05 14:46: 1208, 1211, 1215, 1218 and 1239 are green. 1222, 1225, 1231, 1235, 1246 and 1249 failed. Each failed run hits a different, small set of tests, so this is several flaky tests, not one regression. The pull-request gate only waited for lint, so none of this blocked a merge.

Run Job Failing tests
1249 (#338) Test .NET Dhcpv6RelayReceivingRoundTripTests.RelayForwardCarryingASolicit_..., Dhcpv4UdpRoundTripTests.Discover_WithServerAddressCustomOption_... (Dhcp.Server.Core.Tests). Both: OperationCanceledException from the test's own UDP ReceiveFromAsync, so no reply arrived within 5 or 7 s
1246 (#337) Test .NET PlainListenAddressTests.ABadAddress_IsLoggedAndReported_WhileTheOthersKeepAnswering
1235 Test .NET PlainListenAddressTests.NoListenAddresses_WhenThePortIsTaken_..., TlsZoneTransferClientTests.PullAsync_AgainstARealTlsPrimary_..., StorageSwitchReplicaTests.ScheduleSwitch_WithNoClusterSetting_IsSaved
1231 Test .NET Dhcpv4UdpRoundTripTests.Discover_WithServerAddressCustomOption_...
1231 Test Admin Console ClientAddressListComponent lists every one of the device's identifiers with its vendor and sightings, ClientListComponent renders presence, vendor, and the explicit icon over the suggestion
1225 Test .NET CloudDnsZoneSyncServiceTests.CloudSecondaryZonePullsInTheRemoteOnlyRecord, TokenBucketDnsRateLimiterTests.RefillsTokensOverTime
1222 Test .NET PlainListenAddressTests.TwoExplicitAddresses_BothAnswer
1222 Test Admin Console ClientAddressListComponent ... sightings (spec line 113)

Leads:

  • ClientAddressListComponent asserts the text Last 2 min ago (client-address-list.component.spec.ts:113). A relative time on a slow runner is a likely cause. The presence assertion in ClientListComponent is probably the same kind.
  • PlainListenAddressTests fails on Linux runners too, not only on Windows (see #341). Its port choice and its timing need the same look on Linux.
  • The DHCP UDP round trips time out with no reply. Check the runner's loopback UDP under load, and whether the server's socket is bound before the test sends.
  • TokenBucketDnsRateLimiterTests.RefillsTokensOverTime and CloudDnsZoneSyncServiceTests look like wall-clock timing.
  • The TlsZoneTransferClientTests failure in 1235 predates #12. Recheck it after #12 lands.

Process change: merges now wait for the whole pull-request pipeline, and every develop push run is followed to its Pipeline job.

Unblocked, 2026-11-06. The non-asgard logs can be read through a signed-in browser session at `/lantea-one/ninlil/actions/runs/<run>/jobs/<job>/attempt/1/logs`. The API has no log endpoint. Develop push runs since 2026-11-05 14:46: 1208, 1211, 1215, 1218 and 1239 are green. 1222, 1225, 1231, 1235, 1246 and 1249 failed. Each failed run hits a different, small set of tests, so this is several flaky tests, not one regression. The pull-request gate only waited for lint, so none of this blocked a merge. | Run | Job | Failing tests | |---|---|---| | 1249 (#338) | Test .NET | `Dhcpv6RelayReceivingRoundTripTests.RelayForwardCarryingASolicit_...`, `Dhcpv4UdpRoundTripTests.Discover_WithServerAddressCustomOption_...` (Dhcp.Server.Core.Tests). Both: `OperationCanceledException` from the test's own UDP `ReceiveFromAsync`, so no reply arrived within 5 or 7 s | | 1246 (#337) | Test .NET | `PlainListenAddressTests.ABadAddress_IsLoggedAndReported_WhileTheOthersKeepAnswering` | | 1235 | Test .NET | `PlainListenAddressTests.NoListenAddresses_WhenThePortIsTaken_...`, `TlsZoneTransferClientTests.PullAsync_AgainstARealTlsPrimary_...`, `StorageSwitchReplicaTests.ScheduleSwitch_WithNoClusterSetting_IsSaved` | | 1231 | Test .NET | `Dhcpv4UdpRoundTripTests.Discover_WithServerAddressCustomOption_...` | | 1231 | Test Admin Console | `ClientAddressListComponent lists every one of the device's identifiers with its vendor and sightings`, `ClientListComponent renders presence, vendor, and the explicit icon over the suggestion` | | 1225 | Test .NET | `CloudDnsZoneSyncServiceTests.CloudSecondaryZonePullsInTheRemoteOnlyRecord`, `TokenBucketDnsRateLimiterTests.RefillsTokensOverTime` | | 1222 | Test .NET | `PlainListenAddressTests.TwoExplicitAddresses_BothAnswer` | | 1222 | Test Admin Console | `ClientAddressListComponent ... sightings` (spec line 113) | Leads: - `ClientAddressListComponent` asserts the text `Last 2 min ago` (`client-address-list.component.spec.ts:113`). A relative time on a slow runner is a likely cause. The presence assertion in `ClientListComponent` is probably the same kind. - `PlainListenAddressTests` fails on Linux runners too, not only on Windows (see #341). Its port choice and its timing need the same look on Linux. - The DHCP UDP round trips time out with no reply. Check the runner's loopback UDP under load, and whether the server's socket is bound before the test sends. - `TokenBucketDnsRateLimiterTests.RefillsTokensOverTime` and `CloudDnsZoneSyncServiceTests` look like wall-clock timing. - The `TlsZoneTransferClientTests` failure in 1235 predates #12. Recheck it after #12 lands. Process change: merges now wait for the whole pull-request pipeline, and every develop push run is followed to its Pipeline job.
Author
Owner

More from the pull-request run 1264 (PR #345, docs-only, so none of these relate to the change; the push run 1265 of the same commit was green):

  • PlainListenAddressTests.NoListenAddresses_WhenThePortIsTaken_...: Assert.Single() Failure: The collection was empty. The expected Error log line was missing after 1 s, on Linux.
  • QuicZoneTransferClientTests.PullAsync_WithATsigKey_SendsMessageIdZeroSignedWithOriginalIdZeroAndVerifies: ObjectDisposedException on QuicListener, after 9 s.
  • ForwarderQueryResolverTests.Coalescing_AQueryThatDiffersInAnythingTheKeyHolds_GoesUpstreamWithoutWaiting(difference: "forwarderset").

These flakes now block every pull request under the full-pipeline merge gate, so #278 is the next work item.

More from the pull-request run 1264 (PR #345, docs-only, so none of these relate to the change; the push run 1265 of the same commit was green): - `PlainListenAddressTests.NoListenAddresses_WhenThePortIsTaken_...`: `Assert.Single() Failure: The collection was empty`. The expected Error log line was missing after 1 s, on Linux. - `QuicZoneTransferClientTests.PullAsync_WithATsigKey_SendsMessageIdZeroSignedWithOriginalIdZeroAndVerifies`: `ObjectDisposedException` on `QuicListener`, after 9 s. - `ForwarderQueryResolverTests.Coalescing_AQueryThatDiffersInAnythingTheKeyHolds_GoesUpstreamWithoutWaiting(difference: "forwarderset")`. These flakes now block every pull request under the full-pipeline merge gate, so #278 is the next work item.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#278
No description provided.