Repository navigation
Closed
Description
Phase 3 + Phase 4 of #3274 (bundled — the cleanup is tightly coupled to the deprecation).
Blocked on Phase 2: the sever PR for #3274 Phase 2 MUST land first. Removing the merge function before the merge call is gone breaks the build.
Fixed when
Deprecation (was Phase 3)
BOARD_BUILDS_USE_FBUILD = Trueatci/compiler/compilation_orchestrator.py:25is already the default — tighten souse_fbuild=FalseONLY takes effect when the user passes--backend platformioexplicitly. Reject programmatic flips without the explicit flag.- Update
--helptext andagents/docs/build-system.md/ CLAUDE.md to mark--backend platformioas a comparison-only tool: "Use only to compare fbuild output and find gaps." - Add a low-cost nightly CI job that runs
bash compile <small board set> --backend platformioand compares ELF sizes / symbol counts vs fbuild. Failures filed as gap-tracking issues, not merge blockers.
Cleanup (was Phase 4)
- Delete
get_root_platformio_build_flags(ci/compiler/build_config.py:33-89). - Delete the now-dead merge call in
ci/compiler/pio.py:155-161. - Delete
ci/tests/test_root_platformio_flag_merge.py. - Add a header comment to root
platformio.ini: "This file is consumed only bybash autoresearchandbash debug. CI compile, size-check, bloat, and tests readci/boards.py. Flags added here will NOT affect those builds." - Revert PR fix(ci/size): esp32dev overrides generic-esp debug flags (restore 330KB ceiling) #3268's manual debug-flag overrides in
[env:esp32dev](-UDEBUG / -DNDEBUG / -UFASTLED_DEBUG / -Os / -fno-exceptions / -fno-rtti / build_type = releaseetc.) — these exist only to defeat the merge, which no longer fires. - Close bash compile --backend platformio silently discards root platformio.ini build_flags #2664 with a note: the original fix is replaced by the documented separation in the header comment;
bash compileno longer reads root, by design.
Validation
bash test --cppgreen.bash compile esp32dev --examples Blinksize ≈ 330 KB (the original threshold fix(ci/size): esp32dev overrides generic-esp debug flags (restore 330KB ceiling) #3268 had to raise to 640 KB to defeat the merge).bash compile esp32c6 --examples Blinkbinary identical to today's.- Nightly comparison job runs at least once and produces a parity report.
Out of scope
- Eventual removal of
PioCompilerentirely (separate follow-up if--backend platformiois unused after one release cycle). - Retiring root
platformio.ini(much later — afterbash debug/autoresearchno longer need it).
Refs
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 19, 2026
Blocked on #3278. Do not start until #3278 has merged and the root-merge call in
ci/compiler/pio.py:155is provably gone.fix(ci/lint): make python_pipeline green on master (KBI002 + dead mon…
feat(ci): deprecate PioCompiler backend + Phase 4 cleanup (FastLED#3279…
feat(ci): promote PlatformIO-internal-usage lint from warn-only to er…