Skip to content

docs(bloat): record that --build now refuses a stale ELF - #4397

Merged
zackees merged 1 commit into
masterfrom
docs/4384-bloat-freshness-gotcha
Sep 12, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/4384-bloat-freshness-gotcha

Conversation

@zackees

@zackees zackees commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Documentation follow-up to #4386 (issue #4384).

#4386 changed which ELF bash bloat analyses. find_elf used to rank the two layouts that coexist under a single board directory by fixed priority and ignore mtime, so --build could compile one binary and report on the other. Now the newest candidate wins — the documented order is only a tie-break — and after --build an ELF older than the build is refused outright:

Bloat: --build ran, but the ELF selected for analysis predates it by N h

agents/docs/binary-size-analysis.md is 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 200 runs produced byte-identical report.json including total_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 lint passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9

Summary by CodeRabbit

  • Documentation
    • Updated binary size analysis guidance to explain ELF file selection based on modification time and layout order.
    • Documented validation when analyzing ELF files older than the build, including related error behavior.
    • Renumbered subsequent guidance items for clarity.

#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
@zackees
zackees merged commit 1b6deb7 into master Sep 12, 2026
@coderabbitai

coderabbitai Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 4eda87ac-6177-4421-9352-209070c25cae

📥 Commits

Reviewing files that changed from the base of the PR and between df36a29 and 49dee7e.

📒 Files selected for processing (1)
  • agents/docs/binary-size-analysis.md

📝 Walkthrough

Walkthrough

The binary size analysis guide adds a lesson about ELF selection by modification time, build-age validation, and the previous silent report.json failure mode. Existing lessons are renumbered.

Changes

Binary size analysis documentation

Layer / File(s) Summary
Document ELF analysis lessons
agents/docs/binary-size-analysis.md
The guide documents newest-by-mtime ELF selection, rejection of ELFs older than the build, and the previous byte-identical report.json failure mode. Existing lessons are renumbered.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/4384-bloat-freshness-gotcha

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.

@fastled-project-sync fastled-project-sync Bot moved this from Done to Triage in FastLED Tracker Sep 12, 2026
@zackees
zackees deleted the docs/4384-bloat-freshness-gotcha 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

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant