Repository navigation
docs(ci/size): catalogue check_*_size.yml thresholds as real ceilings vs. band-aids - #3307
Conversation
… vs. band-aids (#3305) Follow-up to PR #3303's defensive lockdown. Walks every check_*_size.yml workflow's git history, classifies each currently frozen max_size / max_size_apa102 value as either a "real ceiling" or a "band-aid for a known regression", and ties every band-aid to a tracking issue. Audit findings: | Board | Frozen value(s) | Status | |----------|----------------------------|---------------------------------| | uno | 11000 / 9300 (-1 sentinel) | real ceiling | | bluepill | 55000 / 45000 | real ceiling | | esp32dev | 330000 / 330000 | real ceiling (RED on #3298) | | teensy30 | 60000 / 50000 | real ceiling | | teensy31 | 80000 / 65000 | real ceiling | | teensy32 | 80000 / 65000 | real ceiling | | teensy35 | 100000 / 85000 | real ceiling | | teensy36 | 120000 / 100000 | real ceiling | | teensy41 | 120000 / **165000** | apa102 band-aid (#2802; real=88000) | | teensylc | 35000 / 30000 | real ceiling | Only one current band-aid: teensy41 max_size_apa102=165000 (PR #2804, closes #2802). The real ceiling is 88000 once fl::ifstream / fl::posix_filebuf / fl::strerror / fl::AsyncLog* are kept out of the Apa102 link. esp32dev's 330000 is a real ceiling but CI is currently RED until #3298 (fbuild dropping ESP32 board-level build_flags / build_unflags) is fixed. The 700K bumps in PR #2790 and PR #3295 were band-aids; both already reverted by PR #3303. Changes: - New `docs/SIZE_THRESHOLD_HISTORY.md` with the per-board classification table, the historical bump catalogue for esp32dev and teensy41 (the two workflows with non-trivial bump histories), and instructions for how to change a frozen value (issue + YAML + lint script + this doc). - `ci/lint/check_size_thresholds.py` — extended the existing teensy41 band-aid comment pattern to every other entry, tagging each value as "real ceiling" or "band-aid (#NNNN)" so the lockdown lint script documents the audit it enforces. - `agents/docs/binary-size-analysis.md` — single-line cross-reference to the new doc so agents discover it from the bloat workflow. No frozen values changed; the lockdown lint still passes (size_thresholds_locked stage: green). Out of scope (per the issue): - Actually fixing #2802 or #3298. - Stretch goal `bash ci/audit-size-thresholds.py` automation. Closes #3305 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughAdds ChangesCI Size Threshold Audit Documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Follow-up to PR #3303's defensive size-threshold lockdown. Walks every
.github/workflows/check_*_size.ymlworkflow's full git history, classifies each currently frozenmax_size/max_size_apa102value as either a real ceiling or a band-aid, and ties every band-aid to an open tracking issue.Closes #3305.
Audit findings
max_sizemax_size_apa102Only one current band-aid: teensy41
max_size_apa102=165000(PR #2804, closes #2802). The real ceiling is 88000 oncefl::ifstream/fl::posix_filebuf/fl::strerror/fl::AsyncLog*are kept out of the Apa102 link.esp32dev's 330000 is a real ceiling but CI is currently RED until #3298 (fbuild dropping ESP32 board-level
build_flags/build_unflags) is fixed. The 700K bumps in PR #2790 and PR #3295 were band-aids; both already reverted by PR #3303.Changes
docs/SIZE_THRESHOLD_HISTORY.md— per-board classification table, historical bump catalogue for esp32dev and teensy41 (the two workflows with non-trivial bump histories), and instructions for how to change a frozen value (issue + YAML + lint script + this doc).ci/lint/check_size_thresholds.py— extended the existing teensy41 band-aid comment pattern to every other entry, tagging each value asreal ceilingorband-aid (#NNNN)so the lockdown lint script self-documents the audit it enforces.agents/docs/binary-size-analysis.md— single-line cross-reference to the new doc so agents discover it from the bloat workflow.No frozen values changed — comment-only updates to the lint script. The
size_thresholds_lockedstage ofbash lintstill passes.Out of scope (per the issue)
bash ci/audit-size-thresholds.pyautomation.Test plan
bash lint—size_thresholds_lockedstage green; all other stages green (pre-existingpython_pipelinefailure on master is unrelated).uv run python ci/lint/check_size_thresholds.py— direct invocation, passes..github/workflows/check_*_size.yml.Refs
Generated with Claude Code
Summary by CodeRabbit