Skip to content

refactor(serial): share the WS open-port cap so the attach guard reads it - #2101

Merged
zackees merged 1 commit into
mainfrom
refactor/ws-open-cap-shared
Nov 19, 2026
Merged

zackees merged 1 commit into
mainfrom
refactor/ws-open-cap-shared

Conversation

@zackees

@zackees zackees commented Nov 19, 2026

Copy link
Copy Markdown
Member

The daemon's 3 s WebSocket attach open cap moves from a private const in
fbuild-daemon's websockets handler to fbuild-serial, beside
OPEN_FAMILY_RESOLVE_TIMEOUT, and is re-exported from the crate root.

#2099's guard that the Python client's attach budget exceeds the
daemon's worst case wrote that cap as a literal 3 s, so raising the
daemon's cap would silently shrink the margin back toward the #2095
failure. The guard now sums the two real bounds. The stale note on
OPEN_FAMILY_RESOLVE_TIMEOUT that still cited the client's old 5 s budget
is corrected. No runtime behaviour change.

Ci-Attestation: {"at":1795089959,"gate":"general/all/dylint-policy","host":"linux-x86_64","key":"","lane":"dylint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":1719,"stamp":"6c355fda10e1e0d3cb15b6b3a4d6436e","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"d590d968b7c90ef270544e09d2b575c5","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"d0157c3210cde8afcde69edb7d2fc671","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"a81d56f574738661a2905168b6f1857e","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"391205e37f0a357d1233b17852038d98","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"ad1c7f7518e03974fe903037c2b75b1f","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"ce7cceec13fd8936ad81f3b911f50ccd","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"01b5672be29d1f1cb6ad92350154adb1","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-musl/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"c1cb7294e7bddeeb4cadbe5996511a27","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"b19007b32713a5ef89c70c788b01ee79","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"506fec2c824bb2b0ac22bfe1851a735c","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"b84c9b44bfb4293af349ac8dde4763c7","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"409039c0871ff7a4c8c5dd0bb0533843","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"02a24f7efefbf662d6965eb67eae8a4b","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"708a76c837851301467cc3870ae75617","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795089959,"gate":"rust/x86_64-unknown-linux-gnu/dylint-library-check","host":"linux-x86_64","key":"","lane":"dylint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":1719,"stamp":"e0b227d39d369fcbf8d9d26701943369","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795089959,"gate":"rust/x86_64-unknown-linux-gnu/workspace-dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":1719,"stamp":"76bb67b6247dc9762bae29634aa467bf","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"6b8904567d9921c638f17bf80ccb9cdc","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-musl/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"110ed310ae360d7e8cd383573ead5d6e","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}

…s it

The daemon's 3 s WebSocket attach open cap moves from a private const in
fbuild-daemon's websockets handler to fbuild-serial, beside
OPEN_FAMILY_RESOLVE_TIMEOUT, and is re-exported from the crate root.

#2099's guard that the Python client's attach budget exceeds the
daemon's worst case wrote that cap as a literal 3 s, so raising the
daemon's cap would silently shrink the margin back toward the #2095
failure. The guard now sums the two real bounds. The stale note on
OPEN_FAMILY_RESOLVE_TIMEOUT that still cited the client's old 5 s budget
is corrected. No runtime behaviour change.

Ci-Attestation: {"at":1795089959,"gate":"general/all/dylint-policy","host":"linux-x86_64","key":"","lane":"dylint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":1719,"stamp":"6c355fda10e1e0d3cb15b6b3a4d6436e","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"d590d968b7c90ef270544e09d2b575c5","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"d0157c3210cde8afcde69edb7d2fc671","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"a81d56f574738661a2905168b6f1857e","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"391205e37f0a357d1233b17852038d98","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"ad1c7f7518e03974fe903037c2b75b1f","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"ce7cceec13fd8936ad81f3b911f50ccd","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"01b5672be29d1f1cb6ad92350154adb1","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/aarch64-unknown-linux-musl/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"c1cb7294e7bddeeb4cadbe5996511a27","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"b19007b32713a5ef89c70c788b01ee79","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"506fec2c824bb2b0ac22bfe1851a735c","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"b84c9b44bfb4293af349ac8dde4763c7","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"409039c0871ff7a4c8c5dd0bb0533843","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"02a24f7efefbf662d6965eb67eae8a4b","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"708a76c837851301467cc3870ae75617","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795089959,"gate":"rust/x86_64-unknown-linux-gnu/dylint-library-check","host":"linux-x86_64","key":"","lane":"dylint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":1719,"stamp":"e0b227d39d369fcbf8d9d26701943369","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795089959,"gate":"rust/x86_64-unknown-linux-gnu/workspace-dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":1719,"stamp":"76bb67b6247dc9762bae29634aa467bf","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-musl/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"6b8904567d9921c638f17bf80ccb9cdc","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
Ci-Attestation: {"at":1795088239,"gate":"rust/x86_64-unknown-linux-musl/dylint","host":"linux-x86_64","key":"","lane":"lint","parents":["3199f00ca45b8aaf7db6854627ed51b276595868"],"secs":5332,"stamp":"110ed310ae360d7e8cd383573ead5d6e","tree":"9dc14fe362fb2c15f5ed6eb6b2e1c37cc52f1d04","v":1,"via":"run"}
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

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

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@zackees
zackees added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 8b8e00f Nov 19, 2026
44 of 46 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 20, 2026
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