Skip to content

Conversation

@rchincha
Copy link
Contributor

regclient/regclient#961
opencontainers/distribution-spec#581

Previously, zot returned the size of the currently uploaded chunk. Other registries the size of the entire blob.

Align with the latter behavior.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

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?

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.

@rchincha
Copy link
Contributor Author

With this PR ...

$ ./regctl image mod localhost:8080/test:v0.1 --create localhost:8080/test:v0.1-uncompressed --layer-compress "none"
localhost:8080/test:v0.1-uncompressed

$ echo $?
0

regclient/regclient#961
opencontainers/distribution-spec#581

Previously, zot returned the size of the currently uploaded chunk.
Other registries the size of the entire blob.

Align with the latter behavior.

Signed-off-by: Ramkumar Chinchani <[email protected]>
@codecov
Copy link

codecov bot commented Jul 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.54%. Comparing base (b2a5afc) to head (a64dff1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3279      +/-   ##
==========================================
- Coverage   90.58%   90.54%   -0.04%     
==========================================
  Files         183      183              
  Lines       33001    33003       +2     
==========================================
- Hits        29894    29884      -10     
- Misses       2340     2349       +9     
- Partials      767      770       +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.

@rchincha rchincha requested a review from andaaron July 30, 2025 07:22
@andaaron
Copy link
Contributor

Maybe add a blackbox test?

@sudo-bmitch
Copy link

Testing against both regctl and the distribution-spec conformance test both LGTM.

@rchincha rchincha merged commit 642d9ba into project-zot:main Jul 31, 2025
42 of 43 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.

3 participants