Skip to content

perf(build): cut include cost, drop PlatformIO, ban stdlib subprocess - #4412

Merged
zackees merged 2 commits into
masterfrom
feat/fbuild-only-build-speed
Sep 13, 2026
Merged

zackees merged 2 commits into
masterfrom
feat/fbuild-only-build-speed

Conversation

@zackees

@zackees zackees commented Sep 13, 2026

Copy link
Copy Markdown
Member

What this does

Three things, all from the build-speed investigation earlier today:

  1. Include-graph fixes (items 1, 2, 3 of the ledger) — measured per translation unit on host with clang -ftime-trace, median of 5 runs, no PCH:

    TU Before After Change
    Blink example 1.07 s 0.63 s −41%
    fl.gfx+.cpp unity TU 2.03 s 1.65 s −19%
    fl.math+.cpp unity TU 1.24 s 0.98 s −21%
    tests/fl/math/math.cpp 0.70 s 0.38 s −46%
    • fl/math/sin32.h no longer includes fl/math/simd.h; the four-lane sincos32_simd() lives in the new fl/math/sin32_simd.h. The crgb.h → ease.h → fixed_point → sin32 → immintrin chain was 31% of every TU.
    • fl/stl/ostream.h forward-declares CRGB; the operator<<(const CRGB&) body moved to ostream.cpp.hpp.
    • FastLED.h gets UIAudio from fl/audio/audio_manager.h (a forward declaration) instead of pulling fl/ui/ui.h into every library TU. fl/remote/remote.h is now opt-in for sketches: include it directly or define FL_INCLUDE_REMOTE. examples/Remote and AutoResearch include it themselves.
    • fl::make_index_sequence builds in log depth; the 256-deep recursion for the gamma LUT cost ~50 ms per TU.
  2. Build-script fixes (item 5):

    • build_info[_example].json is derived from fbuild's own outputs (build_info_<env>.json when fbuild emits it, else compile_commands.json + firmware.elf). The PlatformIO metadata call that produced it cost 4.3 s per example. A warm no-change bash compile esp32s3 --examples Blink is now 2.0 s.
    • The libfastled build lock is keyed per build directory, so quick/debug/release runs no longer serialize on one global lock.
    • get_meson_executable() finds the venv executable on Linux/macOS (it only knew the Windows Scripts/ layout), which lets the version-check mtime fast path skip a 0.35 s child process on every bash test.
  3. PlatformIO is gone and the stdlib subprocess module is banned.

    • fbuild is the only board build backend. The PlatformIO backend, its package daemon, cache, URL rewriting, --backend/--platformio/--pio flags, the parity and flag-drift workflows and ~40 modules/tests are deleted; board builds live under .build/fbuild/<board>; pyproject.toml no longer depends on the platformio package.
    • New lint stage ci/lint/banned_build_tools.py: any spelling of the tool's name fails bash lint (error, no warn-only mode). Allowed: the project-file name platformio.ini, the PLATFORMIO_SRC_DIR env var fbuild reads, RP2040/SAM PIO peripheral code, and a short list of user-facing docs.
    • ci/lint_python/subprocess_capture_checker.py is now a hard ban: import subprocess, any subprocess.* reference, os.system, os.popen fail with no baseline and no # noqa escape. Every call site (~130 files) uses RunningProcess. SRC004 (capture without encoding=) now also applies to RunningProcess calls.

Verification (local)

  • bash lint: all stages green.
  • bash test --cpp: 307/307 unit, 84/84 examples.
  • pytest ci/tests tests: 1470 passed, 28 skipped, 2 xfailed.
  • bash compile uno --examples Blink, bash compile esp32s3 --examples Blink, bash bloat esp32s3 --example Blink (fbuild ELF, no build flag) all succeed.
  • Full host rebuild after a one-line header edit: 74 s (was 73–84 s); the win is in per-TU front-end time, the link phase dominates the wall clock.

Things to know

  • Two codegen tests (test_q16_inverse_calls_no_float_runtime, test_cortex_m33_divides_in_hardware) were written against GCC 16.1 from the old ~/.platformio toolchain. On fbuild's GCC 14.2 pico toolchain they fail (the Q16 inverse reaches the float runtime; s_div emits 4 divides instead of 2). They are marked xfail with the reason; that is a real finding about the shipping toolchain worth its own issue.
  • mcp_server.py does not import on this machine (installed mcp is 2.x, pinned >=1.12.2); pre-existing, untouched beyond the subprocess migration.
  • RunningProcess.run(capture_output=True) merges stderr into stdout; call sites that need both streams pass stdout=PIPE, stderr=PIPE. DEVNULL is not supported by run().
  • build_esp_extra_libs.yml now builds ci/kitchensink with fbuild; it needs one CI run to confirm fbuild honours that project's symlink:// platform URL.
  • ci/boards/*.json is now orphaned (only the deleted custom-board workflow read it).

🤖 Generated with Claude Code

https://claude.ai/code/session_01M9rUkvoW2gVKYurtQJpi4i

Include-graph changes measured with clang -ftime-trace on host (median of 5):
Blink TU 1.07 s -> 0.63 s, fl.gfx unity TU 2.03 s -> 1.65 s, fl.math unity
TU 1.24 s -> 0.98 s, tests/fl/math/math.cpp 0.70 s -> 0.38 s.

- fl/math/sin32.h no longer includes fl/math/simd.h; the four-lane
  sincos32_simd() moved to the new fl/math/sin32_simd.h (crgb.h -> ease.h ->
  fixed_point -> sin32 -> immintrin was 31% of every TU).
- fl/stl/ostream.h forward-declares CRGB; operator<<(const CRGB&) is defined
  in ostream.cpp.hpp.
- FastLED.h forward-declares UIAudio through fl/audio/audio_manager.h instead
  of pulling fl/ui/ui.h into every library TU, and fl/remote/remote.h is now
  opt-in for sketches (FL_INCLUDE_REMOTE, or include it directly). The
  Remote example and AutoResearch include it themselves.
- fl::make_index_sequence builds in log depth (the 256-level recursion for the
  gamma LUT cost ~50 ms per TU).

Build scripts:
- build_info[_example].json is derived from fbuild's own outputs
  (build_info_<env>.json, else compile_commands.json + firmware.elf) instead
  of the PlatformIO metadata call (4.3 s per example; a warm no-change
  compile of esp32s3 Blink is now 2.0 s).
- The libfastled build lock is keyed per build directory.
- get_meson_executable() finds the venv executable on Linux/macOS, so the
  version-check mtime fast path applies (0.35 s per bash test).

PlatformIO purge: the PlatformIO tool is gone from ci/, workflows, docs and
tooling; fbuild is the only board backend. Board builds live under
.build/fbuild/<board>. ci/lint/banned_build_tools.py fails bash lint on any
spelling of the tool's name outside the documented allowlist (the project
file name platformio.ini, PLATFORMIO_SRC_DIR, RP2040/SAM PIO peripheral code).

The stdlib subprocess module is banned outright: every call site uses
RunningProcess, and ci/lint_python/subprocess_capture_checker.py has no
baseline and no noqa escape (SRC007 covers imports and attribute references;
SRC004 also applies to RunningProcess captures without encoding=).

Two GCC-16-specific codegen tests are marked xfail on fbuild's GCC 14.2 pico
toolchain (see comments in the tests).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01M9rUkvoW2gVKYurtQJpi4i
@coderabbitai

coderabbitai Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 340 files, which is 40 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 1be882d3-0874-4cb5-b290-81e905395b1f

📥 Commits

Reviewing files that changed from the base of the PR and between d4c2f8b and 1b2585e.

⛔ Files ignored due to path filters (1)
  • ci/tests/uno/firmware.map is excluded by !**/*.map
📒 Files selected for processing (340)
  • .clangd
  • .claude/agents/fix-board-agent.md
  • .claude/agents/platform-port-agent.md
  • .claude/commands/code_review.md
  • .claude/commands/f.py
  • .claude/commands/fix_board.md
  • .claude/skills/feature-contract/SKILL.md
  • .claude/skills/fix-board/SKILL.md
  • .claude/skills/platform-port/SKILL.md
  • .coderabbit.yaml
  • .cursorignore
  • .cursorrules
  • .dockerignore
  • .github/workflows/avr8js_docker_template.yml
  • .github/workflows/backend_flag_drift_teensy40.yml
  • .github/workflows/build_clone_and_compile.yml
  • .github/workflows/build_esp32dev_idf5_component.yml
  • .github/workflows/build_esp_extra_libs.yml
  • .github/workflows/build_template.yml
  • .github/workflows/build_template_binary_size.yml
  • .github/workflows/build_template_custom_board.yml
  • .github/workflows/check_esp32_size.yml
  • .github/workflows/mp3_cpu_audit.yml
  • .github/workflows/nightly_fbuild_pio_parity.yml
  • .gitignore
  • .vscode/launch.json
  • .vscode/launch.json.backup
  • .vscode/settings.json
  • CLAUDE.md
  • README.md
  • agents/docs/binary-size-analysis.md
  • agents/docs/build-system.md
  • agents/docs/commands-reference.md
  • agents/docs/driver-bringup-postmortems.md
  • agents/docs/external-tools.md
  • agents/docs/hardware-autoresearch.md
  • agents/docs/python-standards.md
  • agents/docs/register-maps.md
  • agents/docs/testing-commands.md
  • agents/tasks/lessons.md
  • autoresearch
  • build.py
  • build_info.json
  • build_info_lpc845.json
  • ci/SYMBOL_ANALYSIS.md
  • ci/autoresearch/__init__.py
  • ci/autoresearch/args.py
  • ci/autoresearch/build_driver.py
  • ci/autoresearch/decode.py
  • ci/autoresearch/driver_sweep.py
  • ci/autoresearch/net.py
  • ci/autoresearch/phases.py
  • ci/autoresearch/staging.py
  • ci/autoresearch/usb_power.py
  • ci/bin_bloat_analysis.py
  • ci/bin_bloat_attribute.py
  • ci/bloat.py
  • ci/boards.py
  • ci/check_backend_flag_drift.py
  • ci/ci-check-compiled-size.py
  • ci/ci-compile-concurrent-backup.py
  • ci/ci-compile-pio-ci-working.py
  • ci/ci-compile.py
  • ci/ci-cppcheck.py
  • ci/ci-iwyu.py
  • ci/clean-worktrees.py
  • ci/codec_autoresearch/generate.py
  • ci/codec_conformance/run.py
  • ci/codec_cpu/audit.py
  • ci/codec_cpu/callgrind.py
  • ci/codec_cpu/device_profile.py
  • ci/codec_cpu/report.py
  • ci/codec_cpu/text_size.py
  • ci/codec_memory/audit.py
  • ci/color_profile_freshness.py
  • ci/color_profile_freshness_issue.py
  • ci/compile_pch.py
  • ci/compiled_size.py
  • ci/compiler/argument_parser.py
  • ci/compiler/board_compiler.py
  • ci/compiler/build_config.py
  • ci/compiler/build_utils.py
  • ci/compiler/compilation_orchestrator.py
  • ci/compiler/compile_for_board.py
  • ci/compiler/compiler.py
  • ci/compiler/lock_manager.py
  • ci/compiler/output_utils.py
  • ci/compiler/package_manager.py
  • ci/compiler/path_manager.py
  • ci/compiler/pio.py
  • ci/compiler/platformio_cache.py
  • ci/compiler/platformio_ini.py
  • ci/compiler/project_ini.py
  • ci/compiler/source_manager.py
  • ci/compiler/toolchain.py
  • ci/debug/port_diagnostic.py
  • ci/debug_attached.py
  • ci/decode_esp32_backtrace.py
  • ci/demo_symbol_analysis.py
  • ci/dependencies.json
  • ci/docker_utils/.dockerignore
  • ci/docker_utils/avr8js_docker.py
  • ci/docs.py
  • ci/docs/fbuild-static-analysis-research.md
  • ci/early_exit_cache.py
  • ci/esbuild_frontend.py
  • ci/fingerprint/core.py
  • ci/github_project_drift_sync.py
  • ci/github_project_sync.py
  • ci/hooks/ERROR_MESSAGES.md
  • ci/hooks/README.md
  • ci/hooks/check-on-start.py
  • ci/hooks/check-on-stop.py
  • ci/hooks/check_pr_merge_reviews.py
  • ci/hooks/compile_example.py
  • ci/hooks/desktop_notify.py
  • ci/hooks/git_context.py
  • ci/hooks/lint-on-save.py
  • ci/inspect_binary.py
  • ci/inspect_elf.py
  • ci/inspect_obj.py
  • ci/iwyu_wrapper.py
  • ci/lint.py
  • ci/lint/args_parser.py
  • ci/lint/banned_build_tools.py
  • ci/lint/clang_tidy/noexcept_platforms.py
  • ci/lint/root_project_ini_lockdown.py
  • ci/lint/stage_impls.py
  • ci/lint_cpp/rust_binary_cache.py
  • ci/lint_cpp/rust_bridge.py
  • ci/lint_cpp_rs/src/checkers/bare_legacy.rs
  • ci/lint_cpp_rs/src/checkers/preprocessor.rs
  • ci/lint_cpp_rs/src/checkers/test_structure.rs
  • ci/lint_platformio/__init__.py
  • ci/lint_platformio/check_no_internal_platformio.py
  • ci/lint_platformio/run_all_checkers.py
  • ci/lint_python/subprocess_baseline.txt
  • ci/lint_python/subprocess_capture_checker.py
  • ci/meson/ar_content_preserving.py
  • ci/meson/cache_utils.py
  • ci/meson/compiler.py
  • ci/meson/discover_example_includes.py
  • ci/meson/discover_example_sources.py
  • ci/meson/discover_examples_all.py
  • ci/meson/meson_cleanup.py
  • ci/meson/meson_setup_execute.py
  • ci/meson/native_launchers.py
  • ci/meson/runner.py
  • ci/meson/runner_helpers.py
  • ci/meson/sequential_runner.py
  • ci/meson/streaming.py
  • ci/meson/streaming_runner.py
  • ci/meson/test_discovery.py
  • ci/oldest_issue.py
  • ci/optimization_report.py
  • ci/profile/generate_profile_test.py
  • ci/profile_runner.py
  • ci/refactor/add_fl_noexcept.py
  • ci/run-clang-format.py
  • ci/run_tests.py
  • ci/setup-js-linting-fast.py
  • ci/stage_fbuild_project.py
  • ci/symbol_analysis_runner.py
  • ci/test_all_lint_caches_stress.py
  • ci/test_iwyu_integration.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_autoresearch_staging.py
  • ci/tests/test_banned_build_tools.py
  • ci/tests/test_bin_2_elf.py
  • ci/tests/test_bloat_elf_selection.py
  • ci/tests/test_board_to_project_ini.py
  • ci/tests/test_build_info_from_fbuild.py
  • ci/tests/test_check_backend_flag_drift.py
  • ci/tests/test_check_pr_merge_reviews.py
  • ci/tests/test_clean_worktrees.py
  • ci/tests/test_clearcore_board_config.py
  • ci/tests/test_compiled_size_fbuild.py
  • ci/tests/test_debug_attached_lint.py
  • ci/tests/test_elf.py
  • ci/tests/test_embedded_fs_build_defines.py
  • ci/tests/test_esbuild_frontend.py
  • ci/tests/test_explicit_platformio_backend.py
  • ci/tests/test_fbuild_compile_many.py
  • ci/tests/test_fbuild_default_selection.py
  • ci/tests/test_fbuild_deploy_streaming.py
  • ci/tests/test_fbuild_qemu.py
  • ci/tests/test_firmware_elf_resolution.py
  • ci/tests/test_fixed_point_divide_codegen.py
  • ci/tests/test_fixed_point_headers_are_self_contained.py
  • ci/tests/test_int_asm_codegen.py
  • ci/tests/test_meson_native_toolchain.py
  • ci/tests/test_no_internal_platformio_checker.py
  • ci/tests/test_override_prog_path_for_fbuild.py
  • ci/tests/test_parlio_capable_boards.py
  • ci/tests/test_platformio_ini_class.py
  • ci/tests/test_platformio_url_resolution.py
  • ci/tests/test_q16_inverse_is_float_free.py
  • ci/tests/test_real_platformio_cache.py
  • ci/tests/test_renesas_i2s_include_guard.py
  • ci/tests/test_root_platformio_sever.py
  • ci/tests/test_rp2350w_board_config.py
  • ci/tests/test_running_process.py
  • ci/tests/test_samd_platform_detection.py
  • ci/tests/test_simd_dispatch.py
  • ci/tests/test_source_manager.py
  • ci/tests/test_stale_lock_real_scenario.py
  • ci/tests/test_subprocess_checker_baseline.py
  • ci/tests/test_subprocess_deadlock_rules.py
  • ci/tests/test_symbol_analysis.py
  • ci/tests/test_tiny_links_no_float.py
  • ci/tests/test_toolchain_url_extraction.py
  • ci/tests/test_wasm_flags.py
  • ci/tools/add_fl_noexcept.py
  • ci/tools/check_array_params.py
  • ci/tools/check_ast_combined.py
  • ci/tools/check_noexcept.py
  • ci/tools/coderabbit_addressor.py
  • ci/tools/generate_audio_fixtures.py
  • ci/tools/gh/ci_builds.py
  • ci/tools/gh/gh_healthcheck.py
  • ci/tools/gh/workflow_scanner.py
  • ci/tools/gh_debug.py
  • ci/util/banner_print.py
  • ci/util/bin_2_elf.py
  • ci/util/build_info_analyzer.py
  • ci/util/build_lock.py
  • ci/util/build_process_client.py
  • ci/util/build_process_tracker.py
  • ci/util/concurrent_run.py
  • ci/util/crash_trace_decoder.py
  • ci/util/create_build_dir.py
  • ci/util/deadlock_detector.py
  • ci/util/docker_command.py
  • ci/util/docker_helper.py
  • ci/util/elf.py
  • ci/util/fbuild_compiledb.py
  • ci/util/fbuild_runner.py
  • ci/util/file_lock_rw.py
  • ci/util/firmware_elf.py
  • ci/util/git_historian.py
  • ci/util/lock_admin.py
  • ci/util/lock_database.py
  • ci/util/lock_handler.py
  • ci/util/map_dump.py
  • ci/util/package_validator.py
  • ci/util/pio_package_client.py
  • ci/util/pio_package_daemon.py
  • ci/util/pio_package_messages.py
  • ci/util/pio_process_killer.py
  • ci/util/pio_runner.py
  • ci/util/port_utils.py
  • ci/util/running_process_group.py
  • ci/util/scrapers/run_fastled_scraper.py
  • ci/util/scrapers/scrape_festival_stick.py
  • ci/util/serial_monitor.py
  • ci/util/symbol_analysis.py
  • ci/util/tee.py
  • ci/util/test_commands.py
  • ci/util/test_exceptions.py
  • ci/util/test_pio_package_messages.py
  • ci/util/test_runner.py
  • ci/util/toolchain_downloader.py
  • ci/util/tools.py
  • ci/util/url_utils.py
  • ci/util/version_lockfile.py
  • ci/util/windows_cmd_runner.py
  • ci/util/zccache_config.py
  • ci/wasm_audio_drag_drop_test.py
  • ci/wasm_audio_url_test.py
  • ci/wasm_build.py
  • ci/wasm_build_library.py
  • ci/wasm_compile.py
  • ci/wasm_compile_native.py
  • ci/wasm_compile_pch.py
  • ci/wasm_test.py
  • ci/wasm_tools.py
  • clean
  • daemon
  • docs/SIZE_THRESHOLD_HISTORY.md
  • docs/SLIM_ESP32S3.md
  • docs/iwyu-platform-headers-report.md
  • examples/Asio/Server/test_manual.py
  • examples/Asio/Server/test_quick.py
  • examples/Asio/Server/test_stress.py
  • examples/Audio/advanced/advanced.h
  • examples/AutoResearch/AutoResearchRemote.h
  • examples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp
  • examples/OTA/OTA.ino
  • examples/Remote/Remote.ino
  • examples/SpecialDrivers/Adafruit/SAMD_SingleSPI/README.md
  • examples/meson.build
  • mcp_server.py
  • pyproject.toml
  • src/FastLED.cpp.hpp
  • src/FastLED.h
  • src/extras/suppress_arduino_chip_debug_report.cpp.hpp
  • src/fl/fx/2d/animartrix_detail/viz/chasing_spirals.cpp.hpp
  • src/fl/math/fixed_point/s16x16x4.h
  • src/fl/math/fixed_point/sincos32x4.h
  • src/fl/math/sin32.h
  • src/fl/math/sin32_simd.h
  • src/fl/stl/ostream.cpp.hpp
  • src/fl/stl/ostream.h
  • src/fl/stl/type_traits.h
  • src/platforms/adafruit/clockless_fake.hpp
  • src/platforms/adafruit/clockless_real.hpp
  • src/platforms/arm/common/m0clockless_c.h
  • src/platforms/arm/lpc/README.md
  • src/platforms/arm/lpc/clockless_arm_lpc_plu.h
  • src/platforms/arm/lpc/is_lpc.h
  • src/platforms/arm/nrf52/fastpin_arm_nrf52_variants.h
  • src/platforms/arm/samd/is_samd.h
  • src/platforms/arm/stm32/core_detection.h
  • src/platforms/arm/stm32/fastspi_arm_stm32.h
  • src/platforms/arm/teensy/MUTEX_README.md
  • src/platforms/arm/teensy/kinetis_spi/dspi_bus.h
  • src/platforms/avr/attiny/pins/fastpin_attiny.h
  • src/platforms/avr/is_avr.h
  • src/platforms/esp/32/README.md
  • src/platforms/esp/32/drivers/parlio/README.md
  • src/platforms/esp/32/drivers/rmt/rmt_5/README.md
  • src/platforms/esp/32/feature_flags/enabled.h
  • src/platforms/esp/32/interrupts/riscv.hpp
  • src/platforms/readme.md
  • test.py
  • tests/fbuild_qemu_smoke/README.md
  • tests/fl/math/sin32.hpp
  • tests/fl/math/trig8.cpp
  • tests/measure_esp32s3_opt_ins.py
  • tests/platforms/_standard/SMOKE_SKETCHES.txt
  • tests/profile/asm_dump_sincos32.cpp
  • tests/profile/sincos32.cpp
  • tests/profile/sincos32_compare.cpp
  • tests/profile/sincos32_simd.cpp
  • tests/test_esp32s3_bloat_regression.py
  • tests/test_wasm_build_cache.py
  • tests/test_wasm_template_copy.py
  • tests/test_wrapper.py
  • tools/sdkconfig_for_smallest_fastled.defaults
  • ty.toml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

- Missing executables raise RuntimeError under RunningProcess; the
  "tool not installed" fallbacks in wasm_build, autoresearch/net,
  ci-iwyu, compiled_size and bloat now catch it.
- ESP32 build_info aliases resolve to fbuild's GNU xtensa/riscv binutils
  (found by the --target triple) instead of host llvm-* tools.
- codec_cpu audit: match fbuild's toolchain directory names.
- build_clone_and_compile.yml builds the root project's default env only,
  as the job did before.
- Codegen tests end an objdump symbol body at the next header (captured
  output no longer carries blank lines).
- tests/profile sincos32 sources include fl/math/sin32_simd.h.
- subprocess ban: see through `import subprocess as sp`, `import os as o`
  and `from os import system/popen`.
- rust_bridge captures stderr separately so Rust panics are shown.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01M9rUkvoW2gVKYurtQJpi4i
@zackees
zackees merged commit da8dc22 into master Sep 13, 2026
28 of 30 checks passed
zackees added a commit that referenced this pull request Sep 13, 2026
The 3-way shard was added while fbuild rebuilt the framework for every
sketch (FastLED/fbuild#1411/#1413, fixed in fbuild 2.5.22). Each shard
now duplicates 5-8 minutes of framework + library warm-up on its own
runner; measured on #4412's runs the per-example cost after warm-up is
~14 s, so one serial sweep is cheaper in runner minutes and comparable
in wall clock.


Claude-Session: https://claude.ai/code/session_01M9rUkvoW2gVKYurtQJpi4i

Co-authored-by: Claude Fable 5.1 <[email protected]>
zackees added a commit that referenced this pull request Sep 14, 2026
- Bloat regression: re-baseline esp32s3 Blink to 390453 B. Since #4412 the gate builds through fbuild instead of the removed backend; CI measured exactly 390,453 B on all four runs since and 336,465 B on every run before, so the step is the backend switch, not code growth. The reason is recorded in the baseline file.

- Project sync: ci/github_project_sync.py calls the GitHub GraphQL API with urllib instead of spawning the gh CLI. It runs in the pull_request_target job with a bare setup-python and no dependencies, so the running_process import from the subprocess ban made it crash on every PR and issue event.

- Unit tests: the esp32s3 workflow test asserted the removed 3-way shard matrix; it now pins one job with smoke on PRs and all on master.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

Claude-Session: https://claude.ai/code/session_01M9rUkvoW2gVKYurtQJpi4i
zackees added a commit that referenced this pull request Sep 18, 2026
…acros (#4427)

The SparkFun XRP controller's pins_arduino.h (arduino-pico) defines
S1..S4 as servo pin macros. index_sequence_concat, added with the
log-depth make_index_sequence in #4412, used S1/S2 as its template
parameter names. The macros expanded them and every sketch on that board
failed to compile. The rp2350B SparkfunXRP workflow has been red on
master since.

Rename them to LhsSeq/RhsSeq (and the I1/I2 packs to Lhs/Rhs).

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
zackees added a commit that referenced this pull request Sep 18, 2026
project_drift_sync.yml checks out ci/ with a bare setup-python and
installs nothing. When stdlib subprocess was banned (#4412),
github_project_drift_sync.py moved onto running_process, which that job
does not have, so every nightly run died with ModuleNotFoundError. #4418
fixed the sibling github_project_sync.py by talking to the API with
urllib; do the same here.

- graphql() POSTs over HTTPS with GH_TOKEN. It still exits on GraphQL
  errors, as `gh api graphql` did; the mutation callers catch that.
- fetch_repo_items() uses the REST issues endpoint, which lists PRs too
  (marked by pull_request), capped at 1000 per kind as before.

Add a test that both project scripts import only the standard library,
so this fails on a pull request rather than in a scheduled job.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
zackees added a commit that referenced this pull request Sep 18, 2026
* fix(ci): run project drift sync on the standard library

project_drift_sync.yml checks out ci/ with a bare setup-python and
installs nothing. When stdlib subprocess was banned (#4412),
github_project_drift_sync.py moved onto running_process, which that job
does not have, so every nightly run died with ModuleNotFoundError. #4418
fixed the sibling github_project_sync.py by talking to the API with
urllib; do the same here.

- graphql() POSTs over HTTPS with GH_TOKEN. It still exits on GraphQL
  errors, as `gh api graphql` did; the mutation callers catch that.
- fetch_repo_items() uses the REST issues endpoint, which lists PRs too
  (marked by pull_request), capped at 1000 per kind as before.

Add a test that both project scripts import only the standard library,
so this fails on a pull request rather than in a scheduled job.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(ci): address review on project drift sync

- _request(): no default for data; the GET call site passes data=None.
- Handle KeyboardInterrupt first in the request try block and notify the
  main thread with _thread.interrupt_main(), which is stdlib, so the
  script still imports nothing outside the standard library.
- Annotate self in the stdlib-only test.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
zackees added a commit that referenced this pull request Sep 18, 2026
esp_extra_libs has failed on master since #4412 moved it from PlatformIO
to `fbuild ci/kitchensink build`:

    build error: package error: library 'FS' not found in registry

Three PlatformIO-only constructs in ci/kitchensink/platformio.ini:
- FS, ArduinoOTA and ESPmDNS in lib_deps. They ship inside the ESP32
  Arduino core; fbuild sends them to the registry (FastLED/fbuild#1442).
  Drop them; the LDF finds them from the sketch's #includes.
- src_dir = symlink://../../../src plus the FASTLED_STUB_MAIN_INCLUDE_INO
  wrapper, which fbuild does not honour, so FastLED.h was not found. Use
  the root project's layout instead: the sketch is the source and FastLED
  comes in as FastLED=symlink://../../.
- ArduinoJson becomes bblanchon/ArduinoJson (owner-qualified).

With these, FastLED, WiFi, ESPmDNS, ArduinoOTA, AsyncTCP and
ESPAsyncWebServer all resolve and link. The remaining failure is
ArduinoJson.h not on the include path: fbuild fetches the header-only
package but never adds it (FastLED/fbuild#1441).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
zackees added a commit that referenced this pull request Sep 18, 2026
esp_extra_libs has failed on master since #4412 moved it from PlatformIO
to `fbuild ci/kitchensink build`:

    build error: package error: library 'FS' not found in registry

Three PlatformIO-only constructs in ci/kitchensink/platformio.ini:
- FS, ArduinoOTA and ESPmDNS in lib_deps. They ship inside the ESP32
  Arduino core; fbuild sends them to the registry (FastLED/fbuild#1442).
  Drop them; the LDF finds them from the sketch's #includes.
- src_dir = symlink://../../../src plus the FASTLED_STUB_MAIN_INCLUDE_INO
  wrapper, which fbuild does not honour, so FastLED.h was not found. Use
  the root project's layout instead: the sketch is the source and FastLED
  comes in as FastLED=symlink://../../.
- ArduinoJson becomes bblanchon/ArduinoJson (owner-qualified).

With these, FastLED, WiFi, ESPmDNS, ArduinoOTA, AsyncTCP and
ESPAsyncWebServer all resolve and link. The remaining failure is
ArduinoJson.h not on the include path: fbuild fetches the header-only
package but never adds it (FastLED/fbuild#1441).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
zackees added a commit that referenced this pull request Sep 18, 2026
* chore(deps): pin fbuild 2.5.24

fbuild 2.5.24 carries the fixes for three CI jobs that went red when
FastLED moved to fbuild (#4412):

- clone and compile: .ino conversion hoisted Sailboat's Teensy-only
  `#include <Audio.h>` out of its #if (FastLED/fbuild#1440).
- esp_extra_libs: relative project dirs broke downloaded-library include
  paths (FastLED/fbuild#1441), core-bundled lib_deps went to the registry
  (FastLED/fbuild#1442), and the pioarduino 51.x pin hit a 404 toolchain
  URL (FastLED/fbuild#1446). The kitchensink .ini port is #4429.
- ThingPlusMatter_mgm240s: silabs-core submodules (FastLED/fbuild#1439).

Verified locally with the released wheel: `fbuild build` on the root
project (Sailboat, esp32s3) builds from clean and links at 1.07 MB.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* chore(deps): claim fbuild 2.5.24's ESP32-S3 saving; drop a banned tool name

- The bloat gate measured ESP32-S3 Blink at 382,766 B, 7,706 B under the
  390,472 B baseline. The saving comes from FastLED/fbuild#1434 (core linked
  as an archive, no -fno-omit-frame-pointer on Xtensa, __FILE__ prefix
  map); record it.
- The pin history comment named the legacy build tool, which
  banned_build_tools rejects; reword it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@zackees
zackees deleted the feat/fbuild-only-build-speed branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant