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

ben-manes / caffeine / #5460 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 15 May 2026 03:52PM UTC
Files 78
Run time 4s
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

15 May 2026 12:53AM UTC coverage: 100.0%. Remained the same
#5460.1

push

github

ben-manes
Stop ClockPro double-counting coldTarget on failed promotion

When canPromote runs runHandHot and every hot page between handHot and
the candidate is marked, the loop ends with handHot at the trigger.
nextHandHot then walks past the cold trigger and calls
terminateTestPeriod on it; because the candidate is still marked, that
adds a second +1 to coldTarget on top of the +1 already applied at the
top of canPromote.

Clear the marked bit after the explicit +1 so terminateTestPeriod
counts -1 if it fires for the candidate in the same call. Net behavior
matches both the paper ("+1 once per test-period access") and the
reference C implementation, which leaves credits unchanged in this
failure path. ClockProSimplePolicy already takes the equivalent
precaution (clearing marked before canPromote).

issue found by detail.dev

4007 of 4016 branches covered (99.78%)

8206 of 8206 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job #5460.1
  • Tree
  • List 78
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5460
  • 0ecdcfab on github
  • Prev Job for on v3.dev (##5458.1)
  • Next Job for on v3.dev (##5461.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc