Skip to content

feat: implement Garbage Collection (gc) command group#1018

Closed
gcharpe1604 wants to merge 5 commits into
goharbor:mainfrom
gcharpe1604:feature/gc-commands
Closed

feat: implement Garbage Collection (gc) command group#1018
gcharpe1604 wants to merge 5 commits into
goharbor:mainfrom
gcharpe1604:feature/gc-commands

fix(cli): sort cmd.go imports alphabetically

e71bc24
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Jun 30, 2026 in 1s

9.52% (-1.47%) compared to 60ad0bd

View this Pull Request on Codecov

9.52% (-1.47%) compared to 60ad0bd

Details

Codecov Report

❌ Patch coverage is 16.54501% with 343 lines in your changes missing coverage. Please review.
✅ Project coverage is 9.52%. Comparing base (60ad0bd) to head (e71bc24).
⚠️ Report is 188 commits behind head on main.

Files with missing lines Patch % Lines
pkg/api/gc_handler.go 0.00% 93 Missing ⚠️
pkg/views/gc/update/view.go 0.00% 42 Missing ⚠️
pkg/views/gc/view/view.go 0.00% 36 Missing ⚠️
cmd/harbor/root/gc/cmd.go 0.00% 28 Missing ⚠️
pkg/views/gc/list/view.go 0.00% 28 Missing ⚠️
cmd/harbor/root/gc/trigger.go 0.00% 25 Missing ⚠️
cmd/harbor/root/gc/log.go 0.00% 21 Missing ⚠️
cmd/harbor/root/gc/schedule.go 0.00% 21 Missing ⚠️
cmd/harbor/root/gc/stop.go 0.00% 18 Missing ⚠️
cmd/harbor/root/gc/history.go 52.77% 16 Missing and 1 partial ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff            @@
##             main   #1018      +/-   ##
=========================================
- Coverage   10.99%   9.52%   -1.47%     
=========================================
  Files         173     332     +159     
  Lines        8671   16493    +7822     
=========================================
+ Hits          953    1571     +618     
- Misses       7612   14785    +7173     
- Partials      106     137      +31     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.