-
Notifications
You must be signed in to change notification settings - Fork 5.5k
perf(quality-gates): Add tbt metrics to global startup and flow timer gates
#41963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
49d150a
b1eda1e
88d36eb
cd85d26
b1f6aee
9db010e
f1965d7
c65fb31
36d90a6
707f906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,6 +89,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.TIER_1, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75=485ms, p95=559ms (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 575, fail: 625 }, | ||
| p95: { warn: 675, fail: 725 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| const ONBOARDING_NEW_WALLET = { | ||
|
|
@@ -128,6 +134,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.TIER_1, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75=326ms, p95=377ms (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 400, fail: 425 }, | ||
| p95: { warn: 450, fail: 500 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| const IMPORT_SRP_HOME = { | ||
|
|
@@ -152,6 +164,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.TIER_2, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75=3354ms, p95=3552ms (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 4000, fail: 4350 }, | ||
| p95: { warn: 4250, fail: 4625 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| const SWAP = { | ||
|
|
@@ -171,6 +189,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.TIER_2, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75=438ms, p95=483ms (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 525, fail: 575 }, | ||
| p95: { warn: 575, fail: 625 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| const SEND_TRANSACTIONS = { | ||
|
|
@@ -190,6 +214,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.DEFAULT, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75=151ms, p95=151ms (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 200, fail: 225 }, | ||
| p95: { warn: 200, fail: 225 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| const ASSET_DETAILS = { | ||
|
|
@@ -199,6 +229,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.DEFAULT, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75=95ms, p95=127ms (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 125, fail: 150 }, | ||
| p95: { warn: 150, fail: 175 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| const SOLANA_ASSET_DETAILS = { | ||
|
|
@@ -208,6 +244,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.DEFAULT, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75≈1ms, p95≈1ms — floor applied (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 50, fail: 75 }, | ||
| p95: { warn: 75, fail: 100 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| const STANDARD_HOME = { | ||
|
|
@@ -227,6 +269,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.TIER_1, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline from CI: p75≈850ms, p95≈1021ms (2026-04-22, chrome-browserify). | ||
| tbt: { | ||
| p75: { warn: 1020, fail: 1100 }, | ||
| p95: { warn: 1225, fail: 1325 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
|
cursor[bot] marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. STANDARD_HOME TBT thresholds ~2.7x higher than documentedMedium Severity The Reviewed by Cursor Bugbot for commit 707f906. Configure here. |
||
| } satisfies ThresholdConfig; | ||
|
|
||
| const POWER_USER_HOME = { | ||
|
|
@@ -246,6 +294,12 @@ | |
| ciMultiplier: CI_MULTIPLIER.STARTUP_POWER_USER, | ||
| }, | ||
| ...CLS_THRESHOLDS, | ||
| // Baseline: p75=1189ms, p95=1367ms (2026-04-07 – 2026-04-20, ci.branch:main) | ||
| tbt: { | ||
| p75: { warn: 1425, fail: 1550 }, | ||
| p95: { warn: 1650, fail: 1775 }, | ||
| ciMultiplier: DEFAULT_CI_MULTIPLIER, | ||
| }, | ||
| } satisfies ThresholdConfig; | ||
|
|
||
| // Threshold keys must match timer IDs emitted by the benchmark flows (snake_case). | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.