Rolling deployments for repo updates #2853
Merged
+367
−41
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.
Support rolling deployments for services when
the run repo is updated: new commits are added,
the branch is changed, uncommitted files are
updated, etc. Switching from one repo to another
is not yet supported.
Improve run plan output in
dstack apply
whenattempting an in-place update:
Show not only the list of changed
configuration properties, but also other
changes from the run spec, such as
repo-related changes.
$ dstack apply -f test-service.dstack.yml Active run test-service already exists. Detected changes that can be updated in-place: - Repo state (branch, commit, or other) - Repo files - Configuration properties: - env Update the run? [y/n]:
Show the list of changes not only when
in-place update is possible, but also when it
is not. This will help users understand why a
run cannot be updated in-place.
$ dstack apply -f test-service.dstack.yml Active run test-service already exists. Detected changes that cannot be updated in-place: - Repo files - Configuration properties: - gateway Stop and override the run? [y/n]:
Currently, all detected changes are listed
together. An area for future improvement is
highlighting the changes that prevent an
in-place update.
#2180