Repository navigation
docs(bloat): record that --build now refuses a stale ELF - #4397
Merged
Merged
Conversation
#4386 changed which ELF `bash bloat` analyses: `find_elf` takes the newest candidate (the documented pio/fbuild order is only a tie-break), and after `--build` an ELF that predates the build is refused rather than reported on. Both this file and the gate's own failure message send people to that command, so the gotcha list is where the change has to be written down. The old behaviour was silent, which is why it is worth a gotcha: two `--build --top 200` runs produced byte-identical report.json including total_flash, and the local total did not match CI's because the two numbers described different binaries. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe binary size analysis guide adds a lesson about ELF selection by modification time, build-age validation, and the previous silent ChangesBinary size analysis documentation
Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other ✨ Finishing Touches🧪 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation follow-up to #4386 (issue #4384).
#4386 changed which ELF
bash bloatanalyses.find_elfused to rank the two layouts that coexist under a single board directory by fixed priority and ignore mtime, so--buildcould compile one binary and report on the other. Now the newest candidate wins — the documented order is only a tie-break — and after--buildan ELF older than the build is refused outright:agents/docs/binary-size-analysis.mdis one of the two places that send people to this command (the gate's own failure message is the other), so the gotcha list is where the change has to be recorded. Added as gotcha 4; the two existing items below it are renumbered 5 and 6.Worth a gotcha rather than a silent fix because the old behaviour gave no signal: two
--build --top 200runs produced byte-identicalreport.jsonincludingtotal_flash, and the local total didn't match CI's because the two numbers described different binaries.Docs only — no code, no tests affected.
bash lintpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
Summary by CodeRabbit