-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Transform] HLRC tests: dump audit index to logs for better debugging #51627
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
[Transform] HLRC tests: dump audit index to logs for better debugging #51627
Conversation
|
Pinging @elastic/ml-core (:ml/Transform) |
davidkyle
left a comment
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.
LGTM
Might be worth adding the same to MultiClusterYamlTestSuiteIT for debugging #51629
| transformsToClean = new ArrayList<>(); | ||
| waitForPendingTasks(adminClient()); | ||
|
|
||
| // using '*' to make this lenient and do not fail if the audit index does not exist |
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 same can be achieved with new searchRequest.indicesOptions(IndicesOptions.LENIENT_EXPAND_OPEN)
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.
searchAll does a index refresh which would fail if you give it an explicit index name.
The audit index is re-created for every testrun and therefore potential useful debug information gets lost. This change reads out the audit index and logs the results, which makes them available for debugging CI issues. relates #51549
audit messages are stored in the notifications index, so audit information is lost for integration tests. This change forwards audit messages to logs, so they can help to debug issues. relates: #51627
audit messages are stored in the notifications index, so audit information is lost for integration tests. This change forwards audit messages to logs, so they can help to debug issues. relates: #51627
The audit index is re-created for every testrun and therefore potential useful debug information gets
lost. This change reads out the audit index and logs the results, which makes them available for
debugging CI issues.
relates #51549
Notes: I tried to only dump the audit index on a failure(e.g. using a
TestWatcher), however that's not possible as the code always runs after the audit index has been deleted. Creating this extra logs does not seem too heavy, therefore it dumps the audit index for every test now.