Skip to content

Optimize OCI layout push blob to avoid file copy if already exists#758

Merged
jonesbusy merged 1 commit into
oras-project:mainfrom
jonesbusy:feature/optimize-oci-layout-copy
Jun 22, 2026
Merged

Optimize OCI layout push blob to avoid file copy if already exists#758
jonesbusy merged 1 commit into
oras-project:mainfrom
jonesbusy:feature/optimize-oci-layout-copy

Conversation

@jonesbusy

Copy link
Copy Markdown
Collaborator

Description

Fix #185

Testing done

mvn clean install

Submitter checklist

  • I have read and understood the CONTRIBUTING guide
  • I have run mvn license:update-file-header, mvn spotless:apply, pre-commit run -a, mvn clean install before opening the PR

@jonesbusy jonesbusy added the enhancement New feature or request label Jun 22, 2026
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.55%. Comparing base (c4163b4) to head (9e7acdd).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/main/java/land/oras/OCILayout.java 90.47% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #758      +/-   ##
============================================
+ Coverage     87.20%   87.55%   +0.34%     
- Complexity     1108     1109       +1     
============================================
  Files            45       45              
  Lines          3432     3446      +14     
  Branches        459      463       +4     
============================================
+ Hits           2993     3017      +24     
+ Misses          263      248      -15     
- Partials        176      181       +5     

☔ View full report in Codecov by Harness.
📢 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.

Signed-off-by: Valentin Delaye <jonesbusy@users.noreply.github.com>
@jonesbusy jonesbusy force-pushed the feature/optimize-oci-layout-copy branch from 0004530 to 9e7acdd Compare June 22, 2026 06:25
@jonesbusy jonesbusy marked this pull request as ready for review June 22, 2026 06:34
@jonesbusy jonesbusy merged commit d6f6b0e into oras-project:main Jun 22, 2026
9 checks passed
@jonesbusy jonesbusy deleted the feature/optimize-oci-layout-copy branch June 22, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export to OCI layout should not attempt to download blob if already exists on target folder

1 participant