8000 Make `process_raw_upload` return the `Report` directly by Swatinem · Pull Request #850 · codecov/worker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Make process_raw_upload return the Report directly #850

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

Swatinem
Copy link
Contributor
@Swatinem Swatinem commented Nov 4, 2024

The process_raw_upload function would previously get a partial report as one of its arguments, to merge the processed upload into.

As this has changed fundamentally with parallel upload processing, we can just return the processed Report directly.

@Swatinem Swatinem requested a review from a team November 4, 2024 13:13
@Swatinem Swatinem self-assigned this Nov 4, 2024
Copy link
codecov bot commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.

Project coverage is 97.98%. Comparing base (1e2c27a) to head (c7729d8).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
services/report/raw_upload_processor.py 70.00% 3 Missing ⚠️
services/report/tests/unit/test_process.py 95.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #850      +/-   ##
==========================================
- Coverage   98.02%   97.98%   -0.05%     
==========================================
  Files         444      444              
  Lines       36057    35942     -115     
==========================================
- Hits        35346    35216     -130     
- Misses        711      726      +15     
Flag Coverage Δ
integration 97.98% <87.87%> (-0.05%) ⬇️
unit 97.98% <87.87%> (-0.05%) ⬇️

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

Components Coverage Δ
NonTestCode 95.97% <75.00%> (-0.02%) ⬇️
OutsideTasks 97.98% <87.87%> (-0.08%) ⬇️
Files with missing lines Coverage Δ
services/processing/processing.py 98.24% <ø> (-0.04%) ⬇️
services/report/__init__.py 97.16% <100.00%> (+0.22%) ⬆️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <ø> (ø)
services/report/tests/unit/test_process.py 89.36% <95.00%> (-7.33%) ⬇️
services/report/raw_upload_processor.py 93.78% <70.00%> (-1.51%) ⬇️

@codecov-notifications
Copy link
codecov-notifications bot commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
services/report/raw_upload_processor.py 70.00% 3 Missing ⚠️
services/report/tests/unit/test_process.py 95.00% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #850      +/-   ##
==========================================
- Coverage   98.02%   97.98%   -0.05%     
==========================================
  Files         444      444              
  Lines       36057    35942     -115     
==========================================
- Hits        35346    35216     -130     
- Misses        711      726      +15     
Flag Coverage Δ
integration 97.98% <87.87%> (-0.05%) ⬇️
unit 97.98% <87.87%> (-0.05%) ⬇️

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

Components Coverage Δ
NonTestCode 95.97% <75.00%> (-0.02%) ⬇️
OutsideTasks 97.98% <87.87%> (-0.08%) ⬇️
Files with missing lines Coverage Δ
services/processing/processing.py 98.24% <ø> (-0.04%) ⬇️
services/report/__init__.py 97.16% <100.00%> (+0.22%) ⬆️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <ø> (ø)
services/report/tests/unit/test_process.py 89.36% <95.00%> (-7.33%) ⬇️
services/report/raw_upload_processor.py 93.78% <70.00%> (-1.51%) ⬇️

@codecov-qa
Copy link
codecov-qa bot commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.

Project coverage is 97.98%. Comparing base (1e2c27a) to head (c7729d8).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
services/report/raw_upload_processor.py 70.00% 3 Missing ⚠️
services/report/tests/unit/test_process.py 95.00% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #850      +/-   ##
==========================================
- Coverage   98.02%   97.98%   -0.05%     
==========================================
  Files         444      444              
  Lines       36057    35942     -115     
==========================================
- Hits        35346    35216     -130     
- Misses        711      726      +15     
Flag Coverage Δ
integration 97.98% <87.87%> (-0.05%) ⬇️
unit 97.98% <87.87%> (-0.05%) ⬇️

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

Components Coverage Δ
NonTestCode 95.97% <75.00%> (-0.02%) ⬇️
OutsideTasks 97.98% <87.87%> (-0.08%) ⬇️
Files with missing lines Coverage Δ
services/processing/processing.py 98.24% <ø> (-0.04%) ⬇️
services/report/__init__.py 97.16% <100.00%> (+0.22%) ⬆️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <ø> (ø)
services/report/tests/unit/test_process.py 89.36% <95.00%> (-7.33%) ⬇️
services/report/raw_upload_processor.py 93.78% <70.00%> (-1.51%) ⬇️

Copy link
codecov-public-qa bot commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.

Project coverage is 97.98%. Comparing base (1e2c27a) to head (c7729d8).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #850      +/-   ##
==========================================
- Coverage   98.02%   97.98%   -0.05%     
==========================================
  Files         444      444              
  Lines       36057    35942     -115     
==========================================
- Hits        35346    35216     -130     
- Misses        711      726      +15     
Flag Coverage Δ
integration 97.98% <87.87%> (-0.05%) ⬇️
unit 97.98% <87.87%> (-0.05%) ⬇️

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

Components Coverage Δ
NonTestCode 95.97% <75.00%> (-0.02%) ⬇️
OutsideTasks 97.98% <87.87%> (-0.08%) ⬇️
Files Coverage Δ
services/processing/processing.py 98.24% <ø> (-0.04%) ⬇️
services/report/__init__.py 97.16% <100.00%> (+0.22%) ⬆️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <ø> (ø)
services/report/tests/unit/test_process.py 89.36% <95.00%> (-7.33%) ⬇️
services/report/raw_upload_processor.py 93.78% <70.00%> (-1.51%) ⬇️

@Swatinem Swatinem force-pushed the swatinem/single-report branch from b935dfb to 0e50655 Compare November 4, 2024 13:51
The `process_raw_upload` function would previously get a partial `report` as one of its arguments, to merge the processed upload into.

As this has changed fundamentally with parallel upload processing, we can just return the processed `Report` directly.
@Swatinem Swatinem force-pushed the swatinem/single-report branch from 0e50655 to c7729d8 Compare November 6, 2024 09:33
@Swatinem Swatinem added this pull request to the merge queue Nov 7, 2024
Merged via the queue into main with commit 2bc29cf Nov 7, 2024
14 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/single-report branch November 7, 2024 09:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0