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

dnsimple / dns_erlang / 30147162684
92%

Build:
DEFAULT BRANCH: main
Ran 25 Jul 2026 06:15AM UTC
Jobs 1
Files 12
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

25 Jul 2026 06:14AM UTC coverage: 88.547%. Remained the same
30147162684

push

github

web-flow
Fix premature OPT RR and additional-section dropping near max_size (#137)

encode_message_default sized the OPT RR and trailing additional records
against SpaceLeft1 + PreservedOptRRBinSize - BodySize. SpaceLeft1 had
already subtracted the question-section size, but Body (the accumulator
returned by encode_message_d_req) starts from the question bytes, so
BodySize subtracts them again. The pool for the OPT RR and additional
records was therefore short by the question-section size, and both were
dropped from responses within that many bytes of max_size even though
they fit. For EDNS responses that meant omitting the OPT RR (contra
RFC 6891) while still returning an untruncated answer: a 493-byte
response under a 512-byte limit lost its 11-byte OPT RR.

Size the pool from SpaceLeft0 instead, which subtracts the question
bytes exactly once via BodySize. The truncated branch already accounted
this way (SpaceForOptRR = MaxSize - header - questions).

1 of 1 new or added line in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

2791 of 3152 relevant lines covered (88.55%)

10912.8 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
76.25
-0.5% src/dns_encode.erl
Jobs
ID Job ID Ran Files Coverage
1 30147162684.1 25 Jul 2026 06:15AM UTC 12
88.55
GitHub Action Run
Source Files on build 30147162684
  • Tree
  • List 12
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30147162684
  • 0bbe908e on github
  • Prev Build on main (#30122560262)
  • Next Build on main (#30151987792)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc