d8e9327db4
## Summary * https://github.com/elastic/kibana/issues/69632 * Adds a retry loop in case of a network outage/issue which should increase the chances of success * If there is still an issue after the 20th try, then it moves on and there is a high likelihood the tests will continue without issues. * Adds console logging statements so we know if this flakiness happens again a bit more insight into why the network is behaving the way it is. * Helps prevent the other tests from being skipped in the future due to bad networking issues. The errors that were coming back from the failed tests are in the `afterEach` and look to be network related or another test interfering: ```ts 1) detection engine api security and spaces enabled 01:59:54 find_statuses 01:59:54 "after each" hook for "should return a single rule status when a single rule is loaded from a find status with defaults added": 01:59:54 ResponseError: Response Error 01:59:54 at IncomingMessage.response.on (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:287:25) 01:59:54 at endReadableNT (_stream_readable.js:1145:12) 01:59:54 at process._tickCallback (internal/process/next_tick.js:63:19) 01:59:54 01:59:54 └- ✖ fail: "detection engine api security and spaces enabled find_statuses "after each" hook for "should return a single rule status when a single rule is loaded from a find status with defaults added"" 01:59:54 │ 01:59:54 └-> "after all" hook 01:59:54 └-> "after all" hook 01:59:54 │ 01:59:54 │42 passing (2.0m) 01:59:54 │1 failing ``` So this should fix it to where the afterEach calls try up to 20 times before giving up and then on giving up they move on with the hope a different test doesn't fail. ### Checklist - [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios |
||
---|---|---|
.. | ||
accessibility | ||
alerting_api_integration | ||
api_integration | ||
apm_api_integration | ||
case_api_integration | ||
common | ||
detection_engine_api_integration | ||
encrypted_saved_objects_api_integration | ||
endpoint_api_integration_no_ingest | ||
functional | ||
functional_embedded | ||
functional_enterprise_search | ||
functional_with_es_ssl | ||
ingest_manager_api_integration | ||
kerberos_api_integration | ||
licensing_plugin | ||
login_selector_api_integration | ||
observability_api_integration | ||
oidc_api_integration | ||
page_load_metrics | ||
pki_api_integration | ||
plugin_api_integration | ||
plugin_api_perf | ||
plugin_functional | ||
reporting_api_integration | ||
saml_api_integration | ||
saved_object_api_integration | ||
saved_objects_field_count | ||
security_solution_cypress | ||
security_solution_endpoint | ||
spaces_api_integration | ||
stack_functional_integration | ||
token_api_integration | ||
ui_capabilities | ||
upgrade_assistant_integration | ||
visual_regression | ||
mocha_decorations.d.ts | ||
tsconfig.json |