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

zalando-incubator / cluster-lifecycle-manager / 30634949683
23%
master: 23%

Build:
Build:
LAST BUILD BRANCH: defer-git-gc
DEFAULT BRANCH: master
Ran 31 Jul 2026 01:42PM UTC
Jobs 1
Files 98
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

31 Jul 2026 01:33PM UTC coverage: 23.276% (+0.05%) from 23.231%
30634949683

push

github

demonCoder95
Defer git garbage collection to prevent blocking during concurrent syncs

When syncing source for hundreds of clusters concurrently, git automatic
garbage collection (gc.auto) can trigger and block operations, causing the
pod to get stuck. This change disables automatic garbage collection for all
git operations and defers it to run after all updates have completed.

Changes:
- Set gc.auto=0 in all git commands via central cmd() helper to prevent
  automatic gc from blocking during clone, remote update, and checkout
- Add GarbageCollect() method to Git struct for deferred gc execution
- Add optional GarbageCollector interface for config sources
- Update CombinedSource to propagate garbage collection to child sources
- Call GarbageCollect() in controller refresh cycle after all updates
- Add test for garbage collection functionality

This ensures git operations remain non-blocking and garbage collection
happens in batch after all cluster syncs are complete.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Signed-off-by: Noor Malik <noor.malik@zalando.de>

15 of 31 new or added lines in 3 files covered. (48.39%)

3247 of 13950 relevant lines covered (23.28%)

6.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
70.23
-4.57% channel/combined.go
4
71.43
0.64% channel/git.go
4
67.03
-1.31% controller/controller.go
Jobs
ID Job ID Ran Files Coverage
1 30634949683.1 31 Jul 2026 01:42PM UTC 98
23.28
GitHub Action Run
Source Files on build 30634949683
  • Tree
  • List 98
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3eb1a5d1 on github
  • Prev Build on master (#23456458735)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc