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

cenkalti / rain / 35666653713
42%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2026 11:16PM UTC
Jobs 1
Files 165
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

21 Sep 2026 11:14PM UTC coverage: 41.289% (+0.003%) from 41.286%
35666653713

push

github

web-flow
Do not cancel the stopped event announce while closing a torrent (#248)

* Do not cancel the stopped event announce while closing a torrent

close() starts the stopped event announcer via stop() and closes it on the
next line, which cancels the announce context before the request can be
sent. Trackers therefore never learn how many bytes were uploaded since the
last periodical announce. A torrent that is removed shortly after it starts
seeding loses almost all of its reported upload.

Leave the announcer running instead. It only needs the tracker.Torrent
snapshot it was created with, and it stops by itself when TrackerStopTimeout
expires. Buffer announcersStoppedC so the announcer can deliver its result
and exit after the torrent run loop is gone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Cancel the stopped event announce context when announcing is done

Run creates a context with a deadline and a goroutine that waits for either
the deadline or Close. Nothing cancelled the context when announcing
finished first, so that goroutine stayed alive until the deadline expired.
It went unnoticed while every announcer was closed right after starting.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

7 of 7 new or added lines in 3 files covered. (100.0%)

3 existing lines in 2 files now uncovered.

4979 of 12059 relevant lines covered (41.29%)

47.54 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
93.02
-1.98% internal/announcer/stop.go
1
72.97
-2.7% internal/verifier/verifier.go
Jobs
ID Job ID Ran Files Coverage
1 35666653713.1 21 Sep 2026 11:16PM UTC 165
41.29
GitHub Action Run
Source Files on build 35666653713
  • Tree
  • List 165
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4f12617e on github
  • Prev Build on master (#32673214805)
  • Next Build on master (#35667218984)
  • 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