-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add error check for HTTPJSON template execution failure #2151
Conversation
test integrations |
Created or updated PR in integrations repository to test this version. Check elastic/integrations#11370 |
85d4351
to
b1b9c24
Compare
b1b9c24
to
567d18b
Compare
test integrations |
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.
Thanks for adding this. It LGTM, would it be possible to add a test case?
@@ -120,6 +120,15 @@ var ( | |||
regexp.MustCompile(`Component state changed .* \(HEALTHY->DEGRADED\): Degraded: pid .* missed .* check-in`), | |||
}, | |||
}, | |||
{ | |||
// HTTPJSON template error. | |||
includes: regexp.MustCompile(`^error processing response: template: :\d+:\d+: executing "" at <`), |
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.
Would it be possible to have a test case that reproduces this issue?
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.
How is this done?
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.
We could maybe add a false positives test case.
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.
The current HTTPJSON false positive case is already hitting this logic.
Created or updated PR in integrations repository to test this version. Check elastic/integrations#11370 |
There seems to be still a related failure in elastic/integrations#11370 |
Expanded the set of unfortunate false positives. This cannot be worked around in the HTTPJSON template. |
test integrations |
Created or updated PR in integrations repository to test this version. Check elastic/integrations#11370 |
💚 Build Succeeded
History
|
We don't know if this will result in failures in existing integrations, so running test integrations with a view to resolving them if they exist before this is merged.
Sadly, it needs to be relaxed, but it's better than nothing.
ref: elastic/integrations#11361 (comment)