Repository navigation
Description
Symptom
The esp32c2 workflow has been red on master since commit 7674a91 (#2292, 2026-04-18) — the PR that switched ESP32 QEMU merged-bin builds to fbuild.
Failure surfaces in the CPP Check step (ci/ci-cppcheck.py):
Checking esp32c2 > cppcheck (board: esp32-c2-devkitm-1; platform: ...)
--------------------------------------------------------------------------------
UserSideException: Processing esp32c2 (...)
Missing partition table file `/home/runner/work/FastLED/FastLED/trusted/.build/pio/esp32c2/huge_app.csv`
========================== [FAILED] Took 9.44 seconds ==========================
Confirmed failures on master:
| Commit | PR | Run |
|---|---|---|
7852db6f7 |
#2299 drop mirror | https://github.com/FastLED/FastLED/actions/runs/24598125268 |
de1156659 |
#2291 mirror after pio metadata | https://github.com/FastLED/FastLED/actions/runs/24596888976 |
7674a9100 |
#2292 fbuild for QEMU | https://github.com/FastLED/FastLED/actions/runs/24596343914 |
PR #2300 also fails on the same step for the same reason, blocking its merge.
Root cause
The esp32c2 build now runs through fbuild, but ci/ci-cppcheck.py shells out to pio check, which requires a fully-populated PIO project tree. fbuild doesn't populate .build/pio/esp32c2/<Example>/ with the resolved huge_app.csv, so PIO's ESP-IDF config step fails before cppcheck can even start.
Two PRs (#2285, #2291) tried to patch around this with a fbuild→.pio/build mirror; #2299 removed that mirror because it was targeting the wrong dir for cppcheck anyway (.pio/build/<env>/, not .build/pio/<env>/).
Blocked by
- fbuild: add cppcheck / static-analysis support (currently PIO-only) #2301 — fbuild has no cppcheck/static-analysis support.
ci-cppcheck.pyneeds a fbuild-aware code path before this regression can be properly fixed. - fbuild: integrate with clang-tool-chain-bin for IWYU and C++ static analysis #2303 — umbrella for fbuild + clang-tool-chain integration (IWYU + cppcheck + other linting tools)
Options to unblock short-term (while #2301 lands)
- Skip
pio checkentirely when the active backend is fbuild (accept a cppcheck coverage gap on esp32c2/s3/c3/c6 temporarily). - Force PlatformIO backend for esp32c2 compiles in CI until fbuild: add cppcheck / static-analysis support (currently PIO-only) #2301 lands — mirrors what Move esp32s3/esp32c3/esp32c6 compilation back to PlatformIO (drop fbuild default) #2222 did to roll back esp32s3/c3/c6 to PIO.
- Cherry-pick just the partition-CSV copy from the old mirror helper into
.build/pio/<board>/sopio checkcan resolve it.
Acceptance
- esp32c2 workflow green on master
- CPP Check step either runs successfully on fbuild-compiled output, or is cleanly skipped with a visible reason
Activity
fix(ci): skip pio check on fbuild-compiled boards to unblock esp32c2 CI
feat(ci): route cppcheck through fbuild compile_commands.json
fix(ci): skip pio check on fbuild-compiled boards to unblock esp32c2 …
feat(ci): route static analysis through clang-tool-chain-tidy + fbuil…
feat(ci): route static analysis through clang-tool-chain-tidy + fbuil…