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

Stop writing ReportDetails/files_array #840

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

Swatinem
Copy link
Contributor

This model was previously used for the ill-fated report_builder feature which was since removed.

Avoiding the table and in particular the files_array saves us from one GCS write per report, so should speed up the UploadFinisher ever so slightly.

@Swatinem Swatinem requested a review from a team October 31, 2024 13:09
@Swatinem Swatinem self-assigned this Oct 31, 2024
Copy link

This PR includes changes to shared. Please review them here: codecov/shared@cde9892...6e68957

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.04%. Comparing base (d4909ff) to head (93a28a8).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #840      +/-   ##
==========================================
- Coverage   98.04%   98.04%   -0.01%     
==========================================
  Files         443      444       +1     
  Lines       36054    35984      -70     
==========================================
- Hits        35350    35279      -71     
- Misses        704      705       +1     
Flag Coverage Δ
integration 98.04% <100.00%> (-0.01%) ⬇️
unit 98.04% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 96.00% <ø> (-0.01%) ⬇️
OutsideTasks 98.05% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
services/report/__init__.py 96.94% <ø> (-0.11%) ⬇️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_preprocess_upload.py 100.00% <ø> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.92% <ø> (-0.01%) ⬇️

... and 8 files with indirect coverage changes

@codecov-staging
Copy link

codecov-staging bot commented Oct 31, 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     #840      +/-   ##
==========================================
- Coverage   98.04%   98.04%   -0.01%     
==========================================
  Files         443      444       +1     
  Lines       36054    35984      -70     
==========================================
- Hits        35350    35279      -71     
- Misses        704      705       +1     
Flag Coverage Δ
integration 98.04% <100.00%> (-0.01%) ⬇️
unit 98.04% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 96.00% <ø> (-0.01%) ⬇️
OutsideTasks 98.05% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
services/report/__init__.py 96.94% <ø> (-0.11%) ⬇️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_preprocess_upload.py 100.00% <ø> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.92% <ø> (-0.01%) ⬇️

... and 8 files with indirect coverage changes

@codecov-qa
Copy link

codecov-qa bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.04%. Comparing base (d4909ff) to head (93a28a8).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #840      +/-   ##
==========================================
- Coverage   98.04%   98.04%   -0.01%     
==========================================
  Files         443      444       +1     
  Lines       36054    35984      -70     
==========================================
- Hits        35350    35279      -71     
- Misses        704      705       +1     
Flag Coverage Δ
integration 98.04% <100.00%> (-0.01%) ⬇️
unit 98.04% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 96.00% <ø> (-0.01%) ⬇️
OutsideTasks 98.05% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
services/report/__init__.py 96.94% <ø> (-0.11%) ⬇️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_preprocess_upload.py 100.00% <ø> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.92% <ø> (-0.01%) ⬇️

... and 8 files with indirect coverage changes

Copy link

codecov-public-qa bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.04%. Comparing base (d4909ff) to head (93a28a8).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #840      +/-   ##
==========================================
- Coverage   98.04%   98.04%   -0.01%     
==========================================
  Files         443      444       +1     
  Lines       36054    35984      -70     
==========================================
- Hits        35350    35279      -71     
- Misses        704      705       +1     
Flag Coverage Δ
integration 98.04% <100.00%> (-0.01%) ⬇️
unit 98.04% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 96.00% <ø> (-0.01%) ⬇️
OutsideTasks 98.05% <100.00%> (-0.01%) ⬇️
Files Coverage Δ
services/report/__init__.py 96.94% <ø> (-0.11%) ⬇️
services/tests/test_report.py 100.00% <100.00%> (ø)
tasks/tests/integration/test_upload_e2e.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_preprocess_upload.py 100.00% <ø> (ø)
tasks/tests/unit/test_upload_processing_task.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_upload_task.py 98.92% <ø> (-0.01%) ⬇️

... and 8 files with indirect coverage changes

@Swatinem Swatinem force-pushed the swatinem/rm-reportdetails branch from 1a56669 to b4cdea8 Compare October 31, 2024 13:25
This model was previously used for the ill-fated `report_builder` feature which was since removed.

Avoiding the table and in particular the `files_array` saves us from one GCS write per report, so should speed up the `UploadFinisher` ever so slightly.
@Swatinem Swatinem force-pushed the swatinem/rm-reportdetails branch from b4cdea8 to 93a28a8 Compare October 31, 2024 13:42
@Swatinem Swatinem added this pull request to the merge queue Nov 4, 2024
Merged via the queue into main with commit 8fec23c Nov 4, 2024
25 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/rm-reportdetails branch November 4, 2024 08:21
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