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

feat(sync): use regclient for sync extension #2903

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eusebiu-constantin-petu-dbk
Copy link
Collaborator

@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk commented Jan 20, 2025

replaced containers/image package with regclient/regclient package

What type of PR is this?
refactor

Which issue does this PR fix:
Doesn't fix anything, just uses another library for sync

What does this PR do / Why do we need it:
More unified sync logic without separate code fore referrers, catalog etc.

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
No

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

Attention: Patch coverage is 81.63001% with 142 lines in your changes missing coverage. Please review.

Project coverage is 91.01%. Comparing base (4fcd107) to head (f0d5fb4).

Files with missing lines Patch % Lines
pkg/extensions/sync/remote.go 74.16% 42 Missing and 12 partials ⚠️
pkg/extensions/sync/service.go 86.66% 38 Missing and 6 partials ⚠️
pkg/extensions/sync/destination.go 77.58% 20 Missing and 6 partials ⚠️
pkg/extensions/sync/utils.go 77.55% 8 Missing and 3 partials ⚠️
pkg/extensions/sync/oci_layout.go 76.92% 3 Missing ⚠️
pkg/extensions/sync/referrers.go 78.57% 2 Missing and 1 partial ⚠️
pkg/api/routes.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2903      +/-   ##
==========================================
- Coverage   91.04%   91.01%   -0.04%     
==========================================
  Files         174      168       -6     
  Lines       32644    31818     -826     
==========================================
- Hits        29722    28960     -762     
+ Misses       2209     2147      -62     
+ Partials      713      711       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

output.txt Outdated Show resolved Hide resolved
pkg/extensions/sync/content_test.go Outdated Show resolved Hide resolved
pkg/extensions/extension_sync.go Outdated Show resolved Hide resolved
pkg/extensions/sync/sync.go Show resolved Hide resolved
pkg/extensions/sync/referrers.go Outdated Show resolved Hide resolved
pkg/extensions/sync/on_demand.go Show resolved Hide resolved
pkg/extensions/sync/service.go Outdated Show resolved Hide resolved
@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk linked an issue Jan 24, 2025 that may be closed by this pull request
@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk force-pushed the sync_regclient_2 branch 2 times, most recently from f8f5eac to f3fb1fe Compare January 24, 2025 16:42
@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk marked this pull request as ready for review January 24, 2025 16:43
@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk changed the title feat(sync): use regclient for sync extension WIP feat(sync): use regclient for sync extension Jan 24, 2025
andaaron
andaaron previously approved these changes Jan 24, 2025
Copy link
Contributor

@andaaron andaaron left a comment

Choose a reason for hiding this comment

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

Looks good from my side.
Maybe just double check there's no commented code remaining.

@rchincha
Copy link
Contributor

@eusebiu-constantin-petu-dbk conflicts? sorry

examples/README.md Outdated Show resolved Hide resolved
pkg/extensions/sync/destination.go Outdated Show resolved Hide resolved
@andaaron
Copy link
Contributor

There are test failures.

@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk force-pushed the sync_regclient_2 branch 7 times, most recently from 21769c4 to 79e5536 Compare February 1, 2025 03:59
@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk force-pushed the sync_regclient_2 branch 3 times, most recently from 42b26f1 to 21769c4 Compare February 1, 2025 04:30
pkg/extensions/sync/service.go Outdated Show resolved Hide resolved
pkg/extensions/sync/destination.go Outdated Show resolved Hide resolved
replaced containers/image package with regclient/regclient package

Signed-off-by: Eusebiu Petu <[email protected]>
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.

[Bug]: tlsVerify does not work for sync
3 participants