We need to set performance regression alerts for a number of SLOs. We want to detect performance regressions at the time a patch is merged.
SLOs:
- Time to First Byte
- Goal: <= 800ms on average hardware
- Budget: < Goal on average hardware or the highest time in the last two weeks
- First Contentful Paint:
- Goal:: <= 1.8 seconds on average hardware
- Budget: Goal on average hardware or the highest time in the last two weeks
- Largest Contentful Paint:
- Goal: <= 2.5 seconds on average hardware
- Budget: < Goal on average hardware or the highest time in the last two weeks
- Total Blocking Time:
- Goal: < 200ms on average mobile hardware
- Budget: < Goal on average hardware or the highest time in the last two weeks
- Cumulative Layout Shift:
- Goal: <= 0.1
- Budget: < Goal on average hardware or the highest time in the last two weeks
For more context and references please check this document https://docs.google.com/document/d/1sqRMjG8NqF7sLZoiNtcHI09oYAyeVSAx7LHSSCbqUL4/edit#heading=h.q4s6y6l2cibx
We need to:
- Define the fault tolerance.
- Capture current number and compare it against the average of past 2 weeks to 2 months.
- Set Gerrit CI steps to flag regressions
- Create Mail alerts for regressions that appears on live deployment as fail safe