• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dnsimple / erldns / 23504158941
87%

Build:
DEFAULT BRANCH: main
Ran 24 Mar 2026 05:49PM UTC
Jobs 1
Files 50
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Mar 2026 05:48PM UTC coverage: 86.478% (-0.3%) from 86.737%
23504158941

push

github

web-flow
Fix restart_delegated_query to always find the correct authoritative zone (#341)

`restart_delegated_query/7` had two bugs:

1. The `true` (InZone) branch blindly reused the caller's Zone instead
   of finding the actual authoritative zone for the labels.

2. The `false` branch matched `#zone{} = Zone` where Zone was already
   bound from the function head, so it could only match the *same* zone
   — a different zone caused a case_clause crash, and the
   `not_authoritative` return was unhandled.

Both bugs were latent because `maybe_add_zonecut_records` normalises
delegation responses to referrals, masking the inner result.

Changes:
- Replace `restart_delegated_query/7` with `/5`: drop `Zone` and
  `InZone` parameters, always call `get_authoritative_zone/1` with a
  fresh binding. Note also that the `InZone` parameter would do an ETS
  traversal that is redundant with the next ETS traversal getting the
  zone.
- Remove redundant restart at NS delegation points (first clause of
  resolve_exact_type_match for NS with no SOA) — return the message and
  let maybe_add_zonecut_records produce the referral
- Drop Msg parameter from maybe_add_zonecut_records so the original
  message can be GC'd before the zone-cut check runs

2 of 4 new or added lines in 1 file covered. (50.0%)

7 existing lines in 1 file now uncovered.

1714 of 1982 relevant lines covered (86.48%)

1853.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
73.25
-3.97% src/pipes/erldns_resolver.erl

Uncovered Existing Lines

Lines Coverage ∆ File
7
73.25
-3.97% src/pipes/erldns_resolver.erl
Jobs
ID Job ID Ran Files Coverage
1 23504158941.1 24 Mar 2026 05:49PM UTC 50
86.48
GitHub Action Run
Source Files on build 23504158941
  • Tree
  • List 50
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23504158941
  • 37103f43 on github
  • Prev Build on main (#23496501595)
  • Next Build on main (#23734733377)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc