Skip to content

Bug 2078646 - Add resolution to PerformanceAlertSummaryBase - #10018

Open
davidmiculit wants to merge 3 commits into
mozilla:feature/perf-alert-status-refactorfrom
davidmiculit:feat/summary-resolution
Open

davidmiculit wants to merge 3 commits into
mozilla:feature/perf-alert-status-refactorfrom
davidmiculit:feat/summary-resolution

Conversation

@davidmiculit

@davidmiculit davidmiculit commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Bug 2078646 - Add resolution to PerformanceAlertSummaryBase

  • resolution field with choices: valid, invalid, infra, downstream, reassigned
  • new performance tag 'backed-out'
  • backfilling resolution from old status values using this mapping:
untriaged -> null
downstream -> downstream
reassigned -> reassigned
invalid -> invalid
improvement -> valid
infra -> infra
backed-out -> valid + backed-out tag
wontfix -> valid
fixed -> valid

@netlify

netlify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for treeherder ready!

Name Link
🔨 Latest commit 3f03a28
🔍 Latest deploy log https://app.netlify.com/projects/treeherder/deploys/6b0872b2aa2b183bd53af155
😎 Deploy Preview https://deploy-preview-10018--treeherder.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.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.45299% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.43%. Comparing base (452bdf9) to head (4b55df9).

Files with missing lines Patch % Lines
ui/perfherder/alerts/AlertsViewControls.jsx 57.14% 6 Missing ⚠️
...088_backfill_performancealertsummary_resolution.py 82.60% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10018      +/-   ##
==========================================
+ Coverage   83.39%   83.43%   +0.04%     
==========================================
  Files         679      681       +2     
  Lines       41824    41934     +110     
  Branches     4016     4027      +11     
==========================================
+ Hits        34878    34987     +109     
- Misses       6749     6752       +3     
+ Partials      197      195       -2     
Flag Coverage Δ
javascript 67.46% <77.77%> (?)
python 91.85% <95.55%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@davidmiculit
davidmiculit marked this pull request as ready for review November 12, 2026 15:46
@florinbilt
florinbilt self-requested a review November 20, 2026 15:48

@florinbilt florinbilt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. treeherder/perf/migrations/0088_backfill_performancealertsummary_resolution.py, la if not summary_ids: return

The backed-out tag is only created when BACKED_OUT summaries exist, so on a fresh DB (local, CI, tests) it never gets created. Could we move the get_or_create above the early return? Since 0088 hasn’t been merged yet, that seems simpler than adding a separate migration.

  1. ui/perfherder/perf-helpers/constants.js, la tooltipMessages

As I understand it, backed-out describes how a regression was resolved (it replaces the old BACKED_OUT status), while regression-backedout / improvement-backedout describe the nature of the alert. That difference isn’t obvious from the names, and the new tag has no entry in tooltipMessages (the tooltip shown when hovering a tag badge on the summary), so in the UI it looks like a duplicate of regression-backedout.

Could we add a description, and maybe choose a more explicit name (e.g. resolved-by-backout)? It might be worth bringing up at the next meeting.

  1. ui/perfherder/alerts/AlertsView.jsx, la getDefaultStatus

nit: ?status=0&resolution=valid shows an empty list, because untriaged summaries have no resolution. Could getDefaultStatus fall back to “all statuses” when a resolution is set, like updateResolution does?

@beatrice-acasandrei
beatrice-acasandrei changed the base branch from master to feature/perf-alert-status-refactor November 23, 2026 12:58
@Archaeopteryx Archaeopteryx added the perfherder perfherder related PR for the Perf team to work on label Nov 24, 2026
@davidmiculit
davidmiculit force-pushed the feat/summary-resolution branch from 4b55df9 to 8c7724c Compare November 26, 2026 17:31
@davidmiculit
davidmiculit requested a review from a team as a code owner November 26, 2026 17:31
@davidmiculit
davidmiculit force-pushed the feat/summary-resolution branch from 02d6307 to 3f03a28 Compare November 26, 2026 17:56

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perfherder perfherder related PR for the Perf team to work on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants