-
Notifications
You must be signed in to change notification settings - Fork 0
feat: strict zero-downtime deploy with readiness probes and rollback #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bnema
wants to merge
26
commits into
main
Choose a base branch
from
feat/strict-zero-downtime-deploy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,108
−173
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
84f5799
test: surface DrainRegistryInFlight failures immediately via result c…
bnema c7a2b36
fix: recover missing ImageID via inspect for redundant deploy skip
bnema 5f1ff6a
fix: resolve existing container from runtime when memory is stale
bnema dca4ad5
fix: orphan cleanup never kills running canonical container
bnema 1c38208
feat: add TCP and HTTP readiness probes
bnema 43c7dfb
feat: readiness cascade — healthcheck > HTTP probe > TCP probe > delay
bnema b3c4051
feat: post-switch stabilization window with automatic rollback
bnema e6981de
feat: add deploy config for stabilization delay and probe timeouts
bnema 2a109aa
test: add strict zero-downtime ordering tests
bnema 5d857a7
fix: address code review findings for zero-downtime deploy
bnema 0fd48ee
refactor: address CodeRabbit review nitpicks
bnema 5c94f33
chore: remove dead dns_suffix config field
bnema 8147c67
refactor: address CodeRabbit review and fix lint gate
bnema 2eb86f5
feat(registry): add deploy event suppression for CLI-managed pushes
bnema 5c9a313
feat(admin): add deploy-intent endpoint to suppress event-based deploys
bnema 5ba38cf
feat(cli): call deploy-intent before push to prevent event-based doub…
bnema f5d1226
feat(admin): clear deploy event suppression after successful deploy
bnema b5f1ca3
fix: address code review findings from CR
bnema 7d1dad7
fix: normalize suppression keys in registry suppression methods
bnema 87a4f06
fix: context-aware sleep in TCP and HTTP probe retry loops
bnema 593697c
fix: use SO_REUSEADDR in delayed listener test to prevent TIME_WAIT f…
bnema fae4729
refactor: use parseResponse in DeployIntent for consistent error hand…
bnema a2cc8dc
refactor: extract testMinDelayConfig helper in container service tests
bnema bf45a07
refactor: split deploy coordination from registry boundary
bnema 08d30e7
fix: address code review findings in DeployIntent, probe sleep, drain…
bnema 11dcb09
refactor: trim DeployIntent input, extract probeLoop helper, fix test…
bnema File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| package in | ||
|
|
||
| // DeployCoordinator defines deploy coordination operations. | ||
| // | ||
| // These methods let the CLI/admin API suppress image-pushed deploy events | ||
| // while an explicit deploy flow is in progress. | ||
| type DeployCoordinator interface { | ||
| SuppressDeployEvent(imageName string) | ||
| ClearDeployEventSuppression(imageName string) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--no-deploycan still trigger a deployment.At Line 159, suppression is skipped when
noDeployis true. That allows registryimage.pushedevents to trigger deploys, which breaks the “push only” contract for--no-deploy.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents