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

kubernetes-sigs / karpenter / 29663542261
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: feat/scheduling-fairness
DEFAULT BRANCH: main
Ran 18 Jul 2026 10:46PM UTC
Jobs 1
Files 179
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

18 Jul 2026 10:29PM UTC coverage: 82.458% (+0.02%) from 82.435%
29663542261

Pull #3156

github

thc1006
fix: prevent int64 overflow and divide-by-zero in DRA consumable-capacity rounding

roundUpRange computed min + step*n in int64, which overflows to a negative value for near-maximal capacity requests and under-counts consumed capacity (over-admitting a shared device). It also divided by step without checking for zero, and violateValidRange had the same unguarded modulo. Compute the rounded value in big.Int and saturate on overflow, and skip rounding when step is non-positive.

Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
Pull Request #3156: fix: prevent int64 overflow and divide-by-zero in DRA consumable-capacity rounding

16 of 18 new or added lines in 1 file covered. (88.89%)

2 existing lines in 1 file now uncovered.

16584 of 20112 relevant lines covered (82.46%)

97664.03 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.29
0.96% pkg/scheduling/dynamicresources/consumable_capacity.go

Coverage Regressions

Lines Coverage ∆ File
2
90.8
-0.5% pkg/controllers/provisioning/scheduling/nodeclaim.go
Jobs
ID Job ID Ran Files Coverage
1 29663542261.1 18 Jul 2026 10:46PM UTC 179
82.46
GitHub Action Run
Source Files on build 29663542261
  • Tree
  • List 179
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3156
  • PR Base - main (#29617432002)
  • 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