Skip to content

build(deps): require fbuild>=2.5.53 so the daemon stops self-evicting mid-build - #5410

Merged
zackees merged 1 commit into
masterfrom
fix/fbuild-2.5.53-eviction
Nov 22, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/fbuild-2.5.53-eviction

Conversation

@zackees

@zackees zackees commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

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::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.
@zackees
zackees enabled auto-merge November 22, 2026 04:29
@github-actions github-actions Bot added the sanitized Title, body and conversation screened; review text requires separate screening. label Nov 22, 2026
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

.coderabbit.yaml has unrecognized properties

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"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • 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.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other · Severity of issue fixed: Medium

Merge Risk: Minimal · up to c48df

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed 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 Passed 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.

Share

Recent review info

Run configuration

Commits

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-actions github-actions Bot removed the sanitized Title, body and conversation screened; review text requires separate screening. label Nov 22, 2026
@zackees
zackees added this pull request to the merge queue Nov 22, 2026
@github-actions github-actions Bot 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-actions github-actions Bot 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
Merged via the queue into master with commit e3028fc Nov 22, 2026
130 checks passed
@zackees
zackees deleted the fix/fbuild-2.5.53-eviction branch November 22, 2026 04:37
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sanitized Title, body and conversation screened; review text requires separate screening.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant