Repository navigation
Description
Problem
Multiple times in recent history, CI agents (and sometimes humans) have responded to a red .github/workflows/check_*_size.yml workflow by raising the threshold cap instead of fixing the underlying regression. PR #3268 → #3295 (esp32 330KB → 700KB) is the most recent example.
PR #3303 added a defensive lockdown (ci/lint/check_size_thresholds.py + CodeRabbit rule on check_*_size.yml) that prevents this going forward. But two things remain:
-
Audit the past. How many existing check_*_size.yml thresholds are "bumped to clear CI" values rather than real architectural ceilings? The teensy41 apa102 165000 (bumped from 88000 in broken build: check_teensy41_size — stale Apa102 budget ~60KB below current real size #2802) and the original Apa102 bumps in ci(esp32dev_size): bump max_size 330000 → 700000 to unblock master (Closes #2608) #2790 / esp32dev_binary_size: stale 330 KB budget vs 635 KB reality on platformio backend #2608 are known examples. There may be more.
-
Tighten the canonical ceilings. For each "bumped" value, file a follow-up issue (or roll into existing tracker issues like broken build: check_teensy41_size — stale Apa102 budget ~60KB below current real size #2802 / fbuild: ESP32 board build_flags / build_unflags aren't propagating from ci/boards.py #3298) explaining the real ceiling and what regression must be fixed to restore it.
-
Make the audit re-runnable. Add a
bash ci/audit-size-thresholds.py(or similar) that walksgit log --allfor each check_*_size.yml, extracts every historical max_size value, and produces a report: "this threshold was bumped on commit X for reason Y; current value is N; lint's frozen value is also N — is N the real ceiling or a band-aid?"
Acceptance criteria
- A markdown document (e.g.
docs/SIZE_THRESHOLD_HISTORY.mdor a section inagents/docs/binary-size-analysis.md) listing eachcheck_*_size.ymlthreshold with:- Current frozen value
- Whether it is a "real ceiling" or "band-aid for known issue #N"
- The work needed to restore the real ceiling, if any
- For each band-aid value: a linked open issue tracking the work to fix the regression and restore the real ceiling.
ci/lint/check_size_thresholds.py's frozen list updated with comments tagging band-aid entries (e.g.# 165000 — band-aid for #2802; real ceiling 88000).- The teensy41 apa102 165000 entry is already partially tagged; extend the pattern to every other band-aid.
Out of scope
- Actually fixing fbuild: ESP32 board build_flags / build_unflags aren't propagating from ci/boards.py #3298 (fbuild flag propagation) or broken build: check_teensy41_size — stale Apa102 budget ~60KB below current real size #2802 (teensy41 fl::ifstream over-link). Those are tracked separately. This issue is about the meta-discipline of distinguishing "real ceiling" from "band-aid" so the lockdown lint's frozen values are honest.
Refs
- Defensive lockdown: PR ci(lockdown): freeze max_size in every check_*_size.yml + add lint enforcement #3303 (this issue is the follow-up for the audit it can't do automatically).
- Most recent band-aid attempt: PR feat(ci): deprecate PioCompiler backend + Phase 4 cleanup (#3279) #3295 → reverted in PR ci(lockdown): freeze max_size in every check_*_size.yml + add lint enforcement #3303.
- Pre-existing band-aids: PR ci(esp32dev_size): bump max_size 330000 → 700000 to unblock master (Closes #2608) #2790 (esp32 Apa102 bump), PR esp32dev_binary_size: stale 330 KB budget vs 635 KB reality on platformio backend #2608 (esp32 max_size bump), broken build: check_teensy41_size — stale Apa102 budget ~60KB below current real size #2802 (teensy41 Apa102 bump).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
docs(ci/size): catalogue check_*_size.yml thresholds as real ceilings…