Repository navigation
refactor(serial): share the WS open-port cap so the attach guard reads it - #2101
Merged
Merged
Conversation
…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"}
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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"}