Skip to content

docs(ci): correct stale comments on board_partitions and filesystem_size - #3989

Merged
zackees merged 1 commit into
masterfrom
docs/boards-partitions-comment
Aug 23, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/boards-partitions-comment

Conversation

@zackees

@zackees zackees commented Aug 22, 2026 •

Copy link
Copy Markdown
Member

Problem

ci/boards.py documented board_partitions as "Reserved for future use":

board_partitions: str | None = None  # Reserved for future use.

But 8 boards set it, and the ini emitter consumes it:

if self.board_partitions:
    lines.append(f"board_build.partitions = {self.board_partitions}")

The comment is simply wrong. It caused a concrete factual error during design work on filesystem-image support (FastLED/fbuild#1358), where the field was reported as unused based on reading the comment rather than the call sites.

Fix

Both fields now describe what they actually do:

  • board_partitions — ESP32 partition-table CSV name, emitted as board_build.partitions, set by boards whose app exceeds the default 1.25MB partition.
  • board_build_filesystem_size — the sibling field, which genuinely is unset by every board today. Rather than leave it bare, its comment now says so explicitly, since it becomes relevant with filesystem-image support.

Comment-only change; no behavior difference.

bash lint clean.

Closes #3985

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified the purpose and configuration output of filesystem size settings.
    • Documented how partition-table settings support boards requiring larger application partitions.
    • Removed outdated wording indicating partition settings were reserved for future use.

`board_partitions` was documented "Reserved for future use", but 8 boards
set it and the ini emitter consumes it (ci/boards.py). The comment is
wrong and actively misleading — it caused a factual error during design
work on filesystem-image support.

Replaces both comments with descriptions of what the fields do.
`board_build_filesystem_size` genuinely is unset by every board today, so
its comment now says that explicitly rather than leaving the reader to
guess.

Closes #3985

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f43210b7-3e63-4c43-a227-7239ee445aa8

📥 Commits

Reviewing files that changed from the base of the PR and between 3de8d4f and 445093d.

📒 Files selected for processing (1)
  • ci/boards.py

Included review availability: Your plan provides up to 8 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Updated comments for board_build_filesystem_size and board_partitions in ci/boards.py. No declarations, logic, control flow, or behavior changed.

Changes

Board field documentation

Layer / File(s) Summary
Document board configuration fields
ci/boards.py
Documented the filesystem-size field output and current usage. Replaced the stale board_partitions comment with its ESP32 partition-table output and usage.

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

Merge Risk: ⚪ Minimal · up to 44509

This PR only corrects documentation for existing board configuration fields and does not change behavior; no actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 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 the comment-only changes to board_partitions and filesystem_size.
Linked Issues check ✅ Passed The changes address issue #3985 by correcting both stale comments and documenting current emitter usage and unset filesystem size.
Out of Scope Changes check ✅ Passed The pull request contains only documentation changes directly related to the linked issue objectives.
Docstring Coverage ✅ Passed Docstring check was indeterminate for this PR — some files could not be analyzed in time. Not blocking.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/boards-partitions-comment

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 merged commit daea819 into master Aug 23, 2026
22 of 27 checks passed
@zackees
zackees deleted the docs/boards-partitions-comment branch August 23, 2026 00:23
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

docs(ci): board_partitions is documented 'Reserved for future use' but 8 boards set it

1 participant