-
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
fix: test results processor return type #954
Conversation
there's a sentry bug currently happening because the finisher is not handling one of the possible return values of the processor so i'm generally changing this to make it clearer: - a processor either succeeds or fails, and this is represented by the return value being a boolean - a success means that the processor successfully parsed at least one file in any of the raw uploads it was processing - else, fail - since the finisher is called in a chord with the processor it will receive a list of such booleans, if there is any success in this list of results then there is some valid test result data - otherwise, we can just fail the finisher and make an error comment and try to notify coverage since there may be some valid coverage data
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: tasks/test_results_finisher.py
📄 File: tasks/test_results_processor.py (Click to Expand)
Did you find this useful? React with a 👍 or 👎 |
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
📢 Thoughts on this report? Let us know! |
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #954 +/- ##
==========================================
- Coverage 97.99% 97.99% -0.01%
==========================================
Files 443 443
Lines 35721 35712 -9
==========================================
- Hits 35005 34996 -9
Misses 716 716
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
✅ All tests successful. No failed tests were found. 📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
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.
lgtm, though this should probably be split into 3 different PRs/deploys:
- make the finisher forward compatible with the new signature of the processor
- change the processor to emit the new result type
- remove all the compatibility code
@@ -149,7 +149,7 @@ def process_impl_within_lock( | |||
db_session.add(totals) | |||
db_session.flush() | |||
|
|||
if self.check_if_no_success(previous_result): | |||
if not self.check_if_any_success(previous_result): |
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.
if not self.check_if_any_success(previous_result): | |
if not any(previous_result): |
The fn is now so simple you don’t need it anymore.
there's a sentry bug currently happening because the finisher is not handling one of the possible return values of the processor
so i'm generally changing this to make it clearer: