Repository navigation
Commit df7b7d7
committed
fix: exclude brotli from budget-raise isolation gate
Brotli is not monotonic in code size—removing code can increase brotli
(documented in minimal-gates.mjs, e.g. #1634 by up to 120 B). When
--write-budgets ratchets down after a shrink that increases brotli, the
new brotli ceiling (measured + 256) exceeds the previous ceiling,
causing findBudgetRaises to report a raise. Since the PR also touches
source files, checkBudgetRaises fails the isolation gate, blocking the
intended ratchet-down workflow.
Skip brotli keys in findBudgetRaises so only raw and gzip—the actual
growth gate—can trigger the isolation check.1 parent 6c52af2 commit df7b7d7
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
0 commit comments