-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: upsert daily test rollup when we process a test instance #699
Conversation
daily test rollups are unique by repo, test, branch and date, the goal is to have a summary of all instances that ran for a test on a given day. We're basically frontloading part of the aggregation of the test instances
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #699 +/- ##
==========================================
- Coverage 98.09% 98.09% -0.01%
==========================================
Files 434 434
Lines 36643 36737 +94
==========================================
+ Hits 35945 36037 +92
- Misses 698 700 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #699 +/- ##
==========================================
- Coverage 98.09% 98.09% -0.01%
==========================================
Files 434 434
Lines 36643 36737 +94
==========================================
+ Hits 35945 36037 +92
- Misses 698 700 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #699 +/- ##
==========================================
- Coverage 98.09% 98.09% -0.01%
==========================================
Files 434 434
Lines 36643 36737 +94
==========================================
+ Hits 35945 36037 +92
- Misses 698 700 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #699 +/- ##
==========================================
- Coverage 98.13% 98.13% -0.01%
==========================================
Files 475 475
Lines 37998 38092 +94
==========================================
+ Hits 37291 37383 +92
- Misses 707 709 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
This change has been scanned for critical changes. Learn more |
This PR includes changes to |
@@ -143,12 +146,105 @@ def _bulk_write_tests_to_db( | |||
) | |||
) | |||
|
|||
def update_daily_total(): | |||
daily_totals[test_id]["last_duration_seconds"] = duration_seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: change these and (the ones below) to daily_totals.get(test_id, {}).get("last_duration_seconds") to prevent null errors.
Edit: I saw you define these below, so this isn't as applicable, but yet good practice if you want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, with caveat of considering the caveats of having foreign keys in the partitioned models. Preferably merge after hours w/ infra to anticipate migration hiccups
This PR includes changes to |
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
daily test rollups are unique by repo, test, branch and date, the goal is to have a summary of all instances that ran for a test on a given day. We're basically frontloading part of the aggregation of the test instances
depends on: codecov/shared#352