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

ben-manes / caffeine / #5673
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 22 Jul 2026 06:12AM UTC
Jobs 1
Files 78
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

22 Jul 2026 04:03AM UTC coverage: 99.965%. Remained the same
#5673

push

github

ben-manes
Make CampPolicy faithful to the CAMP reference

The prior implementation diverged from the published algorithm and
the authors' reference (scdblab/CAMP): the cost/size ratio was
truncated without the paper's scale-by-max-size step, collapsing
every sub-1 ratio to 0; priority was stored per queue rather than
per entry; the inflation value L was re-derived (and could deflate)
on each hit instead of advancing monotonically on eviction; and each
queue was keyed on its most-recent entry rather than its head.

Mirror the reference: scale the ratio by the largest observed size
before rounding, store H = L + cost per entry, advance L to the new
minimum on eviction, and key each queue on its head. Validated
bit-for-bit against the reference (with its intended cost tie-break)
across weighted and penalty traces.

Add a camp.tie-break setting: "cost" (default, matches the reference)
or "lru" (the paper's stated tie-break). The reference builds a cost
comparator but never wires it to its heap, so it ships an arbitrary
tie-break; cost matches its intent.

4192 of 4203 branches covered (99.74%)

8472 of 8475 relevant lines covered (99.96%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #5673.1 22 Jul 2026 06:12AM UTC 78
99.96
Source Files on build #5673
  • 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 Repo
  • d5b97f51 on github
  • Prev Build on v3.dev
  • Next Build on v3.dev
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