Skip to content

Deprecate PioCompiler as build fallback + Phase 4 cleanup (#3274 Phase 3) #3279

Closed

Description

@zackees

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)

  1. BOARD_BUILDS_USE_FBUILD = True at ci/compiler/compilation_orchestrator.py:25 is already the default — tighten so use_fbuild=False ONLY takes effect when the user passes --backend platformio explicitly. Reject programmatic flips without the explicit flag.
  2. Update --help text and agents/docs/build-system.md / CLAUDE.md to mark --backend platformio as a comparison-only tool: "Use only to compare fbuild output and find gaps."
  3. Add a low-cost nightly CI job that runs bash compile <small board set> --backend platformio and compares ELF sizes / symbol counts vs fbuild. Failures filed as gap-tracking issues, not merge blockers.

Cleanup (was Phase 4)

  1. Delete get_root_platformio_build_flags (ci/compiler/build_config.py:33-89).
  2. Delete the now-dead merge call in ci/compiler/pio.py:155-161.
  3. Delete ci/tests/test_root_platformio_flag_merge.py.
  4. Add a header comment to root platformio.ini: "This file is consumed only by bash autoresearch and bash debug. CI compile, size-check, bloat, and tests read ci/boards.py. Flags added here will NOT affect those builds."
  5. 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 = release etc.) — these exist only to defeat the merge, which no longer fires.
  6. 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 compile no longer reads root, by design.

Validation

Out of scope

  • Eventual removal of PioCompiler entirely (separate follow-up if --backend platformio is unused after one release cycle).
  • Retiring root platformio.ini (much later — after bash debug / autoresearch no longer need it).

Refs

Blocked on: #3274 Phase 2 (#TBD)
Parent: #3274

Activity

  1. zackees commented on Jun 19, 2026

    @zackees
    MemberAuthor

    Blocked on #3278. Do not start until #3278 has merged and the root-merge call in ci/compiler/pio.py:155 is provably gone.

  2. moved this from Triage to Done in FastLED Trackeron Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions