Skip to content

Binary-size guards red on master: fbuild (new default backend) doesn't emit build_info.json #2590

Closed

Description

@zackees

Symptom

Every binary-size guard workflow on master fails identically:

FileNotFoundError: build_info.json not found for board '<board>'
  (tried build_info_<example>.json and build_info.json in .build/pio/<board> and .build/<board>)

Affected workflows (all README badges):

  • check_uno_size, check_attiny85, attiny85_binary_size
  • check_teensy30_size, check_teensy31_size, check_teensy32_size,
    check_teensy35_size, check_teensy36_size, check_teensy41_size,
    check_teensylc_size
  • check_stm32f103c8_bluepill_size
  • esp32dev_binary_size
  • teensy41_binary_size

Root cause

Commit f215b56b8 ("ci: make fbuild the default for board builds") flipped ci/compiler/argument_parser.py:

backend: BuildBackend = BuildBackend.FBUILD

ci/compiler/build_config.py::generate_build_info_json_from_existing_build calls pio project metadata --json-output — that's the only code path that produces build_info_<example>.json, and it only runs on the PlatformIO build backend (it shells out to pio).

fbuild does not yet have an equivalent metadata emitter. Tracked upstream at FastLED/fbuild#297.

So every fbuild-backed compile under the size-check workflow leaves the build dir without build_info.json, and ci/compiled_size.py::_find_build_info raises FileNotFoundError — the workflow turns red even though compilation succeeded.

Proposed fix (immediate, in this repo)

.github/workflows/build_template_binary_size.yml is the single shared template the size workflows use. Append --backend=platformio to the three ci-check-compiled-size.py invocations so the size pipeline opts back into PIO until fbuild ships the emitter.

ci-check-compiled-size.py passes unknown args through to ci.ci-compile (via parse_known_args), which understands --backend=platformio. No script changes needed.

Reverting later

Once FastLED/fbuild#297 lands and FastLED bumps the fbuild floor, the three --backend=platformio flags can be removed — a single PR with a one-line diff per call site.

Repro

bash compile uno --examples Blink (default backend) then uv run ci/ci-check-compiled-size.py uno --example Blink --no-build → FileNotFoundError.


Filed during a coordinated CI-green sweep; fix PR coming immediately.

Activity

  1. zackees commented on May 31, 2026

    @zackees
    MemberAuthor

    Closing — workaround landed in 54ce09d (#2605): binary-size workflows are now pinned to --backend platformio so build_info.json is emitted. The underlying fbuild emit build_info.json work remains tracked upstream in fbuild.

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions