Repository navigation
fix(deploy): give activation a 120s health window, configurable per service - #11459
Merged
Merged
Conversation
…ervice (#11170) wait_health probed ten times at half-second intervals, about five seconds. secrets-broker answers 503 until its first Bitwarden refresh finishes (about 40 seconds on the laptop), so its first activation could never pass and the flip-back stopped it. Activation now retries every failure, 503 or not listening, until a window closes: 120 seconds, or the definition's optional healthTimeoutSeconds (1..3600). The plan names the window, and the design doc records the choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dezren39
marked this pull request as ready for review
November 18, 2026 00:50
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 22, 2026
Migration M2: one declaration for the fleet three (laptop-agent, secrets-broker, queue-broker)
#5769
Closed
Closed
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.
Closes #11170.
Before: after a deploy restarts a service, it probes the health check 10 times, half a second apart, which gives the service about 5 seconds to be ready.
secrets-brokeranswers 503 until its first Bitwarden refresh finishes, which took about 40 seconds on the laptop. So its first activation could never pass, and the flip-back stopped the service.After: activation keeps probing for 120 seconds by default. A definition can set its own window with the new optional field
healthTimeoutSeconds(1 to 3600). A service stuck on 503 for 40 or 60 seconds now activates. One that never gets ready still fails, with a message likeHTTP 503 (still failing after 120s).How:
wait_healthruns against a deadline. It retries every failure until the window closes, whether the endpoint answers 503 or isn't listening yet, because a cold-starting service can be in either state.healthTimeoutSecondsis validated as an optional field; unknown fields are still refused.Testing:
test_deploy_slice3.py: 15 pass, 8 of them new. They run on a fake clock, so the long window costs no real time. They cover:test_deploy_slice2.py,test_argv.pyand the three property suites still pass.secrets-broker's first activation on the laptop belongs to Migration M2: one declaration for the fleet three (laptop-agent, secrets-broker, queue-broker) #5769, as the issue says.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.