Skip to content

feat(core): resolve PlatformIO package payloads (#1491) - #1498

Merged
zackees merged 2 commits into
mainfrom
feat/platformio-core-resolver-1491
Sep 27, 2026
Merged

zackees merged 2 commits into
mainfrom
feat/platformio-core-resolver-1491

Conversation

@zackees

@zackees zackees commented Sep 26, 2026

Copy link
Copy Markdown
Member

Summary

Introduce a platform-agnostic PlatformIO package resolver for #1491, without gating payload resolution on the native Platform enum. This PR is the shared core/fetch foundation; it does not yet claim that native builds honor registry pins. The platform-family child issues remain open for sequential adapter/build integration.

  • Parse short and owner-qualified registry requests, exact versions and supported ranges, archive URLs, repository refs, and local package paths.
  • Resolve registry versions and host-specific files from published metadata, with SHA-256 and cache identities; parse platform manifest package requirements and explicit override precedence.
  • Add a fetch adapter for short-name discovery, metadata lookup, verified download, checksum-protected cache reuse/recovery.
  • Preserve documented archive #revision overrides and platform-aware file:// paths.

Validation

  • RED: the new core test initially failed because fbuild_core::platformio_package did not exist.
  • GREEN: soldr cargo test -p fbuild-core --test platformio_package_resolution (9 passed); soldr cargo test -p fbuild-packages-fetch platformio_registry::tests --lib (4 passed).
  • soldr cargo test -p fbuild-core -p fbuild-packages-fetch (core 310, fetch 157 tests passed before the final review fixes); soldr cargo clippy -p fbuild-core -p fbuild-packages-fetch --all-targets -- -D warnings; soldr cargo check --workspace --all-targets on the rebased branch.
  • Offline fixture tests cover a synthetic unknown platform, host selection, exact/range resolution, manifest dependencies, override precedence, archive/repository/local sources, checksum mismatch and cache recovery, ambiguous aliases, and search pagination.
  • Pre-push repo review completed; three findings were fixed and re-reviewed.

Follow-up

The next PRs will consume this API in each native family, one child issue at a time. #1491 stays open until valid requested aliases build with the requested stack across supported families.

Add platform-agnostic package specs, registry version and host selection, platform manifest requirements, source locks, and verified registry payload caching. Covers #1491.
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: FastLED/fbuild/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 8e5dcbbf-a317-4330-8bac-ccf46ee505b8

📥 Commits

Reviewing files that changed from the base of the PR and between eb9f932 and 2630e68.

⛔ Files ignored due to path filters (3)
  • Cargo.lock is excluded by !**/*.lock
  • ci/platform_boundary_ledger.tsv is excluded by !**/*.tsv
  • ci/platform_boundary_research.tsv is excluded by !**/*.tsv
📒 Files selected for processing (10)
  • ci/platform_boundary_research.py
  • ci/test_enforce_platform_boundary.py
  • ci/test_platform_boundary_research.py
  • crates/fbuild-core/Cargo.toml
  • crates/fbuild-core/src/lib.rs
  • crates/fbuild-core/src/platformio_package.rs
  • crates/fbuild-core/tests/platformio_package_resolution.rs
  • crates/fbuild-packages-fetch/src/lib.rs
  • crates/fbuild-packages-fetch/src/platformio_registry.rs
  • dylints/enforce_platform_boundary/src/baseline.txt

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 021e445 into main Sep 27, 2026
18 checks passed
@zackees
zackees deleted the feat/platformio-core-resolver-1491 branch September 27, 2026 00:15
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Sep 27, 2026
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