Repository navigation
Description
Phase 2 of #3274.
Blocked on Phase 1: PRs #3276 (PARLIO IRAM) and #3277 (monitor_filters + check_tool) MUST merge first. Without them, severing the root merge silently drops the ESP32 exception decoder and PARLIO ISR placement.
Reproduction (current state)
Root ./platformio.ini is silently merged into every firmware build via ci/compiler/pio.py:155 → ci/compiler/build_config.py:33-89 get_root_platformio_build_flags. The leak fires for every backend (fbuild, PIO, autoresearch, bash debug, bloat, regression tests) — it is NOT PioCompiler-specific. Symptom of record: PR #3268, where inherited debug flags from [env:generic-esp] doubled the esp32dev binary and forced manual -UDEBUG / -DNDEBUG / -Os band-aids inside [env:esp32dev].
Fixed when
PioCompiler.__init__gainsmerge_root_platformio: bool = False. DefaultFalse._init_platformio_buildatci/compiler/pio.py:155only callsget_root_platformio_build_flagswhen the parameter isTrue.- Call sites flipped:
ci-compile.py(interactivebash compile): explicitmerge_root_platformio=False.compile_board_examples(CI orchestrator):merge_root_platformio=False.ci/autoresearch/build_driver.py:merge_root_platformio=False(autoresearch is 100% boards.py-driven today; no behavior change).ci/debug_attached.py(bash debug):merge_root_platformio=Falseby default. Opt-in via a newbash debug --use-root-iniflag if a user needs it.
- Deprecation telemetry (optional safety net): add
FASTLED_FAIL_ON_ROOT_MERGE=1env var that, when set, makes a non-empty merge raise instead of merge. CI workflows set it. This is the canary that catches any flag we missed in Phase 1. - Validation:
bash compile esp32c6 --examples Blinkproduces a binary identical to today'sesp32c6build (since Phase 1 ported the only flags actually being merged in).bash compile esp32dev --examples Blinkno longer needs PR fix(ci/size): esp32dev overrides generic-esp debug flags (restore 330KB ceiling) #3268's-UDEBUG / -DNDEBUG / -Osoverrides — they can be removed in Phase 3.
Out of scope
- Removing the band-aids in
[env:esp32dev](Phase 3 cleanup). - Deleting
get_root_platformio_build_flags(Phase 3 cleanup). - Deprecating
PioCompiler(Phase 3). - Modifying root
platformio.ini(orthogonality rule).
Refs
Blocks: #3274 Phase 3 (#TBD)
Blocked on: PR #3276, PR #3277
Parent: #3274
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 19, 2026
Blocks #3279 (Phase 3+4 cleanup depends on this sever landing first).
fix(ci/pio): sever root platformio.ini merge from CI compile path (#3278
feat(autoresearch): synthesise platformio.ini from boards.py, drop ro…
ci(workflows): retire FASTLED_FAIL_ON_ROOT_MERGE tripwire post Phase 4
fix(ci/boards): port esp32dev size-strip flags to ESP32DEV definition
ci(esp32_size): raise cap to 700KB pending fbuild flag-port investiga…
feat(ci): deprecate PioCompiler backend + Phase 4 cleanup (#3279) (#3295
fix(ci/lint): make python_pipeline green on master (KBI002 + dead mon…