Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the delete local manifest when remote doesn't exist #20597

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

stonezdj
Copy link
Contributor

@stonezdj stonezdj commented Jun 14, 2024

Previous impl it calls c.local.DeleteManifest(remoteRepo, art.Tag), because the remoteRepo is incorrect repository and it always delete nothing, to keep consistency with the previous version and code clarity, remove this go routine
fixes #20596
Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #(issue)

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@stonezdj stonezdj requested a review from a team as a code owner June 14, 2024 09:21
@stonezdj stonezdj assigned zyyw and unassigned Vad1mo and MinerYang Jun 14, 2024
@stonezdj stonezdj requested a review from zyyw June 14, 2024 09:21
@stonezdj stonezdj added the release-note/update Update or Fix label Jun 14, 2024
  Previous impl it calls c.local.DeleteManifest(remoteRepo, art.Tag), because the remoteRepo is incorrect repository and it always delete nothing, to keep consistency with the previous version and code clarity, remove this go routine

Signed-off-by: stonezdj <[email protected]>
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.00%. Comparing base (b7b8847) to head (d51a686).
Report is 220 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #20597      +/-   ##
==========================================
+ Coverage   67.56%   69.00%   +1.43%     
==========================================
  Files         991      798     -193     
  Lines      109181    99699    -9482     
  Branches     2719        0    -2719     
==========================================
- Hits        73768    68795    -4973     
+ Misses      31449    27126    -4323     
+ Partials     3964     3778     -186     
Flag Coverage Δ
unittests 69.00% <ø> (+1.43%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/controller/proxy/controller.go 14.91% <ø> (-0.68%) ⬇️

... and 322 files with indirect coverage changes

@stonezdj stonezdj force-pushed the 24jun14_remove_proxy_delete branch from f7a9c55 to d51a686 Compare June 14, 2024 09:24
Copy link
Contributor

@wy65701436 wy65701436 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
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

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

lgtm

@stonezdj stonezdj merged commit 793dc54 into goharbor:main Jun 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/update Update or Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreasonable deletion operation logic in proxy cache
6 participants