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

stripe / smokescreen / 45636459229
68%

Build:
DEFAULT BRANCH: master
Ran 25 Nov 2026 02:40PM UTC
Jobs 1
Files 34
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 Nov 2026 02:39PM UTC coverage: 67.595% (+0.2%) from 67.351%
45636459229

push

github

web-flow
Keep Transport dials from writing request state (#388)

* smokescreen: keep Transport dials from writing request state

net/http's Transport dials on its own goroutine, and it can finish a dial after RoundTrip returns. That happens when the client cancels, or when another pooled connection serves the request first. dialContext then wrote sctx.dialAttrs and the decision's ResolvedAddr and Reason, and read the request logger, while the request goroutine still used them.

A Transport dial now starts from a copy of the request logger and hands its attributes back through a locked value. The request keeps them only if the dial finished during RoundTrip. A re-resolved address stays local to dialContext, so the logged decision reason stays the ACL reason, as it already was for CONNECT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude

* smokescreen: keep recording the re-resolved address for CONNECT dials

A CONNECT dial runs on the request goroutine, so writing the re-resolved address and reason to the decision never raced. Hooks that run after the dial, such as AcceptResponseHandler, read Decision.ResolvedAddr and expect the address that was dialed, for example an upstream proxy. Only a Transport dial keeps its result local now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

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

42 of 44 new or added lines in 1 file covered. (95.45%)

2693 of 3984 relevant lines covered (67.6%)

253.61 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
78.8
0.61% pkg/smokescreen/smokescreen.go
Jobs
ID Job ID Ran Files Coverage
1 45636459229.1 25 Nov 2026 02:40PM UTC 34
67.6
GitHub Action Run
Source Files on build 45636459229
  • Tree
  • List 34
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 20404998 on github
  • Prev Build on master (#44073244792)
  • Next Build on master (#45639277529)
  • 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