-
Notifications
You must be signed in to change notification settings - Fork 272
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
Be more resilient to broken deployments #460
Conversation
|
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.
This looks good. Thank you for taking time to make a PR.
I have made few suggestions how to make it a bit more robust.
Please consider also adding at least few tests to make sure we don't regress this, but it's also okay to skip that.
@LeFrosch okay, so I have spent some time today figuring how the best structure these checks. I think I have arrived to a good approach at the end and pushed some changes into your repo. But now I have made so many changes myself, that I should not be the one reviewing this code. I am going to ask @mkustermann to take a look on Monday and then once he approves I will land the code. |
@mraleph Thanks a lot for the help and effort :) |
Thanks for taking a look @mkustermann. Waiting for tests to go green and then will land. |
If there is no
grpc-status
found in the header, I try to convert the http status into the corresponding grpc status. For the conversion I used thefromHttpStatus
function from this as a template.This fixes the issue I had here #421