console: region-label store budget counts the home's frame pipeline read
The account home's first view reads each app's frame, which carries the pipeline; main's region-label baseline predates the frame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+5
−2
internal/console/regionbudget_test.go+5 −2
diff --git a/internal/console/regionbudget_test.go b/internal/console/regionbudget_test.go| index 7c6ee7434..da63d591b 100644 |
| --- a/internal/console/regionbudget_test.go |
| +++ b/internal/console/regionbudget_test.go |
| @@ -141,14 +141,17 @@ func measureBudget(t *testing.T, tb *twoBoxes) map[string]map[string]int { |
| // regionBudgetBaseline is measureBudget at the branch base, before any |
| // region-label code: first at a64f5a41, re-measured at origin/main ed03ca7d |
| -// when that was merged (the Deployments tab became Releases). |
| +// when that was merged (the Deployments tab became Releases). The account |
| +// home's "Get apps" is 5, not 4, since console-perf-quick-wins: its first |
| +// (cold) view reads each app's frame (appframe.go), which carries the |
| +// pipeline the home did not read before; a warm view reads none of it. |
| var regionBudgetBaseline = map[string]map[string]int{ |
| "CLI /api/cli/apps/{sqid}/list": {}, |
| "CLI /api/cli/apps/{sqid}/shop/instances": {"Get apps": 3, "Get control": 3, "Get status": 2, "List apps": 1, "List control": 1, "List status": 1}, |
| "CLI /api/cli/apps/{sqid}/shop/instances/eu.shop.example.com": {"Get apps": 1, "Get control": 3, "List control": 1}, |
| "CLI /api/cli/apps/{sqid}/shop/regions": {"Get apps": 1, "Get control": 9, "Get status": 4, "List control": 3, "List status": 2}, |
| "CLI /api/cli/apps/{sqid}/shop/routes": {"Get status": 2, "List status": 1}, |
| - "GET /a/{sqid}/": {"Get apps": 4, "Get status": 2, "List apps": 2, "List status": 1}, |
| + "GET /a/{sqid}/": {"Get apps": 5, "Get status": 2, "List apps": 2, "List status": 1}, |
| "GET /a/{sqid}/apps/shop": {"Get accounts": 1, "Get apps": 4, "Get metrics": 48, "List alerts": 1, "List apps": 2, "List metrics": 1}, |
| "GET /a/{sqid}/apps/shop/releases": {"Get accounts": 1, "Get apps": 6, "List apps": 3}, |
| "GET /a/{sqid}/apps/shop/instances": {"Get accounts": 1, "Get apps": 4, "Get control": 3, "Get status": 2, "List apps": 1, "List control": 1, "List status": 1}, |