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

Use the upload.id as parallel_idx #720

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

Conversation

Swatinem
Copy link
Contributor

@Swatinem Swatinem commented Sep 18, 2024

This way, the parallel_idx is fully unique.

Then later when merging the reports together, each parallel report session will change its index according to what the next session_id within the aggregated Report will be.

@Swatinem Swatinem requested a review from a team September 18, 2024 12:14
@Swatinem Swatinem self-assigned this Sep 18, 2024
@Swatinem Swatinem marked this pull request as draft September 18, 2024 12:18
@codecov-staging
Copy link

codecov-staging bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 91.54930% with 6 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/upload_finisher.py 83.33% 5 Missing ⚠️
services/report/raw_upload_processor.py 90.90% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
+ Coverage   98.07%   98.08%   +0.01%     
==========================================
  Files         432      432              
  Lines       36248    36220      -28     
==========================================
- Hits        35549    35527      -22     
+ Misses        699      693       -6     
Flag Coverage Δ
integration 98.08% <91.54%> (+0.01%) ⬆️
unit 98.08% <91.54%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.01% <88.46%> (+0.03%) ⬆️
OutsideTasks 98.12% <93.75%> (+0.03%) ⬆️
Files with missing lines Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+14.28%) ⬆️
services/report/__init__.py 96.73% <100.00%> (-0.03%) ⬇️
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 99.09% <100.00%> (-0.01%) ⬇️
tasks/upload.py 96.28% <ø> (-0.09%) ⬇️
tasks/upload_processor.py 100.00% <100.00%> (+0.57%) ⬆️
services/report/raw_upload_processor.py 95.75% <90.90%> (+0.54%) ⬆️
tasks/upload_finisher.py 95.59% <83.33%> (-1.55%) ⬇️

... and 2 files with indirect coverage changes

@codecov-qa
Copy link

codecov-qa bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 91.54930% with 6 lines in your changes missing coverage. Please review.

Project coverage is 98.08%. Comparing base (bc52619) to head (c1793fe).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/upload_finisher.py 83.33% 5 Missing ⚠️
services/report/raw_upload_processor.py 90.90% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
+ Coverage   98.07%   98.08%   +0.01%     
==========================================
  Files         432      432              
  Lines       36248    36220      -28     
==========================================
- Hits        35549    35527      -22     
+ Misses        699      693       -6     
Flag Coverage Δ
integration 98.08% <91.54%> (+0.01%) ⬆️
unit 98.08% <91.54%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.01% <88.46%> (+0.03%) ⬆️
OutsideTasks 98.12% <93.75%> (+0.03%) ⬆️
Files with missing lines Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+14.28%) ⬆️
services/report/__init__.py 96.73% <100.00%> (-0.03%) ⬇️
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 99.09% <100.00%> (-0.01%) ⬇️
tasks/upload.py 96.28% <ø> (-0.09%) ⬇️
tasks/upload_processor.py 100.00% <100.00%> (+0.57%) ⬆️
services/report/raw_upload_processor.py 95.75% <90.90%> (+0.54%) ⬆️
tasks/upload_finisher.py 95.59% <83.33%> (-1.55%) ⬇️

... and 2 files with indirect coverage changes

Copy link

codecov-public-qa bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 91.54930% with 6 lines in your changes missing coverage. Please review.

Project coverage is 98.08%. Comparing base (bc52619) to head (c1793fe).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
+ Coverage   98.07%   98.08%   +0.01%     
==========================================
  Files         432      432              
  Lines       36248    36220      -28     
==========================================
- Hits        35549    35527      -22     
+ Misses        699      693       -6     
Flag Coverage Δ
integration 98.08% <91.54%> (+0.01%) ⬆️
unit 98.08% <91.54%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.01% <88.46%> (+0.03%) ⬆️
OutsideTasks 98.12% <93.75%> (+0.03%) ⬆️
Files Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+14.28%) ⬆️
services/report/__init__.py 96.73% <100.00%> (-0.03%) ⬇️
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 99.09% <100.00%> (-0.01%) ⬇️
tasks/upload.py 96.28% <ø> (-0.09%) ⬇️
tasks/upload_processor.py 100.00% <100.00%> (+0.57%) ⬆️
services/report/raw_upload_processor.py 95.75% <90.90%> (+0.54%) ⬆️
tasks/upload_finisher.py 95.59% <83.33%> (-1.55%) ⬇️

... and 2 files with indirect coverage changes

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 91.54930% with 6 lines in your changes missing coverage. Please review.

Project coverage is 98.08%. Comparing base (bc52619) to head (c1793fe).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/upload_finisher.py 83.33% 5 Missing ⚠️
services/report/raw_upload_processor.py 90.90% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
+ Coverage   98.07%   98.08%   +0.01%     
==========================================
  Files         432      432              
  Lines       36248    36220      -28     
==========================================
- Hits        35549    35527      -22     
+ Misses        699      693       -6     
Flag Coverage Δ
integration 98.08% <91.54%> (+0.01%) ⬆️
unit 98.08% <91.54%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.01% <88.46%> (+0.03%) ⬆️
OutsideTasks 98.12% <93.75%> (+0.03%) ⬆️
Files with missing lines Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+14.28%) ⬆️
services/report/__init__.py 96.73% <100.00%> (-0.03%) ⬇️
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 99.09% <100.00%> (-0.01%) ⬇️
tasks/upload.py 96.28% <ø> (-0.09%) ⬇️
tasks/upload_processor.py 100.00% <100.00%> (+0.57%) ⬆️
services/report/raw_upload_processor.py 95.75% <90.90%> (+0.54%) ⬆️
tasks/upload_finisher.py 95.59% <83.33%> (-1.55%) ⬇️

... and 2 files with indirect coverage changes

@Swatinem Swatinem force-pushed the swatinem/fix-sessionid-allocation branch from 1e40b96 to cdf4bba Compare September 18, 2024 15:10
@Swatinem Swatinem force-pushed the swatinem/fix-sessionid-allocation branch from cdf4bba to 3a9f322 Compare September 26, 2024 14:47
This way, the `parallel_idx` is fully unique.
Then later when merging the reports together, each parallel report session will change its index according to what the next session_id within the aggregated Report will be.
@Swatinem Swatinem force-pushed the swatinem/fix-sessionid-allocation branch from 3a9f322 to c1793fe Compare September 26, 2024 15:12
@Swatinem Swatinem changed the title Derive the session.id/order_number from the upload.id Use the upload.id as parallel_idx Sep 26, 2024
@Swatinem Swatinem marked this pull request as ready for review September 26, 2024 15:26
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