Repository navigation
Description
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.pyexposes--platformio/--pioand a PlatformIO backend path.ci/compiler/*still generatesplatformio.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 platformioin 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, generatedplatformio.iniproject 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 runor 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
- fix: make fbuild own ESP RISC-V toolchain resolution without local path overrides #2700: specific ESP RISC-V toolchain resolution failure that made a local PlatformIO package path workaround necessary.
- ci: detect compiler-flag drift between fbuild and PlatformIO across all platforms #2410: related fbuild-vs-PlatformIO drift concern; this issue is broader and changes the policy to fbuild-only rather than comparison against PlatformIO.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(ci): add PlatformIO-internal-usage linter (warn-only first pass)…
perf(esp32): suppress Arduino-ESP32 boot banner via build-flag shim (#…
refactor(fl::string): drop StrN<N> template, make basic_string the pu…
refactor(fl::string): move non-template method bodies to string.cpp.hpp
feat(fl::string): reintroduce string_n<N> + small/large aliases
refactor(fl::string): drop StrN<N> template, make basic_string …
feat(log): centralised log_emit helper (Proposal B Option 3 of #2963) (…
chore(lint): clear 6 lint violations + accept ruff reformat (#3215)
fix(lpc): move vendored CMSIS under third_party/, exempt three checkers
feat(ci): promote PlatformIO-internal-usage lint from warn-only to er…