Skip to content

Bug-2039589 - Add caching to ttest/mwu views - #1093

Open
gopar wants to merge 2 commits into
mozilla:mainfrom
gopar:bug-2039589-cache-ttest-mwu-views
Open

Bug-2039589 - Add caching to ttest/mwu views#1093
gopar wants to merge 2 commits into
mozilla:mainfrom
gopar:bug-2039589-cache-ttest-mwu-views

Conversation

@gopar

@gopar gopar commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

@netlify

netlify Bot commented Sep 1, 2026

Copy link
Copy Markdown

Deploy Preview for mozilla-perfcompare ready!

Name Link
🔨 Latest commit 2fc347e
🔍 Latest deploy log https://app.netlify.com/projects/mozilla-perfcompare/deploys/6a971fd71e03e70008e9ac1d
😎 Deploy Preview https://deploy-preview-1093--mozilla-perfcompare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread src/logic/treeherder.ts
Comment on lines +362 to +365
const promise = fetchSubtestsCompareOverTimeResults(params).catch((error) => {
subtestCompareOverTimeResultsCache.delete(key);
throw error;
});

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both of these were poisoning the cache when the network request fails, so simple fix is to remove key from cache when it does so

@gopar
gopar requested a review from kala-moz September 1, 2026 16:56
@gopar gopar changed the title Bug-2039589 - Add caching to treeherder requests Bug-2039589 - Add caching to ttest/mwu views Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants