You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fbuild compile-many silently disabled in CI due to wrong probe form (fbuild help SUB exits 2) #2660
fbuild ci and compile-many are unavailable in the installed fbuild; falling back to the legacy serial loop.
…and then builds 100+ examples one-by-one. See e.g. uno run 78718228931:
2026-05-31T10:21:45Z Starting compilation for 1 boards with 108 examples
2026-05-31T10:21:45Z fbuild ci and compile-many are unavailable in the installed fbuild;
falling back to the legacy serial loop.
The installed fbuild on that runner (2.2.6+) actually does support both subcommands.
fbuild help ci parses help as the subcommand name and ci as a positional sketch path arg, then clap rejects it for missing the required --board <BOARD>:
$ fbuild help ci
error: the following required arguments were not provided:
--board <BOARD>
Usage: fbuild.exe ci --board <BOARD> <SKETCHES>...
$ echo $?
2
…so _fbuild_supports_subcommand always returns False, fbuild_supports_ci() / fbuild_supports_compile_many() always return False, and PioCompiler._build_with_fbuild (ci/compiler/pio.py:431-444) always falls through to _build_fbuild_sync — the legacy per-sketch serial loop.
fbuild <SUB> --help is intercepted by clap before arg validation and exits 0 regardless of whether other required args are present.
Impact
Every CI build on master serially loops over examples instead of using compile-many's stage-2 worker pool. On the GitHub Actions 2-core runners that's roughly 2× build wall time (FastLED defaults sketch_jobs to min(cpus, 2) on GitHub Actions per fbuild_runner.py:135-143). Recent uno run: ~3.5 min for 108 examples; with compile-many it would be closer to ~2 min.
Fix
Swap the probe form to <fbuild> <subcommand> --help. PR coming next; includes a regression test (test_fbuild_supports_subcommand_uses_sub_help_form) that asserts the exact command line emitted, so the same drift can't silently re-disable compile-many.
Activity
fix(ci): probe fbuild subcommand availability via SUB --help (rc=0)