Skip to content

chore(deps): bump fbuild 2.2.9 -> 2.2.11 + re-normalize meson private includes per compile - #2617

Merged
zackees merged 1 commit into
masterfrom
chore/bump-fbuild-2.2.10
May 30, 2026
Merged

zackees merged 1 commit into
masterfrom
chore/bump-fbuild-2.2.10

Conversation

@zackees

@zackees zackees commented May 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Bumps fbuild pin from 2.2.9 → 2.2.11 and re-normalizes meson private-include paths before each compile (defense against ninja silent regen of build.ninja).

fbuild 2.2.9 → 2.2.11

2.2.11 republishes 2.2.10's content with the full wheel set. 2.2.10's PyPI upload was missing win_amd64 and manylinux_x86_64 — effectively unusable on Windows and Linux x64. Content otherwise identical. Brings in:

ci/meson/compile.py: re-normalize strict-path includes before each build

zccache's --strict-paths=absolute rejects relative + backslash include flags. normalize_meson_private_include_paths is already called once at meson setup, but ninja silently regenerates build.ninja when build files change between compiles — that regeneration re-introduces the relative form (e.g. -Ici/meson/native\fastled.dll.p), and the next compile dies with:

zccache: -I flag `-Ici/meson/native\fastled.dll.p` violates
--strict-paths=absolute (expected forward-slash absolute path).

The Stop hook has surfaced this 3-4 times this session.

Fix: call the normalizer at the top of compile_meson, right after _invalidate_stale_pchs. Costs ~5-20 ms and is idempotent when nothing changed. KBI001-compliant — the KeyboardInterrupt handler calls handle_keyboard_interrupt(ki) before re-raising; module already imports it at line 25.

Test plan

  • uv sync resolves fbuild==2.2.11 cleanly on Windows.
  • bash lint — clean.
  • CI workflows that were stale-red awaiting this bump should re-trigger and turn green: Build SAMD51J, Build nRF52840 DK, check_teensy41_size, linux_native, the size workflows (now via --backend platformio per ci(size): pin binary-size checks to --backend platformio (unblock master) #2605 + build_info.json per Typos #297).
  • Validate Boards (in fbuild repo CI) should drop from 39 → 14 drift items, confirming the board JSON cleanup landed.

Refs FastLED/fbuild#297, #298, #300, #303, #304, #305, #317, #318, #319, #320, #321, #322; FastLED #2378 (zccache strict-paths origin).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Improved build process reliability with enhanced error handling during include path normalization. Non-critical normalization failures no longer interrupt compilation; the build continues while critical issues are properly handled and reported.
  • Chores

    • Updated fbuild build tool dependency from version 2.2.9 to 2.2.11, which includes various upstream fixes and enhancements.

Review Change Stack

…de paths per compile

## fbuild pin: 2.2.9 -> 2.2.11

2.2.11 republishes 2.2.10's content with the full wheel set (win_amd64
+ manylinux_x86_64 were missing from 2.2.10's PyPI upload — that
release was effectively unusable on Windows and Linux x64). Content
otherwise identical to 2.2.10. Brings in:

- SAMD51 cores/arduino fallback + include-path injection
  (FastLED/fbuild#319/#320). Build SAMD51J was 100% red.
- nRF52 nRF52DK -> pca10056 variant alias for the Adafruit framework
  (FastLED/fbuild#321/#322). Build nRF52840 DK was 100% red.
- Board JSON tinyuf2 partition rename (18 Adafruit boards) + 4d_systems
  esp_sr_16.csv -> default_16MB.csv + cmsis_dsp_lib validator whitelist
  (FastLED/fbuild#318). Validate Boards drift drops 39 -> 14.
- daemon.rs Command::new subprocess-spawn lint annotations
  (FastLED/fbuild#317). Unblocked every PR's Lint subprocess spawns
  check.

## ci/meson/compile.py: re-normalize strict-path includes before each build

zccache strict-paths rejects relative + backslash include flags. The
build_config helper normalizes once at setup, but ninja silently
regenerates build.ninja when build files change, which re-introduces
the relative form (e.g. -Ici/.../fastled.dll.p with a backslash). The
next compile then dies with zccache --strict-paths violation.

Fix: call normalize_meson_private_include_paths(build_dir) at the top
of compile_meson, right after the stale-PCH check. Costs ~5-20 ms and
is idempotent when nothing changed. KBI001-compliant (KeyboardInterrupt
handler calls handle_keyboard_interrupt(ki) before re-raise; module
already imports it at line 25).
@coderabbitai

coderabbitai Bot commented May 30, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7303e012-f96a-4ba2-8799-358b9c30361a

📥 Commits

Reviewing files that changed from the base of the PR and between 2c628cd and 2d4c414.

📒 Files selected for processing (2)
  • ci/meson/compile.py
  • pyproject.toml

📝 Walkthrough

Walkthrough

This PR adds resilient include path normalization to the Meson compilation step and updates the fbuild build-tool dependency to version 2.2.11. The normalization is now applied before invoking Meson, with failures logged as warnings rather than blocking the build.

Changes

Meson Compilation Hardening

Layer / File(s) Summary
Include path normalization before compilation
ci/meson/compile.py
Pre-compilation step in compile_meson() calls normalize_meson_private_include_paths(build_dir) to re-apply strict/absolute path normalization. KeyboardInterrupt is re-raised; other exceptions are caught and emitted as a non-fatal warning, allowing compilation to proceed.
fbuild dependency version bump
pyproject.toml
Updates fbuild version constraint from 2.2.9 to 2.2.11 and revises the surrounding comment block to describe the contents and fixes included in 2.2.11.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • FastLED/FastLED#2375: Both PRs modify pyproject.toml to bump/enforce the fbuild dependency for the Teensy toolchain fix.
  • FastLED/FastLED#2516: Both PRs modify pyproject.toml to bump the pinned fbuild dependency version and update the related rationale comments.
  • FastLED/FastLED#2348: Both PRs modify pyproject.toml to bump the fbuild dependency version/pin.

Poem

🐰 Include paths normalized with care,
Before Meson compiles the lights so fair,
fbuild bumped from nine to eleven,
Warnings logged, not errors from heaven,
The build marches on—our refactor's delight!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-fbuild-2.2.10

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 and usage tips.

@zackees
zackees merged commit d11bcd9 into master May 30, 2026
6 of 7 checks passed
@zackees
zackees deleted the chore/bump-fbuild-2.2.10 branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant