Skip to content

fix(ci): pin esp32c2 platform to IDF 5.4 instead of floating stable tag - #2289

Merged
zackees merged 1 commit into
masterfrom
worktree-fix-esp32c2-pin-platform
Apr 18, 2026
Merged

zackees merged 1 commit into
masterfrom
worktree-fix-esp32c2-pin-platform

Conversation

@zackees

@zackees zackees commented Apr 18, 2026 •

Copy link
Copy Markdown
Member

Summary

ESP32_C2_DEVKITM_1 in ci/boards.py was tracking the floating stable tag of pioarduino/platform-espressif32. Upstream bumped stable → 55.03.38, which requires PlatformIO Core >=6.1.19. FastLED CI runs Core 6.1.18, so every esp32c2 build has been failing with IncompatiblePlatform.

Error from CI

PIO: IncompatiblePlatform: Development platform 'espressif32' is not compatible
with PlatformIO Core v6.1.18 and depends on PlatformIO Core >=6.1.19.

(seen in run 24591055571 and every esp32c2 master run in the past ~day)

Fix

Pin esp32c2 to ESP32_IDF_5_4_PIOARDUINO (= 54.03.20) — the same constant used by esp32s3 and other C-series boards in ci/boards.py. Matches the existing pinning pattern; no more floating-tag drift.

-    platform="https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip",
+    platform=ESP32_IDF_5_4_PIOARDUINO,

Test plan

  • import ci.boards resolves ESP32_C2_DEVKITM_1.platform to the pinned URL
  • CI esp32c2 job on this PR passes (the real validation)

Why not bump PIO Core instead

Bumping to 6.1.19 across all of CI is a higher-blast-radius change that would affect every board simultaneously. Pinning esp32c2 to a known-good platform version is lower-risk and consistent with how every other board in boards.py is configured.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the build configuration for ESP32_C2_DEVKITM_1 to use a specific pinned version of the development platform instead of a floating release, ensuring more reliable and reproducible builds across environments.

The ESP32_C2_DEVKITM_1 board definition tracked the floating `stable`
tag of pioarduino/platform-espressif32. Upstream bumped `stable` to
55.03.38, which requires PlatformIO Core >=6.1.19; FastLED CI ships
PIO Core 6.1.18, so every esp32c2 build has been failing with:

    IncompatiblePlatform: Development platform 'espressif32' is not
    compatible with PlatformIO Core v6.1.18 and depends on PlatformIO
    Core >=6.1.19.

Every other ESP32 board in boards.py pins a specific release URL via
a named constant (ESP32_IDF_5_4_PIOARDUINO = 54.03.20, etc.). This
brings esp32c2 in line with that pattern — pinning to 54.03.20, which
is battle-tested by esp32s3 and several other boards using the same
constant.

No functional change for esp32c2 beyond moving off the moving target.

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

coderabbitai Bot commented Apr 18, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cc4a6c76-a7e1-4a47-a09d-319317a48b77

📥 Commits

Reviewing files that changed from the base of the PR and between b6c2501 and 617eb6f.

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

📝 Walkthrough

Walkthrough

Updated the ESP32_C2_DEVKITM_1 board configuration in the CI pipeline to use a pinned PlatformIO platform URL (version 54.03.20) instead of relying on the floating "stable" release tag. This ensures consistent platform artifacts across builds.

Changes

Cohort / File(s) Summary
Board Configuration
ci/boards.py
Updated ESP32_C2_DEVKITM_1 board's platform from floating stable release URL to pinned ESP32_IDF_5_4_PIOARDUINO version (54.03.20).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related issues

Poem

🐰 A pinned platform, steady and true,
No more floating with the "stable" brew,
ESP32 now knows just where to go,
Version locked in, consistent flow! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: pinning the ESP32_C2_DEVKITM_1 platform from a floating 'stable' tag to a specific IDF 5.4 version (54.03.20) to fix CI compatibility issues.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 worktree-fix-esp32c2-pin-platform

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 and usage tips.

@zackees
zackees merged commit 73cd62b into master Apr 18, 2026
68 of 79 checks passed
@zackees
zackees deleted the worktree-fix-esp32c2-pin-platform branch August 30, 2026 22:22
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