Skip to content

ci: post a per-target memory usage report on PRs (#4920) - #4921

Merged
zackees merged 1 commit into
masterfrom
feat/memory-report-4920
Oct 26, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/memory-report-4920

Conversation

@zackees

@zackees zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member

Closes #4920.

This adds a sticky github-actions comment that compares the image flash and attributed RAM of examples/Blink per target, PR head vs. merge base. It is modeled on arduino-esp32's size-deltas bot.

  • ci/memory_report.py: collect builds the boards through ci/bloat.py. render writes the markdown table (💚 decrease / ⚠️ increase, bytes and %).
  • .github/workflows/memory_report.yml: one matrix job per board, then a single comment job that updates the comment in place via a marker.

Balancing CI time:

  • uno and attiny85 run on every same-repo PR that touches src/. Their toolchain is small and the builds take seconds.
  • The other targets are opt-in: esp32dev, esp32s3, esp32c3, esp32c6, teensy41, rp2040, nrf52840_dk, stm32f103c8. They join only with ci-full, ci-test:bloat, or ci-platform:<board>, because their toolchains are slow to download.

It reports only; the existing size gates are unchanged.

Evidence:

  • collect was run locally on uno and attiny85 (3,600 / 2,460 B flash).
  • The render unit tests pass.
  • This PR touches the workflow file, so it posts its own comment.

AVR (uno, attiny85) runs on every PR touching src/; ESP32, Teensy, RP2040,
nRF52 and STM32 join only with ci-full, ci-test:bloat or their
ci-platform label, because their toolchains are slow to download.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@github-actions

Copy link
Copy Markdown
Contributor

Memory usage (this PR vs. its merge base)

Change in examples/Blink per target: image flash and attributed RAM, in bytes and as a percentage of the merge base. Negative is smaller.

Target FLASH [bytes] FLASH [%] RAM [bytes] RAM [%]
attiny85 0 0.00 0 0.00
uno 0 0.00 0 0.00
Absolute sizes [bytes]
Target FLASH base FLASH PR RAM base RAM PR
attiny85 2,460 2,460 136 136
uno 3,600 3,600 134 134

@zackees
zackees merged commit b4c6ca8 into master Oct 26, 2026
235 of 243 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Oct 26, 2026
zackees added a commit that referenced this pull request Oct 26, 2026
test_push_and_pull_request_workflows_allow_manual_dispatch requires it;
#4921 merged without it and turned master's test/build red. A manual run
measures every target, HEAD against its parent, into the job summary.
zackees added a commit that referenced this pull request Oct 27, 2026
…dget (#4929)

* fix(lint): use fl/stl/int.h types in fastspi_esp32_idf.h (StdintTypeChecker)

* ci(cache): gate memory_report's setup-uv save; derive the PR cache budget

memory_report.yml (#4921) ran astral-sh/setup-uv@v6 with its default
save-cache, so every PR push saved a ~10 MB setup-uv entry and the
validate job's cache budget failed on every PR until the entry was
deleted by hand. Gate it to master push/schedule like every other
setup-uv step.

[cache.pr] drops the restated budget/max-per-pr: ci-lint now derives a
0 budget from mode "none" (forge-ci/ci.yml#495), and `cache budget`
fails on an ungated setup-uv save with the step and fix
(forge-ci/ci.yml#497). Pin bumped dfc7e7d -> 5ac6eed to pick both up.
@zackees
zackees deleted the feat/memory-report-4920 branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci GitHub Actions, fbuild, toolchains

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: post a per-target memory usage report on PRs (like arduino-esp32's size-deltas bot)

1 participant