Skip to content

feat : project preheat execution#925

Open
Sypher845 wants to merge 7 commits into
goharbor:mainfrom
Sypher845:feat/project-preheat-execution
Open

feat : project preheat execution#925
Sypher845 wants to merge 7 commits into
goharbor:mainfrom
Sypher845:feat/project-preheat-execution

Conversation

@Sypher845
Copy link
Copy Markdown
Contributor

Note : This is the second PR for the issue #836 . This should be merged after the merging of #871

Description

Adds the harbor project preheat execution command group to manage P2P preheat executions of a policy under a project. Harbor supports P2P (Peer-to-Peer) preheat distribution using engines like Dragonfly or Kraken. Users can create preheat policies under a project to preload container images into a P2P network before they are needed. The preheat command allows users to manage preheat policies, monitor executions, and inspect tasks from the terminal.

Commands

  • harbor project preheat execution list — List preheat executions
Kooha-2026-05-14-01-01-53
  • harbor project preheat execution view — View a particular preheat executions
Kooha-2026-05-14-01-02-45
  • harbor project preheat execution stop — Stop a particular preheat executions
Kooha-2026-05-14-01-03-22

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

❌ Patch coverage is 0% with 327 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.44%. Comparing base (60ad0bd) to head (81a6732).
⚠️ Report is 181 commits behind head on main.

Files with missing lines Patch % Lines
cmd/harbor/root/project/preheat/execution/list.go 0.00% 63 Missing ⚠️
cmd/harbor/root/project/preheat/execution/view.go 0.00% 62 Missing ⚠️
cmd/harbor/root/project/preheat/execution/stop.go 0.00% 56 Missing ⚠️
pkg/api/preheat_handler.go 0.00% 45 Missing ⚠️
pkg/prompt/prompt.go 0.00% 23 Missing ⚠️
pkg/views/preheat/execution/list/view.go 0.00% 23 Missing ⚠️
pkg/views/preheat/execution/view/view.go 0.00% 22 Missing ⚠️
pkg/views/preheat/execution/select/view.go 0.00% 19 Missing ⚠️
cmd/harbor/root/project/preheat/execution.go 0.00% 13 Missing ⚠️
cmd/harbor/root/project/preheat.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #925      +/-   ##
=========================================
- Coverage   10.99%   8.44%   -2.55%     
=========================================
  Files         173     321     +148     
  Lines        8671   16070    +7399     
=========================================
+ Hits          953    1357     +404     
- Misses       7612   14587    +6975     
- Partials      106     126      +20     

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sypher845 added 6 commits May 28, 2026 21:00
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
@Sypher845 Sypher845 force-pushed the feat/project-preheat-execution branch from 4e1b5ce to 0c06005 Compare May 28, 2026 15:41
@Sypher845 Sypher845 requested a review from Copilot May 28, 2026 19:20
@Sypher845 Sypher845 marked this pull request as ready for review May 28, 2026 19:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 20 changed files in this pull request and generated 9 comments.

Comment thread cmd/harbor/root/project/preheat/execution/view.go Outdated
Comment thread cmd/harbor/root/project/preheat/execution/stop.go Outdated
Comment thread cmd/harbor/root/project/preheat/execution/list.go Outdated
Comment thread cmd/harbor/root/project/preheat/execution/list.go
Comment thread pkg/api/preheat_handler.go
Comment thread pkg/views/preheat/execution/list/view.go
Comment thread pkg/prompt/prompt.go
Comment thread pkg/views/preheat/execution/select/view.go
Comment thread cmd/harbor/root/project/preheat/execution/list.go
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
@Sypher845
Copy link
Copy Markdown
Contributor Author

@bupd @qcserestipy ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants