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

ben-manes / caffeine / 2246
100%

Build:
DEFAULT BRANCH: master
Ran 07 Feb 2018 10:21AM UTC
Jobs 1
Files 66
Run time 7s
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

pending completion
2246

api

travis-ci

ben-manes
Fix weighted SLRU demotion when decrementing the region's size

The protected space's size was decremented by the promoted entry's
weight, rather than the demoted entry's. When entries have the same
weight, e.g. maximumSize, this is the same. The cache will still evict
when the overall capacity has been reached, so this only caused the
wrong accounting.

The test EvictionTest#evict_weighted was known to fail on CI, though
seemed to be flaky. The assumption was this was due to the randomness
in the seeds, though recently making those stable seemed to fix it
until it reappeared yesterday. The mistake was discovered when working
on the adaptive policy, so a fortunate coincidence.

Since this failure is difficult to trigger, hopefully not seeing the
test case fail will mean we've fixed it.

5731 of 6095 relevant lines covered (94.03%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2246.2 (GROUP=tests) 07 Feb 2018 10:21AM UTC 0
94.03
Travis Job 2246.2
Source Files on build 2246
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2246
  • 27dfec3f on github
  • Prev Build on master (#2243)
  • Next Build on master (#2247)
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