Skip to content
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

fix(artifact): improve error messaging for failed artifact downl… #453

Merged
merged 2 commits into from
Oct 23, 2019

Conversation

maggieneterval
Copy link
Contributor

Related to: spinnaker/spinnaker#4752

When running a Bake (Manifest) stage with the Helm or Kustomize template renderers, Orca calls out to Rosco, which calls out to Clouddriver to download the input artifact. If the download fails, a non-specific "500" message is surfaced in Deck. This change adds two explicit catch blocks to the ArtifactDownloaderImpl so that the full artifact and error message are surfaced in Deck. I am still not sure why Retrofit and/or Orca's handling of Retrofit errors only surfaces "500" by default, since Clouddriver does throw a more explicit error when it fails to download an artifact -- it seems like when the error is passed between multiple microservices to get back to Orca, the message on the body of the Retrofit response is lost.

Before:
Xq78dvzCrRj

After:
GjwCF9fUGn5

Copy link
Contributor

@ezimanyi ezimanyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📈 🏺 💬 ❌ ⬇️ 🚚
💯 🎉 🎈

@maggieneterval
Copy link
Contributor Author

LOVE the 🏺

@ethanfrogers ethanfrogers changed the title fix(artifact): improve error messaging for failed artifact downloads fix(artifact): improve error messaging for failed artifact downl… Oct 23, 2019
@ethanfrogers ethanfrogers merged commit 00dbfde into spinnaker:master Oct 23, 2019
@maggieneterval maggieneterval deleted the improve-artifact-errors branch October 23, 2019 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants