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

cenkalti / rain / 37145289099
51%

Build:
DEFAULT BRANCH: master
Ran 03 Oct 2026 06:44PM UTC
Jobs 1
Files 169
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

03 Oct 2026 06:38PM UTC coverage: 45.206% (+3.1%) from 42.087%
37145289099

push

github

cenkalti
torrent: guard the two unlocked bitfield writes

mBitfield protects t.bitfield so Session.updateStats and the announcer can
read it off the run goroutine. Two of the four writes did not take it,
both on the verify path: handleVerifyCommand and handleStopped set the
field to nil bare, while handleVerificationDone and handleAllocationDone
lock around theirs.

Session.updateStats runs on a timer and again from Session.Close, so
closing a session while a torrent verified raced the read. Reproduced
under -race about one run in five, and only via the verify path, which is
why the download tests never caught it.

Adds the Start/Verify command test that exposed it.

2 of 4 new or added lines in 2 files covered. (50.0%)

82 existing lines in 6 files now uncovered.

5432 of 12016 relevant lines covered (45.21%)

82.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
56.25
9.48% torrent/torrent_verification.go

Coverage Regressions

Lines Coverage ∆ File
27
83.93
-0.99% torrent/torrent.go
21
53.92
27.65% torrent/torrent_commands.go
20
0.0
0.0% internal/console/console.go
6
23.33
0.0% torrent/session_healthcheck.go
4
44.51
-1.22% torrent/torrent_messagehandler.go
4
81.82
15.58% torrent/torrent_run.go
Jobs
ID Job ID Ran Files Coverage
1 37145289099.1 03 Oct 2026 06:44PM UTC 169
45.21
GitHub Action Run
Source Files on build 37145289099
  • Tree
  • List 169
  • Changed 14
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 80e33996 on github
  • Prev Build on master (#37141955264)
  • Next Build on master (#37146811107)
  • 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