-
Notifications
You must be signed in to change notification settings - Fork 580
[Tracing] Emiting TestcaseRejectionEvent
during triage
#4827
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
Conversation
I will do a full review later, but just a heads up to avoid merging this one before actually testing it, since it touches critical part of the code (triage). |
@@ -262,10 +263,20 @@ def _check_and_update_similar_bug(testcase, issue_tracker): | |||
# might be caused by non-availability of latest builds. In that case, | |||
# don't file a new bug yet. | |||
if similar_testcase.open and not similar_testcase.one_time_crasher_flag: | |||
events.emit( |
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.
Now that I think of it, this event will be emited multiple times until the testcase itself is marked as closed, or something else that prevents it from entering this triage loop indefini.
It is not as simple as it looked from the start, we need to check the cleanup code to understand if that might be correct place to emit
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.
This seems to be the better place to emit this stuff
While writing #4827, I realized this pattern might be a better way of asserting the emits (which is pretty similar to what we are doing in `events_test.py` anyway). Co-authored-by: Carlo Lemos <[email protected]>
Superseded by #4846. |
This PR introduces the emits of `TestcaseRejectionEvent` in the desired steps of the cleanup task life cycle as discussed in the [comment section](#4827 (comment)) of #4827. Supersedes #4827. The other remaining cases where `TestcaseRejectionEvent` must be emitted (namely fuzz task, corpus pruning and grouper) will be addressed in separate PRs. b/394056013
This PR introduces the emits of
TestcaseRejectionEvent
in the desired steps of the triage task life cycle as stated in the "Testcase rejection" section of "Lightweight Clusterfuzz Tracing" doc.We are also adding assertions for verification of the emit.
The other remaining cases where
TestcaseRejectionEvent
must be emitted (namely fuzz task and corpus pruning) will be addressed in separate PRs.b/394056013