Skip to content

fix(build): reprint cached Flash/RAM size report on no-op builds - #1287

Merged
zackees merged 1 commit into
mainfrom
fix/noop-build-size-report-1277
Aug 9, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/noop-build-size-report-1277

Conversation

@zackees

@zackees zackees commented Aug 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #1277: fbuild was omitting the Flash: and RAM: percentage lines during no-op incremental builds because the linker doesn't re-run and the size report was only logged in the link-result handler.

Changes

In each of the 7 platform orchestrators that use the fast-path fingerprint check, when a cache hit occurs and cached size info is available, call log_size_report() to reprint the cached Flash/RAM percentages before returning the BuildResult.

Files modified:

  • crates/fbuild-build-mcu/src/avr/orchestrator.rs — AVR
  • crates/fbuild-build-esp/src/esp32/orchestrator/build.rs — ESP32
  • crates/fbuild-build-arm/src/rp2040/orchestrator.rs — RP2040
  • crates/fbuild-build-arm/src/teensy/orchestrator.rs — Teensy
  • crates/fbuild-build-arm/src/sam/orchestrator.rs — SAM
  • crates/fbuild-build-arm/src/renesas/orchestrator.rs — Renesas
  • crates/fbuild-build-arm/src/nrf52/orchestrator.rs — NRF52

Before/After

Before (no-op build):

0.00 Memory: 31.50KB Flash, 2.00KB RAM
build succeeded in 0.3s (flash: 16580 bytes, ram: 1862 bytes)

After (no-op build):

0.00 Memory: 31.50KB Flash, 2.00KB RAM
No-op fingerprint matched; reusing existing AVR artifacts.
0.28 Flash: 16.19KB / 31.50KB (51.4%)
0.28 RAM:   1.82KB / 2.00KB (90.9%)
build succeeded in 0.3s (flash: 16580 bytes, ram: 1862 bytes)

Verification

  • cargo check --workspace --all-targets — passes
  • cargo clippy --workspace --all-targets -- -D warnings — no new warnings
  • cargo test -p fbuild-build-mcu -p fbuild-build-arm -p fbuild-build-esp --lib — all 63 tests pass
  • cargo test -p fbuild-build-engine --lib build_fingerprint::fast_path — all 9 tests pass
  • cargo test -p fbuild-build-engine --lib build_output — all 14 tests pass

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Cached builds now display size reports when size information is available.
    • Improved consistency of size reporting across supported microcontroller and ESP32 build targets, including fast-path cache reuse.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@zackees, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 372c3c87-c484-4ddd-a5ad-adfbf142e7df

📥 Commits

Reviewing files that changed from the base of the PR and between cd1743e and 1decfdd.

📒 Files selected for processing (9)
  • crates/fbuild-build-arm/src/nrf52/orchestrator.rs
  • crates/fbuild-build-arm/src/renesas/orchestrator.rs
  • crates/fbuild-build-arm/src/rp2040/orchestrator.rs
  • crates/fbuild-build-arm/src/sam/orchestrator.rs
  • crates/fbuild-build-arm/src/teensy/orchestrator.rs
  • crates/fbuild-build-engine/src/build_fingerprint/fast_path.rs
  • crates/fbuild-build-engine/src/build_fingerprint/mod.rs
  • crates/fbuild-build-esp/src/esp32/orchestrator/build.rs
  • crates/fbuild-build-mcu/src/avr/orchestrator.rs
📝 Walkthrough

Walkthrough

Fast-path cache hits now log cached size reports when available before returning reused artifacts for NRF52, Renesas, RP2040, SAM, Teensy, ESP32, and AVR builds.

Changes

Cached size reporting

Layer / File(s) Summary
Fast-path size-report logging
crates/fbuild-build-arm/src/*/orchestrator.rs, crates/fbuild-build-esp/src/esp32/orchestrator/build.rs, crates/fbuild-build-mcu/src/avr/orchestrator.rs
The NRF52, Renesas, RP2040, SAM, Teensy, ESP32, and AVR orchestrators conditionally log cached size information before returning reused build artifacts.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes reprinting cached Flash/RAM size reports for no-op builds.
Linked Issues check ✅ Passed The changes reprint cached size reports on fast-path cache hits across all seven platforms required by issue #1277.
Out of Scope Changes check ✅ Passed All changes support the linked issue by updating platform orchestrators to log cached size reports on no-op builds.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/noop-build-size-report-1277

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.

@zackees
zackees force-pushed the fix/noop-build-size-report-1277 branch 2 times, most recently from cbe2d31 to a6a8d6f Compare August 9, 2026 21:49
fix(build): reprint cached Flash/RAM size report on no-op builds (#1277)

When fbuild detects no changes (fast-path fingerprint match), the
linker is skipped and the Flash:/RAM: percentage lines are not
printed. This breaks tools that parse build output for size
metrics.

Now each platform orchestrator reprints the cached size report
via log_size_report() when reusing artifacts from a prior build,
so the output is consistent between full and no-op builds.

Affected orchestrators: AVR, ESP32, RP2040, Teensy, SAM, Renesas,
NRF52.

Co-Authored-By: Claude <[email protected]>
@
@zackees
zackees force-pushed the fix/noop-build-size-report-1277 branch from a6a8d6f to 1decfdd Compare August 9, 2026 21:55
@zackees
zackees merged commit 380559e into main Aug 9, 2026
91 of 92 checks passed
@zackees
zackees deleted the fix/noop-build-size-report-1277 branch August 9, 2026 22:26
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

No-op incremental build omits the Flash:/RAM: percentage lines, so size-parsing tooling sees no report

1 participant