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

graphql-go / graphql / 2019
96%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2026 05:22PM UTC
Jobs 1
Files 31
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

26 Aug 2026 05:19PM UTC coverage: 95.815% (+0.001%) from 95.814%
2019

Pull #759

circleci

hsieh
Fix subscription producer goroutine leak on context cancel

The producer in ExecuteSubscription sent results with a bare unbuffered
send that did not select on p.Context.Done(). When a subscriber
unsubscribes or disconnects and stops reading resultChannel, the producer
blocks forever on the send; cancelling the context cannot unblock it
because the goroutine is not in a select at that moment. This leaks one
goroutine per unsubscribed subscription.

Wrap the send in a select that also observes p.Context.Done(), so a
cancelled context lets the producer exit and close resultChannel even
with no active receiver.

Add TestProducerExitsOnContextCancel as a regression test.
Pull Request #759: Fix subscription producer goroutine leak on context cancel

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

1 existing line in 1 file now uncovered.

9342 of 9750 relevant lines covered (95.82%)

1517.73 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
82.87
0.29% subscription.go
Jobs
ID Job ID Ran Files Coverage
1 2019.1 26 Aug 2026 05:22PM UTC 31
95.82
CircleCI Job
Source Files on build 2019
  • Tree
  • List 31
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #2019
  • Pull Request #759
  • PR Base - master (#2012)
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