Skip to content

Skip OCI conversion for already-synced images#3824

Merged
andaaron merged 2 commits into
project-zot:mainfrom
utafrali:fix/issue-3823-bug-oci-conversion-attempted-on-skipped-
Feb 28, 2026
Merged

Skip OCI conversion for already-synced images#3824
andaaron merged 2 commits into
project-zot:mainfrom
utafrali:fix/issue-3823-bug-oci-conversion-attempted-on-skipped-

Conversation

@utafrali

Copy link
Copy Markdown
Contributor

Have syncRef return a boolean flag to indicate if an image was skipped. The caller can then return early without attempting OCI conversion, which was causing misleading errors. Fixes #3823.

When syncRef determines an image is already synced, it now returns a
bool to signal the skip. syncImage checks this and returns early before
attempting OCI conversion, preventing misleading 'failed to convert
docker image to oci' errors caused by a non-existent temp directory.
Comment thread pkg/extensions/sync/service.go
Address review feedback: new referrers can be added upstream after
initial sync, so we must not skip syncReferrers. Only the OCI
conversion is guarded by the skipped flag, since converting an
already-stored image is both unnecessary and incorrect.

Signed-off-by: Ugur Tafrali <ugur.tafrali@gmail.com>
@codecov

codecov Bot commented Feb 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.45%. Comparing base (01bca48) to head (6611a8c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3824      +/-   ##
==========================================
- Coverage   91.46%   91.45%   -0.02%     
==========================================
  Files         193      193              
  Lines       27456    27456              
==========================================
- Hits        25113    25109       -4     
- Misses       1519     1523       +4     
  Partials      824      824              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andaaron
andaaron merged commit 1ff6f60 into project-zot:main Feb 28, 2026
42 of 45 checks passed
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]: OCI conversion attempted causes misleading errors

2 participants