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

kubernetes-sigs / karpenter / 26984163213
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: garvinp-overlay-resolution-rfc
DEFAULT BRANCH: main
Ran 04 Jun 2026 11:01PM UTC
Jobs 1
Files 156
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

04 Jun 2026 10:47PM UTC coverage: 80.773% (+0.1%) from 80.657%
26984163213

Pull #2962

github

jamesmt-aws
refactor: unify consolidation into k-value model, remove dead weight

All policies now flow through the same scoring path with different k:
  Balanced=2 (score >= 0.5), WhenEmptyOrUnderutilized=0 (any savings).
  WhenEmpty is filtered before scoring via ShouldDisrupt.

Deleted: effectiveBalanced, IsBalancedPolicy, AnyBalancedCandidate,
GetConsolidationThreshold, sortCandidatesByValue, candidateDisruptionCost.
Inlined: ComputeMoveDisruptionCost simplified to lo.SumBy one-liner.
sortCandidates always uses savings ratio (no conditional branch).
ScoreMove handles k=0 (approve any positive savings).
Pull Request #2962: feat: implement Balanced consolidation policy

302 of 354 new or added lines in 11 files covered. (85.31%)

7 existing lines in 1 file now uncovered.

12809 of 15858 relevant lines covered (80.77%)

119700.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
28
81.25
-10.72% pkg/controllers/disruption/events/events.go
10
94.74
pkg/controllers/disruption/balanced.go
9
85.99
-2.58% pkg/controllers/disruption/multinodeconsolidation.go
2
87.08
0.45% pkg/controllers/disruption/helpers.go
2
98.8
-1.2% pkg/controllers/disruption/types.go
1
92.55
-1.2% pkg/controllers/disruption/singlenodeconsolidation.go

Coverage Regressions

Lines Coverage ∆ File
7
88.76
-7.87% pkg/controllers/provisioning/scheduling/preferences.go
Jobs
ID Job ID Ran Files Coverage
1 26984163213.1 04 Jun 2026 11:01PM UTC 156
80.77
GitHub Action Run
Source Files on build 26984163213
  • Tree
  • List 156
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2962
  • PR Base - main (#26899386285)
  • Delete
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