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

Add metrics for intermediate Report size #829

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

Swatinem
Copy link
Contributor

Emits metrics for uncompressed and zstd compressed intermediate Reports.

Saving these to GCS is slow and might also be expensive. Saving them to a more transient storage such as redis should be a lot faster and potentially cheaper as well. However, such intermediate storage might be a lot more size constraint, so we want to figure out what we are dealing with.

In addition, this also cleans up a bunch of leftover code after fully rolling out parallel processing.

Emits metrics for uncompressed and `zstd` compressed intermediate Reports.

Saving these to GCS is slow and might also be expensive. Saving them to a more transient storage such as redis should be a lot faster and potentially cheaper as well. However, such intermediate storage might be a lot more size constraint, so we want to figure out what we are dealing with.

In addition, this also cleans up a bunch of leftover code after fully rolling out parallel processing.
@Swatinem Swatinem requested a review from a team October 29, 2024 09:39
@Swatinem Swatinem self-assigned this Oct 29, 2024
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (f701e3f) to head (9036b29).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #829   +/-   ##
=======================================
  Coverage   98.03%   98.03%           
=======================================
  Files         442      441    -1     
  Lines       36112    36112           
=======================================
  Hits        35401    35401           
  Misses        711      711           
Flag Coverage Δ
integration 98.03% <100.00%> (ø)
unit 98.03% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <100.00%> (ø)
Files with missing lines Coverage Δ
services/archive.py 99.03% <ø> (-0.06%) ⬇️
services/processing/intermediate.py 100.00% <100.00%> (ø)
services/processing/merging.py 92.42% <100.00%> (ø)
services/processing/metrics.py 100.00% <100.00%> (ø)
tasks/upload_finisher.py 96.72% <100.00%> (ø)
tasks/upload_processor.py 98.56% <100.00%> (ø)

Copy link

codecov-public-qa bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (f701e3f) to head (9036b29).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #829   +/-   ##
=======================================
  Coverage   98.03%   98.03%           
=======================================
  Files         442      441    -1     
  Lines       36112    36112           
=======================================
  Hits        35401    35401           
  Misses        711      711           
Flag Coverage Δ
integration 98.03% <100.00%> (ø)
unit 98.03% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <100.00%> (ø)
Files Coverage Δ
services/archive.py 99.03% <ø> (-0.06%) ⬇️
services/processing/intermediate.py 100.00% <100.00%> (ø)
services/processing/merging.py 92.42% <100.00%> (ø)
services/processing/metrics.py 100.00% <100.00%> (ø)
tasks/upload_finisher.py 96.72% <100.00%> (ø)
tasks/upload_processor.py 98.56% <100.00%> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (f701e3f) to head (9036b29).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #829   +/-   ##
=======================================
  Coverage   98.03%   98.03%           
=======================================
  Files         442      441    -1     
  Lines       36112    36112           
=======================================
  Hits        35401    35401           
  Misses        711      711           
Flag Coverage Δ
integration 98.03% <100.00%> (ø)
unit 98.03% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <100.00%> (ø)
Files with missing lines Coverage Δ
services/archive.py 99.03% <ø> (-0.06%) ⬇️
services/processing/intermediate.py 100.00% <100.00%> (ø)
services/processing/merging.py 92.42% <100.00%> (ø)
services/processing/metrics.py 100.00% <100.00%> (ø)
tasks/upload_finisher.py 96.72% <100.00%> (ø)
tasks/upload_processor.py 98.56% <100.00%> (ø)

@codecov-notifications
Copy link

codecov-notifications bot commented Oct 29, 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     #829   +/-   ##
=======================================
  Coverage   98.03%   98.03%           
=======================================
  Files         442      441    -1     
  Lines       36112    36112           
=======================================
  Hits        35401    35401           
  Misses        711      711           
Flag Coverage Δ
integration 98.03% <100.00%> (ø)
unit 98.03% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 95.92% <100.00%> (ø)
OutsideTasks 98.02% <100.00%> (ø)
Files with missing lines Coverage Δ
services/archive.py 99.03% <ø> (-0.06%) ⬇️
services/processing/intermediate.py 100.00% <100.00%> (ø)
services/processing/merging.py 92.42% <100.00%> (ø)
services/processing/metrics.py 100.00% <100.00%> (ø)
tasks/upload_finisher.py 96.72% <100.00%> (ø)
tasks/upload_processor.py 98.56% <100.00%> (ø)

@Swatinem Swatinem added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit 19cbe90 Oct 29, 2024
26 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/intermediate-metrics branch October 29, 2024 15:56
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