Repository navigation
Closed
Labels
area: ciGitHub Actions, fbuild, toolchains
Description
Goal
Post a sticky memory usage comment on each PR, comparing the PR against its merge base on every target. It should look like the bot espressif/arduino-esp32 runs (example: the github-actions comment on espressif/arduino-esp32#13010).
How Espressif does it
- Building:
.github/workflows/push.yml→.github/scripts/sketch_utils.shbuilds the test sketches with arduino-cli. It writes acli_compile_<chunk>.jsonsizes file (flash/RAM per target/sketch) and uploads it as thepr_cli_compile_*artifacts. Master's sizes live on theirgh-pagesbranch. - Reporting:
.github/workflows/publishsizes.ymlruns onworkflow_runafter "Compilation Tests". It downloads the PR artifacts next to the master JSON and callsP-R-O-C-H-Y/report-size-deltas@sizes_v2, a fork ofarduino/report-size-deltas. That action renders the DEC/INC table with 💚/⚠️ markers and a collapsible detailed-deltas section. - The
workflow_runsplit exists so that fork PRs, which get a read-only token, can still receive a comment.
Strategy for FastLED
Most of this already exists, so we don't need the arduino-cli JSON format or the third-party action:
ci/bloat.py <board> --build --no-summaryalready writes.build/symbols/<board>/report.json, withimage_flash(allocated ELF image, fromfbuild symbols) andtotal_ram. This works on every fbuild board; it was verified onuno.- New
ci/memory_report.py:collectmeasures the given boards into a JSON file, andrenderturns a base/head pair into the markdown table. It is unit-tested inci/tests/. - New
.github/workflows/memory_report.yml:- Runs on same-repo PRs that touch
src/**, plusworkflow_dispatch. - One matrix job per board builds
examples/Blinkat the merge base, then at the PR head. - A final job renders the table and creates or updates a single marker-tagged comment through
gh api.
- Runs on same-repo PRs that touch
- FastLED already hard-blocks fork PRs on board jobs (ci: prevent fork PRs from auto-triggering the full CI matrix (cost control — surfaced by #2752) #2757), so the plain
pull_requesttoken withpull-requests: writeis enough. Noworkflow_runsplit is needed. - Report only, never gate. The hard gates stay where they are:
check_uno_size.ymlandbloat_regression_esp32s3.yml.
Targets (besides AVR Uno)
These cover every major toolchain/architecture family FastLED ships:
| Board | Why |
|---|---|
uno |
AVR baseline, already size-gated |
attiny85 |
smallest AVR; every byte matters |
esp32dev |
Xtensa LX6, the most common ESP32 |
esp32s3 |
Xtensa LX7, primary dev board, has the bloat gate |
esp32c3 |
RISC-V ESP32 |
esp32c6 |
RISC-V ESP32, newer IDF path |
teensy41 |
Cortex-M7 |
rp2040 |
Cortex-M0+ (Pico) |
nrf52840_dk |
Cortex-M4F nRF52 |
stm32f103c8 |
Cortex-M3 STM32 (Blue Pill) |
Later candidates: esp8266, samd21, esp32p4, teensylc, wasm (.wasm size).
Metadata
Metadata
Assignees
Labels
area: ciGitHub Actions, fbuild, toolchains
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 26, 2026
Decision on CI time (implemented in #4921): only AVR (
uno,attiny85) runs by default, on every same-repo PR that touchessrc/. Those toolchains download fast and the builds take seconds. The ESP32/Teensy/RP2040/nRF52/STM32 targets in the table above are opt-in viaci-full,ci-test:bloat, orci-platform:<board>, because their toolchain downloads dominate the job time.ci: post a per-target memory usage report on PRs (#4920) (#4921)
ci(memory_report): add workflow_dispatch (#4920) (#4922)