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

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

Build:
Build:
LAST BUILD BRANCH: fix-dra-consumable-capacity-overflow
DEFAULT BRANCH: main
Ran 18 Jul 2026 09:39PM 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 09:21PM UTC coverage: 82.444% (+0.009%) from 82.435%
29661478648

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

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

2 existing lines in 1 file now uncovered.

16577 of 20107 relevant lines covered (82.44%)

97562.41 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
90.8
-0.5% pkg/controllers/provisioning/scheduling/nodeclaim.go
Jobs
ID Job ID Ran Files Coverage
1 29661478648.1 18 Jul 2026 09:39PM UTC 179
82.44
GitHub Action Run
Source Files on build 29661478648
  • 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