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

oracle / karpenter-provider-oci / 33695801306
80%

Build:
DEFAULT BRANCH: main
Ran 02 Sep 2026 11:38PM UTC
Jobs 1
Files 62
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

02 Sep 2026 11:35PM UTC coverage: 79.812% (-0.03%) from 79.843%
33695801306

push

github

web-flow
fix: correct eviction threshold memory units and hard/soft field reads (#75)

evictionThreshold() built its memory base as int64(gbs*1024*1024) and
passed it to resource.NewQuantity, which takes bytes. gbs is in GiB, so
the conversion needs 1024^3; every percentage-based memory threshold came
out 1024x too small.

Since the eviction threshold is part of InstanceTypeOverhead, and core
computes allocatable as capacity minus that overhead, this over-estimated
allocatable memory by nearly the whole intended threshold -- ~3.2 GiB on a
32 GiB node with memory.available: 10%. Karpenter then launches a node the
pending pod cannot fit on and, with no feedback loop, repeats indefinitely.

Separately, both the hard and soft blocks read EvictionHard for memory and
EvictionSoft for nodefs, so EvictionSoft[memory.available] and
EvictionHard[nodefs.available] were never consulted, and a KubeletConfig
setting only evictionSoft produced no threshold at all.

Only configs using percentage-valued memory signals are affected; absolute
values such as 500Mi are parsed directly and were always correct.

Two existing cases in TestEvictionThreshold asserted the buggy values (with
a comment reading '32Mi * 0.1' for a 32 GiB node) and are updated.

4 of 4 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

5088 of 6375 relevant lines covered (79.81%)

0.92 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
83.33
-8.33% pkg/utils/refresher.go
Jobs
ID Job ID Ran Files Coverage
1 33695801306.1 02 Sep 2026 11:38PM UTC 62
79.81
GitHub Action Run
Source Files on build 33695801306
  • Tree
  • List 62
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c8f305cb on github
  • Prev Build on main (#33641680393)
  • Next Build on main (#33741422229)
  • 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