The DNSCrypt test for a still-valid certificate fails when a loaded machine takes more than 500 ms to answer #406
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#406
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?
What happened
DnsCryptExpiredCertificateTests.Udp_AQueryForACertificateThatIsStillValid_GetsTheEchoAnswerfailed once on the Linux runner, in the Test .NET job of the pull-request run 1520 (PR #400, a change to QUIC zone transfers that does not touch DNSCrypt):The runner was heavily loaded at the time (load average above 40, several pipelines queued).
Likely cause
The class's
QueryAsynchelper starts a UDP listener, sends one encrypted query and waits 500 ms for the reply; it returnsnullwhen none arrives (DnsCryptExpiredCertificateTests.cs, theCancellationTokenSourceof 500 ms beforeReceiveAsync). The same 500 ms serves two opposite purposes:Wanted
Ninlil.Dns.Protocol.DnsCrypt.Testsfor the same pattern: a sub-second wait for something that must happen.Related: #363 (the same class, made reliable on Windows), #396 and #402 (the same kind of bound in other transports).