Avoid HEAD request before getting blobs by jonesbusy · Pull Request #525 · oras-project/oras-java

Conversation

@jonesbusy

Description

Reduce HTTP request when getting blobs

Also some registries like ECR doesn't support well HEAD #522 (comment)

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
Signed-off-by: Valentin Delaye <jonesbusy@users.noreply.github.com>

@codecov

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.70%. Comparing base (aa7e1df) to head (f731aca).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #525      +/-   ##
============================================
+ Coverage     87.54%   88.70%   +1.15%     
  Complexity      663      663              
============================================
  Files            39       39              
  Lines          2024     2018       -6     
  Branches        231      231              
============================================
+ Hits           1772     1790      +18     
+ Misses          160      139      -21     
+ Partials         92       89       -3     

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

@jonesbusy jonesbusy deleted the feature/avoid-head-blob-before-fetch branch

February 7, 2026 07:28

Labels

bug

Something isn't working

1 participant

@jonesbusy