mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2426] [MERGED] Fix corruption of signature expiration in flaky test #3030
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3030
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2426
Author: @divergentdave
Created: 9/5/2024
Status: ✅ Merged
Merged: 9/6/2024
Merged by: @japaric
Base:
main← Head:david/flaky-ede-test📝 Commits (3)
a0b632dImprove assertion error message2d8fe8aAdd environment variable to skipdocker builded8d71cKeep seconds in range when corrupting expiration📊 Changes
3 files changed (+36 additions, -21 deletions)
View changed files
📝
conformance/README.md(+2 -0)📝
conformance/packages/conformance-tests/src/resolver/dnssec/scenarios/ede.rs(+9 -2)📝
conformance/packages/dns-test/src/container.rs(+25 -19)📄 Description
This test has a 1 in 60 chance of corrupting the signature expiration field of
RRSIGrecords to have99in the seconds place. This causes BIND to report "out of range" when loading the zone file, and skip the file. This in turn causes a test failure because Unbound can't fetch the corrupted signature, and it reports a different error code.This PR fixes the issue by extracting the seconds field, and then subtracting 1 mod 60. (This still has a chance of being in the future, not the past, but it should still make the signature bogus no matter what) Closes #2421. I also added an environment variable to skip
docker build, so I could get better throughput when running this one test in a bash loop.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.