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

aws / karpenter-provider-aws / 24342323764
68%
main: 68%

Build:
Build:
LAST BUILD BRANCH: cherrypick-1.10-iodcr-nil-fix
DEFAULT BRANCH: main
Ran 13 Apr 2026 12:10PM UTC
Jobs 1
Files 125
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

13 Apr 2026 12:03PM UTC coverage: 67.723% (-0.008%) from 67.731%
24342323764

Pull #9080

github

KeitaW
fix: nil pointer dereference in CapacityReservationFromEC2 for Interruptible field

lo.Ternary eagerly evaluates all arguments in Go, so
lo.Ternary(cr.Interruptible == nil, false, *cr.Interruptible)
dereferences *cr.Interruptible unconditionally, panicking when
the pointer is nil. This is the default for all standard ODCRs
and capacity blocks returned by the EC2 API.

Replace with lo.FromPtrOr which safely returns the default value
when the pointer is nil.

Also adds a test case with nil Interruptible to prevent regression.

Fixes #9079
Pull Request #9080: fix: nil pointer dereference in CapacityReservationFromEC2 for Interruptible field

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

1 existing line in 1 file now uncovered.

8443 of 12467 relevant lines covered (67.72%)

0.77 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
93.33
-0.83% pkg/providers/capacityreservation/types.go
Jobs
ID Job ID Ran Files Coverage
1 24342323764.1 13 Apr 2026 12:10PM UTC 125
67.72
GitHub Action Run
Source Files on build 24342323764
  • Tree
  • List 125
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9080
  • PR Base - main (#24211779442)
  • 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