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

aws / karpenter-core / 5600975159 / 5
80%
main: 80%

Build:
DEFAULT BRANCH: main
Ran 19 Jul 2023 03:30PM UTC
Files 120
Run time 1s
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

19 Jul 2023 03:17PM UTC coverage: 81.391% (+0.02%) from 81.374%
5600975159.5

push

github

web-flow
fix: prevent consolidation from pausing for 5m (#415)

There was a race with deprovisioning with steps 2 & 3 where we could:
1) See the cluster as unconsolidated
2) Run the deprovisioners unsuccessfully
3) Something happens that makes consolidation possible (e.g. pod
   deletion)
4) We mark the cluster as unconsolidatable
5) On the next round, do nothing since cluster is unconsolidatable

The end result is that we mark the cluster as unconsolidatable which
prevents us from trying again to save CPU time. Thankfully this was
built with a 5 minute timeout to handle recovering from ICE situations
automatically which limited the severity of the problem.

This change modifies the code to use a monotonically increasing
timestamp.  If the cluster state changes (or nothing changes for five
minutes), it increases.

The race above is now prevented:

1) See the cluster state as X
2) Run the deprovisioners unsuccessfully
3) Something happens that makes consolidation possible (e.g. pod
   deletion), this increases cluster state to X+1
4) We mark the cluster as unconsolidatable as of X
5) On the next round, see the cluster state as X+1 and retry since
   we last tried at state X

7055 of 8668 relevant lines covered (81.39%)

35499.27 hits per line

Source Files on job 5600975159.5
  • Tree
  • List 0
  • Changed 60
  • Source Changed 0
  • Coverage Changed 60
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5600975159
  • 4c152067 on github
  • Prev Job for on main (#5593636419.1)
  • Next Job for on main (#5602619353.3)
  • 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