Skip to content

Conversation

@Jason2866
Copy link

@Jason2866 Jason2866 commented Aug 15, 2025

Summary by CodeRabbit

  • New Features
    • Added compiledbtc target to generate a compilation database including toolchain headers.
  • Bug Fixes
    • Fully qualified serial port URLs are now treated as literals, not patterns.
  • Documentation
    • Added release note for serial URL handling fix.
  • Changes
    • Rebranded to “pioarduino core”; disabled automatic upgrade checks and adjusted messages.
    • Dependency management updated with explicit package URLs; relaxed Starlette/Uvicorn version ranges.
    • Static analysis tools now resolve from the packages directory.
  • Chores
    • Ignore .DS_Store; CI updates (removed Slack alerts, Python 3.13, repository switch); updated docs submodule.

@coderabbitai
Copy link

coderabbitai bot commented Aug 15, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Updates CI workflows, branding/constants, and dependencies; introduces a new compiledbtc build target and refactors compile database handling; adjusts tool path resolution for checkers; modifies device serial URL handling; shifts core package install/update to package manager; disables upgrade checks/messages; updates docs, ignore rules, schemas, and trims tests.

Changes

Cohort / File(s) Summary
CI workflows
.github/workflows/core.yml, .github/workflows/projects.yml
Removed Slack failure notification; switched PlatformTest repo to pioarduino/platform-test; Python version bumped to 3.13.
Branding and version metadata
platformio/__init__.py
Updated title, description, URLs, author strings; VERSION set to (6, 1, 18); adjusted check_internet_hosts (no registry mirror).
Compile DB feature and targets
platformio/builder/main.py, platformio/builder/tools/piobuild.py, platformio/builder/tools/piolib.py, platformio/builder/tools/piomaxlen.py
Added compiledbtc alias/flow; centralized Compile DB processing (with optional toolchain includes); invoked during program and lib builds; tweaked piomaxlen exists() condition.
Device serial URL handling
platformio/device/finder.py
Treats fully-qualified serial URLs with “://” as literal ports, bypassing wildcard matching.
Check tool path resolution
platformio/check/tools/clangtidy.py, .../cppcheck.py, .../pvsstudio.py
Resolve tool executables via ProjectConfig packages_dir instead of internal tool dirs; added related imports and attribute.
Core dependencies and package management
platformio/dependencies.py, platformio/package/manager/core.py
Core deps now map names to tarball URLs; relaxed starlette/uvicorn caps; core package install/update/prune refactored to use PackageSpec and package manager; validation added.
Maintenance/upgrade flow
platformio/maintenance.py
Disabled upgrade checks; simplified after-upgrade messaging; removed welcome banner; adjusted prune text; removed print_welcome_banner.
Docs and history
HISTORY.rst, docs
Added release note about serial URL bug; updated docs submodule pointer.
Project helpers docs/alias
platformio/project/helpers.py
Added docstrings; introduced get_project_all_lib_dirs alias to get_project_watch_lib_dirs.
Manifest schema data
platformio/package/manifest/schema.py
SPDX license dataset version updated to v3.27.0.
Repository hygiene
.gitignore, tox.ini
Ignoring .DS_Store; removed docs-related tox environments.
Test suite trims/updates
tests/commands/pkg/test_install.py, tests/commands/pkg/test_list.py, tests/commands/pkg/test_uninstall.py, tests/commands/pkg/test_update.py, tests/commands/test_check.py, tests/commands/test_run.py, tests/package/test_manager.py, tests/package/test_manifest.py
Removed multiple global/project pkg and check tests; added/modified a targeted update test; refactored symlink test; removed schema tests; dropped a generic build e2e test.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant SConsEnv as Build Env
  participant Piobuild as piobuild
  participant Builder as builder.main

  User->>SConsEnv: pio run -t compiledb
  alt target compiledb
    Builder->>SConsEnv: load compilation_db tool
    SConsEnv->>Piobuild: ProcessCompileDbToolchainOption()
    Piobuild-->>SConsEnv: Configure Compile DB (no toolchain includes)
  end
Loading
sequenceDiagram
  participant User
  participant SConsEnv as Build Env
  participant Piobuild as piobuild

  User->>SConsEnv: pio run -t compiledbtc
  SConsEnv->>Piobuild: ProcessCompileDbIncludeToolchainOption()
  Piobuild-->>SConsEnv: Configure Compile DB (include toolchain headers/paths)
Loading
sequenceDiagram
  participant Core as Core Manager
  participant PM as Package Manager
  participant Spec as PackageSpec

  Core->>Core: get_core_package_dir(name)
  Core->>Core: validate name in core dependencies
  Core->>Spec: resolve package spec
  Core->>PM: install(spec)
  PM-->>Core: path
  Core->>PM: remove_unnecessary_core_packages()
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • fix piohome hang #17 — Also changes compile-db/toolchain handling in piobuild, overlapping with the introduction of compiledbtc and related refactor.

Poem

A bunny taps the build with gentle paws,
New “btc” hops in, obeying all the laws.
Packages line up, the manager takes lead,
Upgrades go quiet, less chatter, more speed.
Ports treat URLs as paths true and bright—
Carrot-shaped checks now find the tools just right. 🥕

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ee5bcf0 and 1812f64.

📒 Files selected for processing (28)
  • .github/workflows/core.yml (0 hunks)
  • .github/workflows/projects.yml (2 hunks)
  • .gitignore (1 hunks)
  • HISTORY.rst (1 hunks)
  • docs (1 hunks)
  • platformio/__init__.py (2 hunks)
  • platformio/builder/main.py (2 hunks)
  • platformio/builder/tools/piobuild.py (4 hunks)
  • platformio/builder/tools/piolib.py (1 hunks)
  • platformio/builder/tools/piomaxlen.py (1 hunks)
  • platformio/check/tools/clangtidy.py (2 hunks)
  • platformio/check/tools/cppcheck.py (2 hunks)
  • platformio/check/tools/pvsstudio.py (3 hunks)
  • platformio/dependencies.py (2 hunks)
  • platformio/device/finder.py (1 hunks)
  • platformio/maintenance.py (5 hunks)
  • platformio/package/manager/core.py (3 hunks)
  • platformio/package/manifest/schema.py (1 hunks)
  • platformio/project/helpers.py (7 hunks)
  • tests/commands/pkg/test_install.py (0 hunks)
  • tests/commands/pkg/test_list.py (0 hunks)
  • tests/commands/pkg/test_uninstall.py (0 hunks)
  • tests/commands/pkg/test_update.py (0 hunks)
  • tests/commands/test_check.py (0 hunks)
  • tests/commands/test_run.py (0 hunks)
  • tests/package/test_manager.py (0 hunks)
  • tests/package/test_manifest.py (0 hunks)
  • tox.ini (0 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pioarduino

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
🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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 Jason2866 merged commit 65af112 into pio_github Aug 15, 2025
1 check was pending
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.

2 participants