-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[ServiceFabric] Continue on 'Application type and version is still in use' #3346
Comments
Hi Nick, we have no current plans to change the deploy task, but are happy to take in pull requests for additional / enhanced features. |
Hi @NickDarvey: Take a look at this PR by @mikanyg: #3382 He added ability to control the overwrite behavior. Will that do the trick? |
@NickDarvey and @mikkelhegn I'm actually "brewing" on a new pull request to have an option to skip upgrades if same app type and version exists. Stay tuned |
That'd be amazing @mikanyg --- ARM templates give us idempotent infrastructure deployments, it'd be great to have the same with our SF app |
@mikanyg: Our thinking has been along the lines of putting in this logic: Create/Upgrade modes:
|
@mikkelhegn Looks promising, some of the logic is already there as I see it.
Regarding default to Monitored, I think that it's the best option, but should still be configurable. Overall I think that capturing all the different deployment scenarios in a single task is quite hard, but using the visibleRule you could probably have the task show only relevant options based on initial deployment mode. But focus should be on idempotency, since the task will often be part of a longer deployment workflow, and any failures in subsequent tasks might mean that a redeployment is needed (could be a transient error causing failure in other task). Personally I like playing with all the parameters in the underlying powershell scripts, and was even thinking about exposing the Action parameters. In some advanced scenarios a deployment might be split up so Register is a seperate step and then initiating a Create/Update action is something that requires approval or manual intervention. |
@NickDarvey a new option, SkipUpgradeSameTypeAndVersion has been merged to master in PR #3529, hopefully it will show up in VSTS soon. |
Awesome, thank you @mikanyg |
Can an option be added to let us continue on an
Application type and version is still in use
error? (Pretty please.)Usage A: Combined releases
We have multiple Service Fabric applications and we'd like to bundle some of them so that they're released together. Most of the time, only one application (App A) has been updated whilst the other remains on the same build (App B). App A's new build triggers a new release and executes the deployment tasks for both App A (with the new version) and for App B.
Usage B: Redeployments
Occasionally, a deployment may partially succeed (maybe some documentation didn't finish uploading) but everything else went out alright. It'd be great if we could just tap 'redeploy' without having to disable the Service Fabric task (which is our current process, because everything else acts idempotent'y except that one.)
It would be lovely if the Service Fabric deployment task had an option of not erroring if a type and version already exists.
(Let me know if I can provide any more info or justification.)
The text was updated successfully, but these errors were encountered: