Skip to content

feat : project preheat task#926

Open
Sypher845 wants to merge 6 commits into
goharbor:mainfrom
Sypher845:feat/project-preheat-task
Open

feat : project preheat task#926
Sypher845 wants to merge 6 commits into
goharbor:mainfrom
Sypher845:feat/project-preheat-task

Conversation

@Sypher845

Copy link
Copy Markdown
Contributor

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

Description

Adds the harbor project preheat task command group to manage P2P preheat task of execution for 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 task list — List preheat task
Kooha-2026-05-14-11-49-43
  • harbor project preheat task log — View logs of a particular task
Kooha-2026-05-14-11-50-31

Type of Change

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

@codecov

codecov Bot commented May 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 260 lines in your changes missing coverage. Please review.
✅ Project coverage is 9.02%. Comparing base (60ad0bd) to head (7d4260c).
⚠️ Report is 186 commits behind head on main.

Files with missing lines Patch % Lines
cmd/harbor/root/project/preheat/task/list.go 0.00% 74 Missing ⚠️
cmd/harbor/root/project/preheat/task/log.go 0.00% 67 Missing ⚠️
pkg/views/preheat/task/list/view.go 0.00% 33 Missing ⚠️
pkg/api/preheat_handler.go 0.00% 32 Missing ⚠️
pkg/prompt/prompt.go 0.00% 23 Missing ⚠️
pkg/views/preheat/task/select/view.go 0.00% 19 Missing ⚠️
cmd/harbor/root/project/preheat/task.go 0.00% 11 Missing ⚠️
cmd/harbor/root/project/preheat.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #926      +/-   ##
=========================================
- Coverage   10.99%   9.02%   -1.97%     
=========================================
  Files         173     326     +153     
  Lines        8671   16341    +7670     
=========================================
+ Hits          953    1475     +522     
- Misses       7612   14732    +7120     
- Partials      106     134      +28     

☔ 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Sypher845 force-pushed the feat/project-preheat-task branch 2 times, most recently from 6ff69b8 to 89f6c23 Compare June 2, 2026 13:39
@Sypher845 Sypher845 requested a review from Copilot June 2, 2026 13:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 16 out of 16 changed files in this pull request and generated 6 comments.

Comment thread pkg/views/preheat/task/select/view.go
Comment thread pkg/views/preheat/task/list/view.go Outdated
Comment thread cmd/harbor/root/project/preheat/task/log.go
Comment thread pkg/api/preheat_handler.go
Comment thread doc/cli-docs/harbor-project-preheat-task-list.md Outdated
Comment thread pkg/views/preheat/task/select/view.go
Sypher845 added 5 commits June 5, 2026 11:03
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-task branch from 89f6c23 to 1620f45 Compare June 5, 2026 06:46
@Sypher845 Sypher845 marked this pull request as ready for review June 5, 2026 06:50
@Sypher845

Copy link
Copy Markdown
Contributor Author

@bupd ready for review

@bupd

bupd commented Jun 5, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1620f450fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/views/preheat/task/list/view.go Outdated
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
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.

3 participants