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

Don't auto create bucket when not needed. #647

Merged
merged 5 commits into from
Aug 27, 2024

Conversation

trent-codecov
Copy link
Contributor

@trent-codecov trent-codecov commented Aug 27, 2024

This is causing issues with GCS rate limits on calling bucket create. We know the bucket exists already.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

codecov-staging bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files Patch % Lines
main.py 50.00% 2 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
- Coverage   98.12%   98.11%   -0.02%     
==========================================
  Files         437      437              
  Lines       36778    36780       +2     
==========================================
- Hits        36090    36088       -2     
- Misses        688      692       +4     
Flag Coverage Δ
integration 98.11% <60.00%> (-0.02%) ⬇️
latest-uploader-overall 98.11% <60.00%> (-0.02%) ⬇️
unit 98.11% <60.00%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.04% <50.00%> (-0.03%) ⬇️
OutsideTasks 98.09% <60.00%> (-0.02%) ⬇️
Files Coverage Δ
tests/unit/test_main.py 100.00% <100.00%> (ø)
main.py 89.47% <50.00%> (-5.13%) ⬇️

@codecov-qa
Copy link

codecov-qa bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.11%. Comparing base (3dbd2fa) to head (699f4aa).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files Patch % Lines
main.py 50.00% 2 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
- Coverage   98.12%   98.11%   -0.02%     
==========================================
  Files         437      437              
  Lines       36778    36780       +2     
==========================================
- Hits        36090    36088       -2     
- Misses        688      692       +4     
Flag Coverage Δ
integration 98.11% <60.00%> (-0.02%) ⬇️
latest-uploader-overall 98.11% <60.00%> (-0.02%) ⬇️
unit 98.11% <60.00%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.04% <50.00%> (-0.03%) ⬇️
OutsideTasks 98.09% <60.00%> (-0.02%) ⬇️
Files Coverage Δ
tests/unit/test_main.py 100.00% <100.00%> (ø)
main.py 89.47% <50.00%> (-5.13%) ⬇️

Copy link

codecov-public-qa bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.11%. Comparing base (3dbd2fa) to head (699f4aa).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
- Coverage   98.12%   98.11%   -0.02%     
==========================================
  Files         437      437              
  Lines       36778    36780       +2     
==========================================
- Hits        36090    36088       -2     
- Misses        688      692       +4     
Flag Coverage Δ
integration 98.11% <60.00%> (-0.02%) ⬇️
latest-uploader-overall 98.11% <60.00%> (-0.02%) ⬇️
unit 98.11% <60.00%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.04% <50.00%> (-0.03%) ⬇️
OutsideTasks 98.09% <60.00%> (-0.02%) ⬇️
Files Coverage Δ
tests/unit/test_main.py 100.00% <100.00%> (ø)
main.py 89.47% <50.00%> (-5.13%) ⬇️

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.16%. Comparing base (3dbd2fa) to head (699f4aa).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files Patch % Lines
main.py 50.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
- Coverage   98.16%   98.16%   -0.01%     
==========================================
  Files         476      476              
  Lines       38099    38101       +2     
==========================================
  Hits        37401    37401              
- Misses        698      700       +2     
Flag Coverage Δ
integration 98.11% <60.00%> (-0.02%) ⬇️
latest-uploader-overall 98.11% <60.00%> (-0.02%) ⬇️
unit 98.11% <60.00%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.14% <50.00%> (-0.02%) ⬇️
OutsideTasks 98.09% <60.00%> (-0.02%) ⬇️
Files Coverage Δ
tests/unit/test_main.py 100.00% <100.00%> (ø)
main.py 92.10% <50.00%> (-2.49%) ⬇️

This change has been scanned for critical changes. Learn more

@trent-codecov trent-codecov added this pull request to the merge queue Aug 27, 2024
Merged via the queue into main with commit f29f150 Aug 27, 2024
13 of 26 checks passed
@trent-codecov trent-codecov deleted the trent/dont-create-bucket-for-no-reason branch August 27, 2024 18:08
Copy link

@Morton22 Morton22 left a comment

Choose a reason for hiding this comment

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

@@ -72,10 +72,16 @@ def setup_worker():
storage_client = get_storage_client()
Copy link

Choose a reason for hiding this comment

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

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