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

kubernetes-sigs / karpenter / 24093431345
80%
main: 80%

Build:
Build:
LAST BUILD BRANCH: theunrepentantgeek/fix/go-licenses
DEFAULT BRANCH: main
Ran 07 Apr 2026 05:08PM UTC
Jobs 1
Files 153
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

07 Apr 2026 04:49PM UTC coverage: 80.353% (-0.02%) from 80.371%
24093431345

Pull #2951

github

jamesmt-aws
fix: use injected clock for minDrainTime check

The minDrainTime check in awaitDrain compared c.clock.Since() against
the condition's LastTransitionTime, which is set by operatorpkg using
metav1.Now() (real clock). When tests use a fake clock, the real clock
and fake clock diverge, causing the minDrainTime check to never pass.

Track drain start time using the injected clock via a sync.Map on the
controller. This matches the pattern from #2783 which fixed the same
class of real-clock-vs-fake-clock bug in other termination tests.

The test "should not finish draining until minDrainTime has passed"
failed deterministically on all k8s versions locally and on 1.35.x
in CI (timing-dependent on other versions).
Pull Request #2951: fix: use injected clock for minDrainTime check

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

7 existing lines in 1 file now uncovered.

12171 of 15147 relevant lines covered (80.35%)

229142.82 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
88.76
-7.87% pkg/controllers/provisioning/scheduling/preferences.go
Jobs
ID Job ID Ran Files Coverage
1 24093431345.1 07 Apr 2026 05:08PM UTC 153
80.35
GitHub Action Run
Source Files on build 24093431345
  • Tree
  • List 153
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2951
  • PR Base - main (#24092620005)
  • 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