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

ben-manes / caffeine / 2243
100%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2018 08:47PM UTC
Jobs 1
Files 66
Run time 16min
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
2243

push

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.

5716 of 6095 relevant lines covered (93.78%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2243.2 (GROUP=tests) 06 Feb 2018 08:47PM UTC 0
93.78
Travis Job 2243.2
Source Files on build 2243
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2243
  • 27dfec3f on github
  • Prev Build on master (#2242)
  • Next Build on master (#2246)
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