Skip to content

docs(arduino-api): record platform_packages override scope decision (#666)#877

Merged
zackees merged 1 commit into
mainfrom
fix/666-arduino-api-scope-doc
Jun 30, 2026
Merged

docs(arduino-api): record platform_packages override scope decision (#666)#877
zackees merged 1 commit into
mainfrom
fix/666-arduino-api-scope-doc

Conversation

@zackees

@zackees zackees commented Jun 30, 2026

Copy link
Copy Markdown
Member

Resolves #666 — the open audit task asking whether arduino_api.rs honors platform_packages.

Per the audit reviewer's call: wiring an override here doesn't pay off. ArduinoCore-API is a small, header-only library on a stable tag (v1.5.2) that almost never changes; the bisection workflows that motivated #664 (FastLED/FastLED#3325) target framework commits, not the API header layer; arduino_api is a one-shot fetcher with no PackageBase (unlike every other framework package in the audit), so override-wiring would require either a PackageBase refactor or threading Option<PackageOverride> through every consumer (AvrFramework, ArduinoMbedCore, SilabsCores); and PIO doesn't expose an arduino-api override key in any of the affected platforms — there's no canonical PIO name consumers can set.

This PR is a docstring addition only — records the decision and points future engineers at the right migration path (convert to PackageBase mirroring arduino_core_lpc8xx.rs) if a future workflow ever needs override capability.

Closes #666

🤖 Generated with Claude Code

…666)

#666 was the open audit task asking whether `arduino_api.rs` honors
`platform_packages`. Per the audit reviewer's call (matches the spirit of
#664/#681 — the original LPC8xx-driven bisection workflow targeted the
framework, not the API header layer): wiring an override here doesn't
pay off, for three reasons documented inline.

The three reasons (also in the module docstring):

1. Bisection workflows target frameworks, not the API header layer.
2. `arduino_api` is a one-shot fetcher with no `PackageBase`; threading
   an override would require either a `PackageBase` refactor (large
   change for negligible gain) or threading an `Option<PackageOverride>`
   through every consumer (`AvrFramework`, `ArduinoMbedCore`,
   `SilabsCores`).
3. PIO's atmelavr / arduino-mbed / silabs packages don't expose an
   `arduino-api` override key — there's no canonical PIO package name
   consumers can set in `platform_packages`.

If a future workflow ever needs to swap the ArduinoCore-API tag
per-build, the doc points future engineers at the right migration
path (convert to `PackageBase`).

Closes #666
@zackees
zackees merged commit 385c6d9 into main Jun 30, 2026
78 of 93 checks passed
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

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

Run ID: 43561095-5379-4ac8-83ab-6bb97e3cd27d

📥 Commits

Reviewing files that changed from the base of the PR and between a8b9386 and 7b83e6a.

📒 Files selected for processing (1)
  • crates/fbuild-packages/src/library/arduino_api.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/666-arduino-api-scope-doc

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.

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.

audit: arduino_api — does platform_packages override work? (parent #664)

1 participant