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

Added additional error trap, #27

Closed
wants to merge 10 commits into from

Conversation

pcjeffmac
Copy link
Contributor

If the result from Keptn does not return a proper result from the API.
It will contain "[]" which can also be the case when waiting for a result.
Added additional trap if the keptn result returns a bad result from the API.
The returned result will contain "troubleshooting". This is then used to kick out of the waiting for result function.
Then set a message that the result was improper and set result to failure.

This is in reference to issue #26

This fix should work with keptn 0.8.x

@pcjeffmac pcjeffmac requested a review from kristofre as a code owner May 6, 2021 13:43
@kristofre
Copy link
Contributor

@pcjeffmac this does not fix the issue

If I have 50 SLIs that I want to evaluate and 1 of them does not return a value, the evaluation will never finish in this case, which is not desired behaviour. The SLO for that particular metric will fail and will affect the total build score anyway.

A check for contains "[]" does not work in the above scenario

@pcjeffmac
Copy link
Contributor Author

Moved logical check for "[]" returned condition.
This should address the issue.

@pcjeffmac pcjeffmac closed this May 7, 2021
@pcjeffmac
Copy link
Contributor Author

changed logical check, will resubmit PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants