Skip to content

replace commands that use Run to use RunE#679

Open
bhavyaKhatri2703 wants to merge 21 commits intogoharbor:mainfrom
bhavyaKhatri2703:refactor/replace-Run-commands-with-RunE
Open

replace commands that use Run to use RunE#679
bhavyaKhatri2703 wants to merge 21 commits intogoharbor:mainfrom
bhavyaKhatri2703:refactor/replace-Run-commands-with-RunE

Conversation

@bhavyaKhatri2703
Copy link

fixes #675
replaced older commands from Run to RunE with errors being returned properly instead of jusing log.

@bhavyaKhatri2703 bhavyaKhatri2703 force-pushed the refactor/replace-Run-commands-with-RunE branch from 24f5850 to f13e913 Compare February 6, 2026 10:13
@rshdhere
Copy link

rshdhere commented Feb 6, 2026

@bhavyaKhatri2703 I see your commit messages. it's looking good, but follow contributing.md which has proper format for commit messages

ig dont need for this PR but do consider it in the upcoming PRs

@rshdhere
Copy link

rshdhere commented Feb 6, 2026

image here's a reference for you, from the official contributing md file. you dont have to force-push it again if you follow this

@bhavyaKhatri2703
Copy link
Author

understood thanks for sharing @rshdhere

@bhavyaKhatri2703
Copy link
Author

can someone help me with these checks?

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 2.09790% with 140 lines in your changes missing coverage. Please review.
✅ Project coverage is 7.47%. Comparing base (60ad0bd) to head (fc26845).
⚠️ Report is 110 commits behind head on main.

Files with missing lines Patch % Lines
cmd/harbor/root/tag/immutable/list.go 0.00% 15 Missing ⚠️
cmd/harbor/root/project/robot/update.go 0.00% 10 Missing ⚠️
cmd/harbor/root/project/robot/refresh.go 0.00% 8 Missing ⚠️
cmd/harbor/root/project/robot/view.go 0.00% 8 Missing ⚠️
cmd/harbor/root/user/delete.go 0.00% 7 Missing ⚠️
cmd/harbor/root/user/password.go 0.00% 7 Missing ⚠️
cmd/harbor/root/context/switch.go 0.00% 5 Missing and 1 partial ⚠️
cmd/harbor/root/quota/list.go 0.00% 6 Missing ⚠️
cmd/harbor/root/quota/update.go 0.00% 6 Missing ⚠️
cmd/harbor/root/repository/view.go 0.00% 6 Missing ⚠️
... and 16 more
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #679      +/-   ##
=========================================
- Coverage   10.99%   7.47%   -3.52%     
=========================================
  Files         173     261      +88     
  Lines        8671   13009    +4338     
=========================================
+ Hits          953     973      +20     
- Misses       7612   11927    +4315     
- Partials      106     109       +3     

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

@NucleoFusion
Copy link
Contributor

So right now, lint is failing. Which probably will be fixed if you run this

dagger call run-doc export --path=./doc

@NucleoFusion
Copy link
Contributor

Also, could you remove changes to the artifact directory? It seems to have some different format errors as well.
So It would be better if I address the refactor and the RunE usage in a seperate PR (that I will create). and not have any merge conflicts here

@bhavyaKhatri2703
Copy link
Author

Also, could you remove changes to the artifact directory? It seems to have some different format errors as well. So It would be better if I address the refactor and the RunE usage in a seperate PR (that I will create). and not have any merge conflicts here

done

@bhavyaKhatri2703
Copy link
Author

So right now, lint is failing. Which probably will be fixed if you run this

dagger call run-doc export --path=./doc

done

Copy link
Contributor

@NucleoFusion NucleoFusion left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Collaborator

@bupd bupd left a comment

Choose a reason for hiding this comment

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

@bhavyaKhatri2703 please resolve conflicts

Thanks for the contribution.

@bhavyaKhatri2703
Copy link
Author

@bhavyaKhatri2703 please resolve conflicts

Thanks for the contribution.

@bupd resolved, thanks

I think lint is failing maybe because of issues in main

@bupd
Copy link
Collaborator

bupd commented Mar 3, 2026

@bhavyaKhatri2703 lint issue in main is fixed - please resolve conflicts

Thanks for the contribution

Copy link
Collaborator

@bupd bupd left a comment

Choose a reason for hiding this comment

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

please rebase onto main

Thanks

@bupd bupd added the Changes Requesed feedback that must be addressed before merging. label Mar 3, 2026
Signed-off-by: bhavyakhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyakhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyakhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyakhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyakhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyakhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyakhatri2703 <khatribhavya2703@gmail.com>
@bhavyaKhatri2703 bhavyaKhatri2703 force-pushed the refactor/replace-Run-commands-with-RunE branch from 76761fc to 71bf620 Compare March 3, 2026 15:59
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
@bhavyaKhatri2703 bhavyaKhatri2703 requested a review from bupd March 3, 2026 16:54
@bhavyaKhatri2703
Copy link
Author

@bupd pls have a look now , thanks.

Copy link
Collaborator

@bupd bupd left a comment

Choose a reason for hiding this comment

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

Looks like irrelevant doc changes have been made please fix that

Thanks

Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: Bhavya Khatri <khatribhavya2703@gmail.com>
@bhavyaKhatri2703
Copy link
Author

can someone help me with docs generation?
when i generate docs via dagger call run-doc export --path=./doc
it introduces these whitespace changes d8e4fe0

When i try to revert them back manually lints get failed.

@NucleoFusion
Copy link
Contributor

@bhavyaKhatri2703 let the doc changes be, just run run-doc and push it.
run-doc is supposed to change to tell the lint checker that docs have been changed

Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
Signed-off-by: bhavyaKhatri2703 <khatribhavya2703@gmail.com>
@bhavyaKhatri2703
Copy link
Author

@bupd let me know if there are still unwanted changes?

@bhavyaKhatri2703 bhavyaKhatri2703 requested a review from bupd March 9, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes Requesed feedback that must be addressed before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: Replace commands that use Run to use the RunE from cobra

4 participants