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
build(deps): require fbuild>=2.5.53 so the daemon stops self-evicting mid-build - #5410
Under load, the shared fbuild daemon kept restarting. That killed builds mid-compile ("lost connection to daemon mid-build", error sending request for url .../api/deploy). It produced "daemon did not become healthy while another process was spawning it" errors, and it dropped device leases. The leases matter most when agents share a board.
Root cause (fbuild 2.5.52)
OperationGuard::drop cleared the shared operation_in_progress flag every time any operation finished. The idle check (busy_reason()) looked only at that flag, so when one of several concurrent operations ended, the daemon counted itself idle. After 30 s it self-evicted while the other builds were still compiling. From daemon.log:
03:22:20 Daemon is idle; self-eviction in 30s <- two builds still compiling
03:22:46 build completed in 282.0s
03:22:50 Self-eviction triggered
03:22:57 build completed in 430.8s <- still running after "idle"
The evicting daemon kept root-owner.lock while it drained. Replacement daemons each gave up after 10 s waiting for that lock, and the eventual SIGTERM killed whatever was still running.
Fix
FastLED/fbuild#2143, released in v2.5.53, counts active operations and checks again for running work before shutting down. This PR raises FastLED's floor to fbuild>=2.5.53. After merge, run uv sync; uv.lock is gitignored.
Evidence
I ran a local overlap test on 2.5.53. A 203 s build, which can't hit the cache because it carries a unique -D flag, ran alongside an 11 s build that finished partway through. The daemon logged "staying alive: build/deploy operation in progress" until the long build completed, and went idle only after that. On 2.5.52 the same overlap would have triggered self-eviction about 30 s after the short build. bash lint passes.
Found while reproducing #5365 on a shared ESP32-C6.
Summary by CodeRabbit
Bug Fixes
Improved reliability of the build daemon by incorporating an upstream fix that prevents unexpected self-eviction.
… mid-build
fbuild 2.5.52 cleared its shared operation-in-progress flag whenever any
operation finished, so with two concurrent builds the daemon self-evicted
30 s after the first one ended. The evicting daemon kept root-owner.lock while
draining, new clients timed out spawning replacements, and the eventual
SIGTERM killed in-flight builds and dropped device leases.
FastLED/fbuild#2143 (v2.5.53) counts active operations instead.
Verified locally: a 203 s build with an 11 s build finishing inside it kept
the 2.5.53 daemon alive until the long build completed.
CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.
Parsing warnings: 1
Validation error: Unrecognized key: "enabled" at "reviews.pre_merge_checks"
If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
No actionable comments were generated in the recent review.
Walkthrough
The fbuild minimum version increases from 2.5.52 to 2.5.53. A comment describes the 2.5.53 daemon self-eviction fix.
Changes: fbuild Version Update
Layer / File(s)
Summary
Update fbuild dependency floor pyproject.toml
The dependency minimum changes to fbuild>=2.5.53. A comment describes the daemon self-eviction fix during concurrent operations.
This change raises the minimum fbuild version to 2.5.53 so concurrent builds no longer evict the daemon. It looks safe to merge; callers need to run uv sync after merging to pick up the new version.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: raising the fbuild dependency floor to 2.5.53 to stop the daemon from self-evicting mid-build. The raw summary confirms pyproject.toml raises the minimum from 2.5.52 t…
Linked Issues check
The only linked issue, #2143, is closed. It is historical context only, so its acceptance criteria do not apply. No active directly linked targets remain, so no linked-issue coding requirements apply.…
Out of Scope Changes check
The diff against the merge base contains one hunk in pyproject.toml. The hunk changes the fbuild dependency floor to 2.5.53 and adds a comment that explains the version bump. This matches the stated P…
Full details: Title check
Explanation
The title names the main change: raising the fbuild dependency floor to 2.5.53 to stop the daemon from self-evicting mid-build. The raw summary confirms pyproject.toml raises the minimum from 2.5.52 to 2.5.53 and adds a comment describing the daemon self-eviction fix. The title is specific, follows the conventional build(deps) form, and is under 80 characters.
Full details: Linked Issues check
Explanation
The only linked issue, #2143, is closed. It is historical context only, so its acceptance criteria do not apply. No active directly linked targets remain, so no linked-issue coding requirements apply. The reviewed diff against the merge base changes only pyproject.toml: it raises the fbuild floor from >=2.5.52 to >=2.5.53 and adds a comment. The PR does not need to implement the daemon, deploy-queueing, or test work described in #2143. The PR objectives also state that no active directly linked targets remain.
Full details: Out of Scope Changes check
Explanation
The diff against the merge base contains one hunk in pyproject.toml. The hunk changes the fbuild dependency floor to 2.5.53 and adds a comment that explains the version bump. This matches the stated PR objective of raising FastLED's dependency floor to fbuild>=2.5.53 for the daemon self-eviction fix. No unrelated code, test, or configuration changes appear in the reviewed diff. The PR description states that uv.lock is gitignored, so no lock-file change is expected.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Reviewing files that changed from the base of the PR and between 2675eb7 and c48df56.
Files selected for processing: 1
pyproject.toml
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 1 remain after this review.
github-actionsBot
added
sanitized
Title, body and conversation screened; review text requires separate screening.
and removed
sanitized
Title, body and conversation screened; review text requires separate screening.
labels
Nov 22, 2026
github-actionsBot
added
sanitized
Title, body and conversation screened; review text requires separate screening.
and removed
sanitized
Title, body and conversation screened; review text requires separate screening.
labels
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sanitizedTitle, body and conversation screened; review text requires separate screening.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Under load, the shared fbuild daemon kept restarting. That killed builds mid-compile ("lost connection to daemon mid-build",
error sending request for url .../api/deploy). It produced "daemon did not become healthy while another process was spawning it" errors, and it dropped device leases. The leases matter most when agents share a board.Root cause (fbuild 2.5.52)
OperationGuard::dropcleared the sharedoperation_in_progressflag every time any operation finished. The idle check (busy_reason()) looked only at that flag, so when one of several concurrent operations ended, the daemon counted itself idle. After 30 s it self-evicted while the other builds were still compiling. Fromdaemon.log:The evicting daemon kept
root-owner.lockwhile it drained. Replacement daemons each gave up after 10 s waiting for that lock, and the eventual SIGTERM killed whatever was still running.Fix
FastLED/fbuild#2143, released in v2.5.53, counts active operations and checks again for running work before shutting down. This PR raises FastLED's floor to
fbuild>=2.5.53. After merge, runuv sync;uv.lockis gitignored.Evidence
I ran a local overlap test on 2.5.53. A 203 s build, which can't hit the cache because it carries a unique
-Dflag, ran alongside an 11 s build that finished partway through. The daemon logged "staying alive: build/deploy operation in progress" until the long build completed, and went idle only after that. On 2.5.52 the same overlap would have triggered self-eviction about 30 s after the short build.bash lintpasses.Found while reproducing #5365 on a shared ESP32-C6.
Summary by CodeRabbit