Implementing & using a detector class template#9216
Open
MohamedBilelBesbes wants to merge 5 commits intomozilla:masterfrom
Open
Implementing & using a detector class template#9216MohamedBilelBesbes wants to merge 5 commits intomozilla:masterfrom
MohamedBilelBesbes wants to merge 5 commits intomozilla:masterfrom
Conversation
gmierz
reviewed
Feb 11, 2026
|
|
||
| if signature.alert_notify_emails: | ||
| send_alert_emails(signature.alert_notify_emails.split(), alert, summary) | ||
| create_alerting(signature, student_t_mag_method, analyzed_series) |
Collaborator
There was a problem hiding this comment.
Instead of modifying this generate_new_alert_in_series method, can you make a new generate_new_test_alerts_in_series method and add your new code to there? I'd rather not touch the code that's currently being used in production for now.
It would be better to call it here like so (after the current call):
treeherder/treeherder/perf/tasks.py
Line 18 in e6e0200
try:
generate_new_test_alerts_in_series(...)
except Exception:
logger.warning(...)
Author
There was a problem hiding this comment.
Done. I also used PerformanceAlertSummaryTesting and PerformanceAlertTesting in the new commit instead of the currently used PerformanceAlertSummary and PerformanceAlert classes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The change implemented is making an abstract class
BaseDetectorwhich enables generic alert detection using different methods. Implementating an alert detection methods using a concrete class inheriting fromBaseDetector:calculate_alphafunction.min_back_window,max_back_window,fore_window,alert_threshold, etc.) without overriding them if they are signature-specific.The concrete class
StudentTMagDetectorinheriting fromBaseDetectoris the implementation of the current process for alert detection.