Bug 2009828 - Avoid duplicate common alert summary requests#9243
Open
junngo wants to merge 1 commit intomozilla:masterfrom
Open
Bug 2009828 - Avoid duplicate common alert summary requests#9243junngo wants to merge 1 commit intomozilla:masterfrom
junngo wants to merge 1 commit intomozilla:masterfrom
Conversation
beatrice-acasandrei
approved these changes
Feb 23, 2026
Collaborator
|
A check is failing on CircleCI, perhaps a rebase will fix that. |
a492ff4 to
bf27e80
Compare
Contributor
Author
|
Thanks! I submitted the pr again after rebasing. CI failure was removed. |
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.
When multiple tests are added, the graphs page becomes very slow.
The alert summary API [1] takes around 2~4 seconds per request, and the same API was being called repeatedly based on the number of added tests.
For example, when four tests are added [0], the page load time increases to about 10 seconds.
This patch deduplicates the alert summary API calls and ensures the API is called only once per framework.
Related bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=2009828
[0]
https://treeherder.mozilla.org/perfherder/graphs?highlightAlerts=1&highlightChangelogData=0&highlightCommonAlerts=0&replicates=1&series=autoland,5257392,1,13&series=autoland,5257402,1,13&series=autoland,5257592,1,13&series=autoland,5257591,1,13&timerange=604800
[1]
https://treeherder.mozilla.org/api/performance/alertsummary/?framework=13&limit=30&timerange=604800