Repository navigation
fix(build): reprint cached Flash/RAM size report on no-op builds - #1287
Conversation
|
Warning Review limit reached
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 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughFast-path cache hits now log cached size reports when available before returning reused artifacts for NRF52, Renesas, RP2040, SAM, Teensy, ESP32, and AVR builds. ChangesCached size reporting
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
cbe2d31 to
a6a8d6f
Compare
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]> @
a6a8d6f to
1decfdd
Compare
Summary
Fixes #1277: fbuild was omitting the
Flash:andRAM: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— AVRcrates/fbuild-build-esp/src/esp32/orchestrator/build.rs— ESP32crates/fbuild-build-arm/src/rp2040/orchestrator.rs— RP2040crates/fbuild-build-arm/src/teensy/orchestrator.rs— Teensycrates/fbuild-build-arm/src/sam/orchestrator.rs— SAMcrates/fbuild-build-arm/src/renesas/orchestrator.rs— Renesascrates/fbuild-build-arm/src/nrf52/orchestrator.rs— NRF52Before/After
Before (no-op build):
After (no-op build):
Verification
cargo check --workspace --all-targets— passescargo clippy --workspace --all-targets -- -D warnings— no new warningscargo test -p fbuild-build-mcu -p fbuild-build-arm -p fbuild-build-esp --lib— all 63 tests passcargo test -p fbuild-build-engine --lib build_fingerprint::fast_path— all 9 tests passcargo test -p fbuild-build-engine --lib build_output— all 14 tests pass🤖 Generated with Claude Code
Summary by CodeRabbit