-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clouddriver): use SpinnakerRetrofitErrorHandler for retrofit cli…
…ent beans in CloudDriverConfiguration (#4528) * feat(clouddriver): use SpinnakerRetrofitErrorHandler for retrofit client beans in CloudDriverConfiguration to improve the behavior of RetrySupport, to improve error messages in the UI, and to pave the way to move to retrofit2 by reducing dependencies on retrofit1 classes (e.g. RetrofitError). The main consequence of this is that code that previously checked for RetrofitError now checks for Spinnaker*Exception. Specifically, the beans for these classes now use SpinnakerRetrofitErrorHandler: KatoRestService FeaturesRestService MortService CloudDriverCacheStatusService OortService CloudDriverTaskStatusService and then as well KatoService since it wraps KatoRestService CloudDriverService since it wraps OortService There is more cleanup to follow in subsequent commits. * refactor(clouddriver/test): use more fully formed RetrofitErrors in TargetServerGroupResolverSpec to pave the way for Spinnaker*Exceptions, which depend on more fields being present * update TargetServerGroupResolver assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update ClusterSizePreconditionTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * refactor(clouddriver/test): use more fully formed RetrofitErrors in FindImageFromClusterTaskSpec to pave the way for Spinnaker*Exceptions, which depend on more fields being present * update FindImageFromClusterTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * refactor(clouddriver/test): use a converter with RetrofitErrors in WaitForDestroyedAsgTaskSpec to pave the way for Spinnaker*Exceptions, which depend on a converter being present * update WaitForDestroyedServerGroupTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception Note that the code now populates lastSpinnakerException instead of lastRetrofitException in the pipeline execution context when an unexpected http error occurs. * update WaitForManifestStableTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update WaitForCloudFormationCompletionTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update BulkWaitForDestroyedServerGroupTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update SpinnakerMetadataServerGroupTagGenerator assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * refactor(clouddriver): remove OortService where it's not used: SourceResolver, JarDiffsTask, VerifyQuipTask * update UpsertImageTagsTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update VerifyApplicationHasNoDependenciesTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update TerminatingInstanceSupport assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update AbstractWaitForAppEngineServerGroupStopStartTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception Note that the code now populates lastSpinnakerException instead of lastRetrofitException in the pipeline execution context when an unexpected http error occurs. * update MonitorDeleteImageTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception Note that the code now populates lastSpinnakerException instead of lastRetrofitException in the pipeline execution context when an unexpected http error occurs. * update AbstractInstancesCheckTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update WaitForDisabledServerGroupTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update SourceResolver assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update TargetReferenceSupport assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update PollerSupport assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * update CloudDriverService assuming the underlying calls to oortService use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception * refactor(igor): add helper methods for exception handling in GetCommitsTask to pave the way to handle Spinnaker*Exceptions as well * refactor(igor/test): rename retrofit-specific variables to something more generic to pave the way for Spinnaker*Exception * update GetCommitsTask assuming the underlying calls to clouddriver use SpinnakerRetrofitErrorHandler / throw Spinnaker*Exception
- Loading branch information
Showing
48 changed files
with
293 additions
and
247 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.