Skip to content

Remove all dependencies to Platformio registry #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
May 2, 2025
Merged

Conversation

Jason2866
Copy link

@Jason2866 Jason2866 commented May 2, 2025

Description:

The PR removes the dependencies from Platformio registry. All tools and toolchains are installed now from pioarduino or espressif github repos.

Checklist:

  • The pull request is done against the latest develop branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR, more changes are allowed when changing boards.json
  • I accept the CLA

Summary by CodeRabbit

  • New Features

    • Added support for the ESP32-C2 DevKitM-1 board in the Arduino WiFi scan example, including a dedicated environment configuration.
  • Chores

    • Updated toolchain and utility package sources to use direct download links from a new owner, ensuring more precise version control.
    • Improved internal tool installation logic for better package management during builds.

Copy link

coderabbitai bot commented May 2, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

This update introduces a new environment configuration for the ESP32-C2 board in the Arduino WiFi scan example's PlatformIO project. It also modifies the Espressif32 platform's package management by updating package ownership and version fields in platform.json to point to specific GitHub releases under the pioarduino organization. Additionally, the internal logic for enabling and installing tool packages in platform.py is refactored to use the install_tool() helper function, replacing direct dictionary manipulation and ensuring immediate installation of required tools.

Changes

File(s) Change Summary
examples/arduino-wifiscan/platformio.ini Added new [env:esp32-c2] environment targeting esp32-c2-devkitm-1 with custom upload protocol, monitor speed, static analysis tool, and a list of components to remove.
platform.json Updated "owner" fields for all toolchain, uploader, debugger, and tool packages from "platformio"/"tasmota" to "pioarduino". Changed "version" fields to direct GitHub release URLs under the pioarduino organization for all affected packages. No structural changes.
platform.py Refactored tool/package enabling logic to use the install_tool() helper function instead of directly setting the "optional" flag in self.packages. Updated logic for toolchain, ULP, debug, check, and filesystem tools installation. Changed tool-mklittlefs version for "downloadfs" target to a direct release URL. Removed obsolete else branch for tool-dfuutil-arduino and replaced with direct installation call. No changes to public API signatures.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant PlatformIO
    participant Espressif32Platform
    participant install_tool()
    participant GitHub

    User->>PlatformIO: Build or configure project
    PlatformIO->>Espressif32Platform: configure_default_packages()
    Espressif32Platform->>install_tool(): For each required tool/package
    install_tool()->>GitHub: Download package from release URL
    GitHub-->>install_tool(): Return package files
    install_tool()->>Espressif32Platform: Complete installation
    Espressif32Platform->>PlatformIO: Continue configuration
Loading

Possibly related PRs

Poem

In the warren of code, a new path appears,
ESP32-C2 hops in, greeted with cheers.
Tools now fetch from GitHub’s field,
With install_tool() magic, no secrets concealed.
Packages updated, the platform anew—
A rabbit’s delight for the build to pursue!
🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Jason2866
Copy link
Author

@coderabbitai full review

Copy link

coderabbitai bot commented May 2, 2025

✅ Actions performed

Full review triggered.

@Jason2866 Jason2866 merged commit f4def7f into develop May 2, 2025
70 checks passed
@Jason2866 Jason2866 deleted the devel_test branch May 2, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant