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

Only schedule parallel Upload Tasks #817

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

Swatinem
Copy link
Contributor

With parallel upload processing fully rolled out, its time to start cleaning up the feature flag.

This first step is changing the initial Upload task to only schedule the parallel version of UploadProcessor/Finisher.

As there will probably be a bunch of already scheduled tasks at time of deploy, this does not yet change those tasks to assume they run in fully parallel mode.

@Swatinem Swatinem requested a review from a team October 24, 2024 12:53
@Swatinem Swatinem self-assigned this Oct 24, 2024
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 98.07692% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.82%. Comparing base (abf43da) to head (62de8fd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/upload_processor.py 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #817      +/-   ##
==========================================
- Coverage   98.02%   97.82%   -0.21%     
==========================================
  Files         444      444              
  Lines       36488    36467      -21     
==========================================
- Hits        35769    35674      -95     
- Misses        719      793      +74     
Flag Coverage Δ
integration 97.82% <98.07%> (-0.21%) ⬇️
unit 97.82% <98.07%> (-0.21%) ⬇️

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

Components Coverage Δ
NonTestCode 95.44% <66.66%> (-0.50%) ⬇️
OutsideTasks 97.96% <ø> (-0.05%) ⬇️
Files with missing lines Coverage Δ
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.94% <100.00%> (-0.15%) ⬇️
tasks/upload.py 96.51% <100.00%> (+0.37%) ⬆️
tasks/upload_processor.py 97.80% <50.00%> (-1.65%) ⬇️

... and 5 files with indirect coverage changes

@codecov-notifications
Copy link

codecov-notifications bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 98.07692% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/upload_processor.py 50.00% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #817      +/-   ##
==========================================
- Coverage   98.02%   97.82%   -0.21%     
==========================================
  Files         444      444              
  Lines       36488    36467      -21     
==========================================
- Hits        35769    35674      -95     
- Misses        719      793      +74     
Flag Coverage Δ
integration 97.82% <98.07%> (-0.21%) ⬇️
unit 97.82% <98.07%> (-0.21%) ⬇️

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

Components Coverage Δ
NonTestCode 95.44% <66.66%> (-0.50%) ⬇️
OutsideTasks 97.96% <ø> (-0.05%) ⬇️
Files with missing lines Coverage Δ
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.94% <100.00%> (-0.15%) ⬇️
tasks/upload.py 96.51% <100.00%> (+0.37%) ⬆️
tasks/upload_processor.py 97.80% <50.00%> (-1.65%) ⬇️

... and 5 files with indirect coverage changes

@codecov-qa
Copy link

codecov-qa bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 98.07692% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.82%. Comparing base (abf43da) to head (62de8fd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/upload_processor.py 50.00% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #817      +/-   ##
==========================================
- Coverage   98.02%   97.82%   -0.21%     
==========================================
  Files         444      444              
  Lines       36488    36467      -21     
==========================================
- Hits        35769    35674      -95     
- Misses        719      793      +74     
Flag Coverage Δ
integration 97.82% <98.07%> (-0.21%) ⬇️
unit 97.82% <98.07%> (-0.21%) ⬇️

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

Components Coverage Δ
NonTestCode 95.44% <66.66%> (-0.50%) ⬇️
OutsideTasks 97.96% <ø> (-0.05%) ⬇️
Files with missing lines Coverage Δ
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.94% <100.00%> (-0.15%) ⬇️
tasks/upload.py 96.51% <100.00%> (+0.37%) ⬆️
tasks/upload_processor.py 97.80% <50.00%> (-1.65%) ⬇️

... and 5 files with indirect coverage changes

Copy link

codecov-public-qa bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 98.07692% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.82%. Comparing base (abf43da) to head (62de8fd).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #817      +/-   ##
==========================================
- Coverage   98.02%   97.82%   -0.21%     
==========================================
  Files         444      444              
  Lines       36488    36467      -21     
==========================================
- Hits        35769    35674      -95     
- Misses        719      793      +74     
Flag Coverage Δ
integration 97.82% <98.07%> (-0.21%) ⬇️
unit 97.82% <98.07%> (-0.21%) ⬇️

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

Components Coverage Δ
NonTestCode 95.44% <66.66%> (-0.50%) ⬇️
OutsideTasks 97.96% <ø> (-0.05%) ⬇️
Files Coverage Δ
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.94% <100.00%> (-0.15%) ⬇️
tasks/upload.py 96.51% <100.00%> (+0.37%) ⬆️
tasks/upload_processor.py 97.80% <50.00%> (-1.65%) ⬇️

... and 5 files with indirect coverage changes

With parallel upload processing fully rolled out, its time to start cleaning up the feature flag.

This first step is changing the initial `Upload` task to only schedule the parallel version of `UploadProcessor/Finisher`.

As there will probably be a bunch of already scheduled tasks at time of deploy, this does not yet change those tasks to assume they run in fully parallel mode.
Copy link
Contributor

@giovanni-guidini giovanni-guidini left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@@ -80,6 +80,7 @@ def run_impl(
commitid,
commit_yaml,
arguments_list,
arguments=None,
Copy link
Contributor

Choose a reason for hiding this comment

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

do you know the type of arguments or arguments_list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I have plans to properly type those as TypedDict in the future.

@Swatinem Swatinem added this pull request to the merge queue Oct 28, 2024
Merged via the queue into main with commit 1539efe Oct 28, 2024
16 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/schedule-parallel branch October 28, 2024 10:49
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.

2 participants