kibana/test
Gerard Soldevila 721d68a890
Avoid ECONNRESET errors on idle timeout (#162947)
### Summary

Address https://github.com/elastic/kibana/issues/82002 and
https://github.com/elastic/kibana/issues/75440

I think I found a breakthrough for this flaky behavior. I run the
integration test 800x locally, with different settings:

Adjusting both the delayed emission (send 1 char at a time), and the
socket idle timeout to have exacly the same value (e.g. `10 millis`), I
managed to get the `ECONNRESET` 100% of the times.

Thus, IIUC the ECONNRESET happens when the client tries to send a
character over the socket and at the same time the server responds with
the idle timeout.

Adjusting the values so that the delay between character emissions is
significantly larger than the idle timeout, e.g. 20 vs 5, I get `socket
hang up` 100% of the times.

Flaky Test Runner Pipeline - 300x 🟢
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4030
2023-11-22 08:53:35 +01:00
..
accessibility Unskip a11y skipped tests in console & discover (#162903) 2023-08-02 08:15:08 -04:00
analytics async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
api_integration [Tests] apis UI Counters UI remove dependency on date (#170734) 2023-11-14 06:37:52 -07:00
common async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
examples Functional tests for KibanaErrorBoundary (#170569) 2023-11-08 11:23:19 -07:00
functional [Dashboard Navigation] Fix reference extract method (#171360) 2023-11-20 09:40:07 -07:00
harden Add test to ensure security related eslint rules are applied (#151434) 2023-02-24 16:48:11 +01:00
health_gateway async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_api_integration async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_functional Unskip interactive setup functional tests (#157863) 2023-05-16 09:20:00 -04:00
interpreter_functional async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
node_roles_functional async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
package Adds base implementation of the Kibana Health Gateway. (#141172) 2022-11-07 09:14:42 -07:00
plugin_functional Avoid ECONNRESET errors on idle timeout (#162947) 2023-11-22 08:53:35 +01:00
scripts Upgrading cypress to 12.17.4 (#165869) 2023-09-19 10:15:53 -07:00
server_integration async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
ui_capabilities/newsfeed_err
tsconfig.json [Security Solution] Support Serverless Cypress tests with different roles (#169017) 2023-10-31 09:39:47 -07:00