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

move repo.updatestamp update from Upload to UploadFinisher #828

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

matt-codecov
Copy link
Contributor

@matt-codecov matt-codecov commented Oct 28, 2024

this is a low-hanging fruit for reducing database locking. instead of doing this write in the repos table for every UploadTask, let's do it for UploadFinisher which should run less

that said, the UploadFinisher task will hold the lock longer

Copy link

sentry-io bot commented Oct 28, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: tasks/upload_finisher.py

Function Unhandled Issue
run_impl TypeError: string indices must be integers, not 'str' app.tasks.upload.UploadFin...
Event Count: 4

Did you find this useful? React with a 👍 or 👎

@matt-codecov matt-codecov requested a review from a team October 28, 2024 20:22
@codecov-staging
Copy link

codecov-staging bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #828      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36113    36112       -1     
==========================================
- Hits        35402    35401       -1     
  Misses        711      711              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <ø> (ø)
Files with missing lines Coverage Δ
tasks/tests/unit/test_upload_task.py 98.94% <ø> (-0.01%) ⬇️
tasks/upload.py 96.49% <ø> (-0.03%) ⬇️
tasks/upload_finisher.py 96.72% <100.00%> (+0.03%) ⬆️

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (f06e233) to head (3fb3283).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #828      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36113    36112       -1     
==========================================
- Hits        35402    35401       -1     
  Misses        711      711              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <ø> (ø)
Files with missing lines Coverage Δ
tasks/tests/unit/test_upload_task.py 98.94% <ø> (-0.01%) ⬇️
tasks/upload.py 96.49% <ø> (-0.03%) ⬇️
tasks/upload_finisher.py 96.72% <100.00%> (+0.03%) ⬆️

@codecov-qa
Copy link

codecov-qa bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (f06e233) to head (3fb3283).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #828      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36113    36112       -1     
==========================================
- Hits        35402    35401       -1     
  Misses        711      711              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <ø> (ø)
Files with missing lines Coverage Δ
tasks/tests/unit/test_upload_task.py 98.94% <ø> (-0.01%) ⬇️
tasks/upload.py 96.49% <ø> (-0.03%) ⬇️
tasks/upload_finisher.py 96.72% <100.00%> (+0.03%) ⬆️

Copy link

codecov-public-qa bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (f06e233) to head (3fb3283).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #828      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36113    36112       -1     
==========================================
- Hits        35402    35401       -1     
  Misses        711      711              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_task.py 98.94% <ø> (-0.01%) ⬇️
tasks/upload.py 96.49% <ø> (-0.03%) ⬇️
tasks/upload_finisher.py 96.72% <100.00%> (+0.03%) ⬆️

@matt-codecov matt-codecov added this pull request to the merge queue Oct 28, 2024
Merged via the queue into main with commit f701e3f Oct 28, 2024
26 of 27 checks passed
@matt-codecov matt-codecov deleted the pr828 branch October 28, 2024 20:46
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.

7 participants