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

Add metric for uploads per scheduled tasks #718

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Swatinem
Copy link
Contributor

The Upload task schedules multiple UploadProcessor tasks and another UploadFinisher.

This batching is rather accidental because of locking rather than intentional. It might be good to know how uploads are being grouped into a single processor/finisher chain.

Also includes a bunch of cleanups and driveby typing fixes.

@Swatinem Swatinem requested a review from a team September 18, 2024 09:24
@Swatinem Swatinem self-assigned this Sep 18, 2024
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.14%. Comparing base (80952af) to head (d5ee646).
Report is 1 commits behind head on main.

Changes have been made to critical files, which contain lines commonly executed in production. Learn more

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #718      +/-   ##
==========================================
+ Coverage   98.12%   98.14%   +0.01%     
==========================================
  Files         475      475              
  Lines       38089    38091       +2     
==========================================
+ Hits        37374    37383       +9     
+ Misses        715      708       -7     
Flag Coverage Δ
integration 98.09% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 98.09% <100.00%> (+0.01%) ⬆️
unit 98.09% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.12% <100.00%> (+0.04%) ⬆️
OutsideTasks 98.12% <100.00%> (+0.02%) ⬆️
Files with missing lines Coverage Δ
services/bundle_analysis/report.py 100.00% <100.00%> (ø)
services/report/__init__.py Critical 97.00% <100.00%> (ø)
services/report/report_processor.py 95.49% <100.00%> (ø)
services/test_results.py 93.71% <100.00%> (+3.61%) ⬆️
tasks/upload.py Critical 97.70% <100.00%> (+0.02%) ⬆️

This change has been scanned for critical changes. Learn more

@codecov-notifications
Copy link

codecov-notifications bot commented Sep 18, 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     #718      +/-   ##
==========================================
+ Coverage   98.07%   98.09%   +0.01%     
==========================================
  Files         434      434              
  Lines       36734    36736       +2     
==========================================
+ Hits        36027    36036       +9     
+ Misses        707      700       -7     
Flag Coverage Δ
integration 98.09% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 98.09% <100.00%> (+0.01%) ⬆️
unit 98.09% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.02% <100.00%> (+0.04%) ⬆️
OutsideTasks 98.12% <100.00%> (+0.02%) ⬆️
Files Coverage Δ
services/bundle_analysis/report.py 100.00% <100.00%> (ø)
services/report/__init__.py 96.78% <100.00%> (ø)
services/report/report_processor.py 95.49% <100.00%> (ø)
services/test_results.py 93.71% <100.00%> (+3.61%) ⬆️
tasks/upload.py 96.36% <100.00%> (+0.03%) ⬆️

@codecov-qa
Copy link

codecov-qa bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.09%. Comparing base (80952af) to head (d5ee646).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #718      +/-   ##
==========================================
+ Coverage   98.07%   98.09%   +0.01%     
==========================================
  Files         434      434              
  Lines       36734    36736       +2     
==========================================
+ Hits        36027    36036       +9     
+ Misses        707      700       -7     
Flag Coverage Δ
integration 98.09% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 98.09% <100.00%> (+0.01%) ⬆️
unit 98.09% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.02% <100.00%> (+0.04%) ⬆️
OutsideTasks 98.12% <100.00%> (+0.02%) ⬆️
Files with missing lines Coverage Δ
services/bundle_analysis/report.py 100.00% <100.00%> (ø)
services/report/__init__.py 96.78% <100.00%> (ø)
services/report/report_processor.py 95.49% <100.00%> (ø)
services/test_results.py 93.71% <100.00%> (+3.61%) ⬆️
tasks/upload.py 96.36% <100.00%> (+0.03%) ⬆️

Copy link

codecov-public-qa bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.09%. Comparing base (80952af) to head (d5ee646).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #718      +/-   ##
==========================================
+ Coverage   98.07%   98.09%   +0.01%     
==========================================
  Files         434      434              
  Lines       36734    36736       +2     
==========================================
+ Hits        36027    36036       +9     
+ Misses        707      700       -7     
Flag Coverage Δ
integration 98.09% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 98.09% <100.00%> (+0.01%) ⬆️
unit 98.09% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.02% <100.00%> (+0.04%) ⬆️
OutsideTasks 98.12% <100.00%> (+0.02%) ⬆️
Files Coverage Δ
services/bundle_analysis/report.py 100.00% <100.00%> (ø)
services/report/__init__.py 96.78% <100.00%> (ø)
services/report/report_processor.py 95.49% <100.00%> (ø)
services/test_results.py 93.71% <100.00%> (+3.61%) ⬆️
tasks/upload.py 96.36% <100.00%> (+0.03%) ⬆️

@Swatinem Swatinem force-pushed the swatinem/metric-schedule branch 2 times, most recently from fd7b256 to a740c40 Compare September 18, 2024 13:16
The `Upload` task schedules multiple `UploadProcessor` tasks and another `UploadFinisher`.

This batching is rather accidental because of locking rather than intentional. It might be good to know how uploads are being grouped into a single processor/finisher chain.
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.

1 participant