Skip to content

docs(ci/size): catalogue check_*_size.yml thresholds as real ceilings vs. band-aids - #3307

Merged
zackees merged 1 commit into
masterfrom
feat/docs-size-threshold-history
Jun 20, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/docs-size-threshold-history

Conversation

@zackees

@zackees zackees commented Jun 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to PR #3303's defensive size-threshold lockdown. Walks every .github/workflows/check_*_size.yml workflow's full git history, classifies each currently frozen max_size / max_size_apa102 value as either a real ceiling or a band-aid, and ties every band-aid to an open tracking issue.

Closes #3305.

Audit findings

Board Frozen max_size Frozen max_size_apa102 Status
uno 11000 / -1 9300 / -1 real ceiling
bluepill 55000 45000 real ceiling
esp32dev 330000 330000 real ceiling (CI 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 — 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 as real ceiling or band-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_locked stage of bash lint still passes.

Out of scope (per the issue)

Test plan

  • bash lint — size_thresholds_locked stage green; all other stages green (pre-existing python_pipeline failure on master is unrelated).
  • uv run python ci/lint/check_size_thresholds.py — direct invocation, passes.
  • Doc table cross-checked against the live values in every .github/workflows/check_*_size.yml.

Refs

Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added comprehensive reference documentation for binary size threshold management and historical tracking.
    • Enhanced existing documentation with clarified threshold definitions and improved edit guidelines.
    • Expanded CI documentation with detailed classifications and audit information for threshold changes.

… 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]>
@coderabbitai

coderabbitai Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

Adds docs/SIZE_THRESHOLD_HISTORY.md, a new reference document classifying each CI size-check ceiling as a "real ceiling" or "band-aid," recording historical threshold bumps for esp32dev and teensy41, and providing procedures for changing values. Updates FROZEN_THRESHOLDS comments in ci/lint/check_size_thresholds.py to reference the new doc, and adds a cross-link in agents/docs/binary-size-analysis.md.

Changes

CI Size Threshold Audit Documentation

Layer / File(s) Summary
SIZE_THRESHOLD_HISTORY.md new reference document
docs/SIZE_THRESHOLD_HISTORY.md
Introduces the new 95-line document covering: scope and real-ceiling vs band-aid classification concept; per-board frozen threshold table with status, tracking issues, and notes; historical bump catalogs for esp32dev and teensy41; summary of other boards; band-aid follow-up instructions for issues #2802 and #3298; step-by-step change procedure; and a references list.
FROZEN_THRESHOLDS comment updates
ci/lint/check_size_thresholds.py
Expands and reorganizes module-level and inline comments inside FROZEN_THRESHOLDS to require updating docs/SIZE_THRESHOLD_HISTORY.md on changes, clarify the -1 "no check" sentinel, and refresh per-board commentary. No threshold numbers are changed.
Cross-reference in binary-size-analysis.md
agents/docs/binary-size-analysis.md
Adds two lines pointing readers to docs/SIZE_THRESHOLD_HISTORY.md for max_size/max_size_apa102 threshold definitions and history.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related PRs

  • FastLED/FastLED#2804: Directly modifies the check_teensy41_size.yml and esp32dev workflow ceiling values that are catalogued in the new SIZE_THRESHOLD_HISTORY.md.
  • FastLED/FastLED#2884: Modifies agents/docs/binary-size-analysis.md, the same file this PR adds a cross-reference pointer to.

Poem

🐇 Hoppity-hop through the size-check trail,
Where ceilings are real or a band-aid tale,
I've written it down with a table and date,
No more mystery bumps — let the audit be great!
Each threshold now tagged, each band-aid confessed,
The history is kept, and the codebase is blessed. 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: cataloguing size thresholds as real ceilings vs band-aids, which directly matches the PR's core objective of auditing and documenting historical threshold changes.
Linked Issues check ✅ Passed The PR fully satisfies issue #3305's acceptance criteria: a markdown document listing thresholds with classifications, tagged comments in check_size_thresholds.py, cross-references added, and linked band-aid issues referenced. Issue #2802 context is appropriately documented as a band-aid.
Out of Scope Changes check ✅ Passed All changes are directly scoped to issue #3305: documentation files, threshold classification comments, and cross-references. No fixes to underlying issues #3298 or #2802 were attempted, aligning with stated out-of-scope boundaries.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/docs-size-threshold-history

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees
zackees merged commit fae6321 into master Jun 20, 2026
10 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 20, 2026
@zackees
zackees deleted the feat/docs-size-threshold-history branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

1 participant