Skip to content

fix(sync): fixed checking updates in remote tags digest#3156

Merged
rchincha merged 1 commit into
project-zot:mainfrom
eusebiu-constantin-petu-dbk:sync_preserve_digest_fix
May 20, 2025
Merged

fix(sync): fixed checking updates in remote tags digest#3156
rchincha merged 1 commit into
project-zot:mainfrom
eusebiu-constantin-petu-dbk:sync_preserve_digest_fix

Conversation

@eusebiu-constantin-petu-dbk

@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk commented May 15, 2025

Copy link
Copy Markdown
Collaborator

when preserveDigest option in sync is enabled

closes: #3129

What type of PR is this?
bug fix

Which issue does this PR fix:
#3129

What does this PR do / Why do we need it:
When preserve digest was enabled it didn't correctly compare the local and remote digest when checking if updates were pushed(ie: latest tag was updated) on remote tags.

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

Testing done on this change:

Automation added to e2e:

Added test case
Will this break upgrades or downgrades?
no

Does this PR introduce any user-facing change?:

no


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

@codecov

codecov Bot commented May 15, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 74.07407% with 7 lines in your changes missing coverage. Please review.

Project coverage is 90.55%. Comparing base (7291b88) to head (3eaee7e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/extensions/sync/remote.go 68.18% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3156      +/-   ##
==========================================
+ Coverage   90.51%   90.55%   +0.03%     
==========================================
  Files         182      182              
  Lines       32788    32810      +22     
==========================================
+ Hits        29678    29711      +33     
+ Misses       2348     2330      -18     
- Partials      762      769       +7     

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

andaaron
andaaron previously approved these changes May 15, 2025
@rchincha

Copy link
Copy Markdown
Contributor

Can we do something about code coverage?

Comment thread pkg/extensions/sync/sync_test.go Outdated
when preserveDigest option in sync is enabled

closes: project-zot#3129

Signed-off-by: Eusebiu Petu <petu.eusebiu@gmail.com>
@rchincha
rchincha merged commit af4a46b into project-zot:main May 20, 2025
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]: Pull-through cache re-triggers upstream pulls, exhausting rate limits and downloading all archs

3 participants