Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quota: removing repo size from quota verification (PROJQUAY-6637) #2704

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

bcaton85
Copy link
Contributor

During quota verification, Quay fetches the size of the image currently being uploaded. That method incorrectly added the repository size to the size of the image being uploaded. That total returned was then added to the namespace size resulting in the following check: repo_size + namespace_size + uploaded blob > quota_size_limit. This causes the repo_size to be counted twice and images to be blocked early.

@bcaton85 bcaton85 requested a review from kleesc February 26, 2024 16:32
Copy link

codecov bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.69%. Comparing base (233c128) to head (87d0f83).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2704      +/-   ##
==========================================
- Coverage   70.70%   70.69%   -0.01%     
==========================================
  Files         436      436              
  Lines       40223    40221       -2     
  Branches     5228     5228              
==========================================
- Hits        28438    28436       -2     
- Misses      10127    10129       +2     
+ Partials     1658     1656       -2     
Flag Coverage Δ
unit 70.69% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kleesc kleesc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bcaton85 bcaton85 merged commit 29258ae into quay:master Feb 26, 2024
19 checks passed
@bcaton85
Copy link
Contributor Author

/cherry-pick redhat-3.10

@openshift-cherrypick-robot

@bcaton85: new pull request created: #2708

In response to this:

/cherry-pick redhat-3.10

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sunandadadi pushed a commit to Sunandadadi/quay that referenced this pull request Feb 27, 2024
…ay#2704)

removing repo size from upload image size during quota verification
Sunandadadi pushed a commit to Sunandadadi/quay that referenced this pull request Mar 5, 2024
…ay#2704)

removing repo size from upload image size during quota verification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants