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

fix accessory import issue #19053

Merged
merged 1 commit into from
Jul 30, 2023
Merged

fix accessory import issue #19053

merged 1 commit into from
Jul 30, 2023

Conversation

wy65701436
Copy link
Contributor

@wy65701436 wy65701436 commented Jul 28, 2023

fixes #19041

The issuse was introduced by #17087. To move the import to main since the anonymous imports only allowed at main in go-cilint.

Fixes it:
To add the anonymous imports at the jobservice main since the gc job needs to remove accessory when to delete an artifact

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.

fixes goharbor#19041

The issuse was introduced by goharbor#17087.
To move the import to main since the anonymous imports only allowed at main in go-cilint.

Fixes it:
To add the anonymous imports at the jobservice main since the gc job needs to remove accessory when to delete an artifact

Signed-off-by: wang yan <[email protected]>
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #19053 (0164535) into main (84a1317) will decrease coverage by 3.15%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #19053      +/-   ##
==========================================
- Coverage   70.57%   67.43%   -3.15%     
==========================================
  Files         748      992     +244     
  Lines       95341   108727   +13386     
  Branches        0     2747    +2747     
==========================================
+ Hits        67291    73319    +6028     
- Misses      24426    31477    +7051     
- Partials     3624     3931     +307     
Flag Coverage Δ
unittests 67.43% <ø> (-3.15%) ⬇️

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

see 249 files with indirect coverage changes

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

@wy65701436 wy65701436 merged commit ae33dbd into goharbor:main Jul 30, 2023
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessories will not be GCed when GCing an artifact
6 participants