Skip to content

ci: sweep PlatformIO build usage and add linters that enforce fbuild-only board builds #2701

Closed

Description

@zackees

Context
FastLED board builds should now use fbuild exclusively. During ESP32-S3 AutoResearch validation, falling back to PlatformIO exposed a user-specific toolchain workaround (C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp) that should never be needed if fbuild owns toolchain resolution end-to-end.

A quick repo sweep still finds many PlatformIO-era build surfaces, including:

  • ci/ci-compile.py exposes --platformio / --pio and a PlatformIO backend path.
  • ci/compiler/* still generates platformio.ini, manages PlatformIO package/cache state, and stages board projects around PlatformIO concepts.
  • ci/util/* includes PlatformIO process/package/build helpers.
  • CI workflows still reference platformio.ini, platformio --version, and --backend platformio in size checks.
  • Docs and examples still contain valid user-facing PlatformIO documentation, which may need to remain allowed separately from internal build tooling.

This issue is about internal/CI/build-tooling use of PlatformIO, not necessarily removing user-facing docs for people who consume FastLED through PlatformIO.

Proposal
Do a focused sweep that removes or quarantines internal PlatformIO board-build paths, then add custom lint rules that prevent them from coming back.

The linter should distinguish between:

  • forbidden internal build usage: pio run, platformio --version, --platformio, --pio, --backend platformio, generated platformio.ini project staging used as a build path, and CI jobs invoking PlatformIO as a builder;
  • allowed user-facing references: README/install docs, example comments, LDF hint headers, issue templates, and compatibility notes where PlatformIO is discussed but not used as FastLED's internal board-build backend.

Acceptance criteria

  • Internal board-build commands use fbuild only; no supported CI/local validation path shells out to pio run or selects --backend platformio.
  • bash compile ..., bash autoresearch ..., size checks, QEMU/emulation entry points, and static-analysis board modes either use fbuild or explicitly fail with an actionable migration error.
  • Custom lint/check tooling blocks new forbidden PlatformIO build usage in CI and in local lint hooks.
  • The lint allowlist is explicit and small, covering only documentation, consumer-facing PlatformIO support text, and compatibility shims that are intentionally retained.
  • The sweep either deletes legacy PlatformIO helper code or moves it behind clearly marked deprecated/test-only boundaries that the linter enforces.
  • Related issue fix: make fbuild own ESP RISC-V toolchain resolution without local path overrides #2700 is covered or cross-linked so fbuild toolchain resolution replaces any need for PlatformIO package-path overrides.

Related issues

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