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

stripe / smokescreen / 41857456883
67%
master: 68%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.0.1
DEFAULT BRANCH: master
Ran 04 Nov 2026 03:25PM UTC
Jobs 1
Files 29
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

04 Nov 2026 03:22PM UTC coverage: 65.262% (-2.7%) from 67.943%
41857456883

push

github

shubh-stripe
hostport: skip IDNA conversion for plain ASCII host names (#353)

HostMatchesGlob calls NormalizeHost on both the host and the glob for every glob it checks, and each call built a new IDNA profile and ran the full IDNA mapping. In production CPU profiles this made host normalization the largest part of ACL decisions. Almost all hosts and globs are already ASCII, and for those names the IDNA conversion only lowercases them.

NormalizeHost now returns the lowercase name directly when every label is plain ASCII letters, digits, '-' or '_' and has none of the hyphen patterns that the IDNA checks act on, including the xn-- prefix. All other names still take the IDNA path, which now uses one package-level profile. A fuzz test checks that the fast path never accepts a name that the IDNA path would reject or change. ACL Decide benchmarks run 4-6x faster with 3-4x fewer allocations.


Committed-By-Agent: claude

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

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

463 existing lines in 10 files now uncovered.

2277 of 3489 relevant lines covered (65.26%)

24.11 hits per line

Coverage Regressions

Lines Coverage ∆ File
110
77.83
-0.26% pkg/smokescreen/smokescreen.go
99
0.0
0.0% pkg/smokescreen/metrics/prometheus_metrics.go
76
66.31
-5.32% pkg/smokescreen/config.go
62
71.73
-3.6% cmd/smokescreen.go
39
0.0
0.0% pkg/smokescreen/config_loader.go
32
69.3
-25.22% pkg/smokescreen/metrics/statsd_metrics.go
22
15.63
-9.38% pkg/smokescreen/metrics/metrics.go
18
0.0
0.0% pkg/smokescreen/stats_server.go
3
0.0
0.0% pkg/smokescreen/config_prometheus.go
2
82.69
0.0% pkg/smokescreen/hostport/hostport.go
Jobs
ID Job ID Ran Files Coverage
1 41857456883.1 04 Nov 2026 03:25PM UTC 29
65.26
GitHub Action Run
Source Files on build 41857456883
  • Tree
  • List 29
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 63208f73 on github
  • Prev Build on v2 (#41824371323)
  • Next Build on v2 (#42232990913)
  • 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