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

Merged
merged 1 commit into from
Sep 30, 2024
Merged

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 90.76923% 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.09%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36327    36294      -33     
==========================================
- Hits        35634    35600      -34     
- Misses        693      694       +1     
Flag Coverage Δ
integration 98.08% <90.76%> (-0.01%) ⬇️
unit 98.08% <90.76%> (-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.02%) ⬇️
OutsideTasks 98.13% <93.75%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+1.78%) ⬆️
services/report/__init__.py 96.94% <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 99.38% <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%) ⬇️

@codecov-qa
Copy link

codecov-qa bot commented Sep 18, 2024

Codecov Report

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

Project coverage is 98.08%. Comparing base (100a69d) to head (afe4287).
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.09%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36327    36294      -33     
==========================================
- Hits        35634    35600      -34     
- Misses        693      694       +1     
Flag Coverage Δ
integration 98.08% <90.76%> (-0.01%) ⬇️
unit 98.08% <90.76%> (-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.02%) ⬇️
OutsideTasks 98.13% <93.75%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+1.78%) ⬆️
services/report/__init__.py 96.94% <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 99.38% <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%) ⬇️

Copy link

codecov-public-qa bot commented Sep 18, 2024

Codecov Report

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

Project coverage is 98.08%. Comparing base (100a69d) to head (afe4287).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
- Coverage   98.09%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36327    36294      -33     
==========================================
- Hits        35634    35600      -34     
- Misses        693      694       +1     
Flag Coverage Δ
integration 98.08% <90.76%> (-0.01%) ⬇️
unit 98.08% <90.76%> (-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.02%) ⬇️
OutsideTasks 98.13% <93.75%> (+<0.01%) ⬆️
Files Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+1.78%) ⬆️
services/report/__init__.py 96.94% <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 99.38% <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%) ⬇️

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

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

Project coverage is 98.08%. Comparing base (100a69d) to head (afe4287).
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.09%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36327    36294      -33     
==========================================
- Hits        35634    35600      -34     
- Misses        693      694       +1     
Flag Coverage Δ
integration 98.08% <90.76%> (-0.01%) ⬇️
unit 98.08% <90.76%> (-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.02%) ⬇️
OutsideTasks 98.13% <93.75%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
helpers/parallel_upload_processing.py 100.00% <ø> (+1.78%) ⬆️
services/report/__init__.py 96.94% <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 99.38% <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%) ⬇️

@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 2 times, most recently 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
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 added this pull request to the merge queue Sep 30, 2024
Merged via the queue into main with commit 32e4f7f Sep 30, 2024
18 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/fix-sessionid-allocation branch September 30, 2024 08:45
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