Repository navigation
Description
Part of #3715. This is the verification arm of the meta — it should land early (in ratchet form) and finish last (fully green once the code sub-issues merge).
Problem
All ESP CI legs today build Arduino-on-IDF (espressif32 / pioarduino). They prove the Arduino path across IDF versions but never compile FastLED without the Arduino core, so an accidental Arduino dependency in src/platforms/esp/** is invisible until an ESP-IDF user reports it (cf. #1826, #1837, #1839).
Current matrix:
| Leg | Platform | IDF | Framework |
|---|---|---|---|
esp32dev_idf33 |
[email protected] |
3.3 | arduino (core 1.0.x) |
esp32dev_idf44 |
ESP32_IDF_4_4_LATEST |
4.4 | arduino |
esp32dev + C3/C6/S3/P4/… |
pioarduino 5.x pins | 5.1–5.5 | arduino |
esp32dev_idf6 |
pioarduino prep_IDF6 |
6.0.1+ | arduino |
Plan
Stage 1 — ratchet (cheap, immediate): add -DFL_NO_ARDUINO build-flag variants of esp32dev_idf44 and one 5.x board in ci/boards.py. This forces the native branches through the existing dispatch macros while still building under PlatformIO+Arduino. Catches regressions in the migrated files without new toolchain plumbing. (Note: FL_NO_ARDUINO currently only gates fastspi_esp32.h; extend it — or the successor capability macros from the dispatch-convention sub-issue — to cover all forked sites.)
Stage 2 — true bare-IDF legs: compile FastLED as an ESP-IDF component with framework = espidf (no Arduino core installed) for:
- IDF 4.4 (
esp32dev) — floor for RMT4 + legacy paths - IDF 5.x current pin (
esp32dev+ one RISC-V target, e.g. C6, to cover PARLIO/USB-JTAG native code) - IDF 6.x (
esp32dev) — tracks the prep_IDF6 → release transition
Implementation options, in preference order:
- PlatformIO
framework = espidfenv inci/boards.py(stays inside the existingbuild_template.ymlmachinery). Known caveat fromESP32_C2_DEVKITM_1(ci/boards.py:890-897): the espidf component build does not auto-discover example.cppfiles — the bare-IDF leg should build a dedicated minimalmain/(Blink-equivalent callingFastLED.show()from anapp_main), not the full examples matrix. - Raw
idf.pybuild of a minimal harness project consuming the repo via the existing rootidf_component.yml(also exercises the idf component registry #2121 component-registry packaging).
IDF 3.3 bare: best-effort only. The bare 3.3 toolchain is EOL and painful; the esp32dev_idf33 Arduino leg continues to guard the 3.x macro paths (esp_version.h defaulting, isr_esp32_idf3.hpp, RMT4-era includes). Document this as the accepted coverage gap.
Trigger policy: path-filter to src/platforms/esp/** + src/fl/** like the existing build_esp32dev_idf*.yml workflows; pull_request trigger at least for the 5.x bare leg so regressions block merge rather than being discovered on master.
Acceptance criteria
- Stage 1 ratchet legs exist and are green.
- Bare-IDF (
framework=espidf, no Arduino) compile passes for IDF 4.4, 5.x, 6.x on classic ESP32; 5.x additionally on one RISC-V target. - At least the 5.x bare leg runs on
pull_requestforsrc/platforms/esp/**changes. - A deliberately introduced
#include <Arduino.h>undersrc/platforms/esp/fails the bare leg (negative test performed once, not committed).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(ci): add ESP-IDF component-build smoke test (esp32dev_idf5_compo…