Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.14] Adjust esClient parameters to prevent flaky behaviors (elastic…
…#181566) (elastic#181676) # Backport This will backport the following commits from `main` to `8.14`: - [Adjust esClient parameters to prevent flaky behaviors (elastic#181566)](elastic#181566) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-04-25T09:37:37Z","message":"Adjust esClient parameters to prevent flaky behaviors (elastic#181566)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/152677\r\n\r\nIt seems that CI eventually times out whilst creating SO indices for\r\ntesting purposes.\r\nThe PR aims at preventing this by increasing that timeout from `5.5s` to\r\n`10s`.\r\n\r\n\r\nLast 4 CI failures report the exact same `Request timed out` error:\r\n\r\n<img width=\"1037\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/25349407/8b4856f7-d667-4e95-b623-a085ab756e84\">\r\n\r\n---\r\n\r\nFixes https://github.com/elastic/kibana/issues/167288\r\n\r\nThe PIT ids are much longer on serverless. This causes issues with some\r\nour tests, which were checking response sizes.\r\nPR elastic#180261 attempted at fixing it,\r\nbut the parameters were not properly adjusted, because the tests first\r\ndo a valid request, followed by an invalid one.","sha":"75c228c4ea5eea1c6c87218382bafea827a185b9","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","test-failure-flaky","backport:prev-minor","v8.15.0"],"title":"Adjust esClient parameters to prevent flaky behaviors","number":181566,"url":"https://github.com/elastic/kibana/pull/181566","mergeCommit":{"message":"Adjust esClient parameters to prevent flaky behaviors (elastic#181566)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/152677\r\n\r\nIt seems that CI eventually times out whilst creating SO indices for\r\ntesting purposes.\r\nThe PR aims at preventing this by increasing that timeout from `5.5s` to\r\n`10s`.\r\n\r\n\r\nLast 4 CI failures report the exact same `Request timed out` error:\r\n\r\n<img width=\"1037\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/25349407/8b4856f7-d667-4e95-b623-a085ab756e84\">\r\n\r\n---\r\n\r\nFixes https://github.com/elastic/kibana/issues/167288\r\n\r\nThe PIT ids are much longer on serverless. This causes issues with some\r\nour tests, which were checking response sizes.\r\nPR elastic#180261 attempted at fixing it,\r\nbut the parameters were not properly adjusted, because the tests first\r\ndo a valid request, followed by an invalid one.","sha":"75c228c4ea5eea1c6c87218382bafea827a185b9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/181566","number":181566,"mergeCommit":{"message":"Adjust esClient parameters to prevent flaky behaviors (elastic#181566)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/152677\r\n\r\nIt seems that CI eventually times out whilst creating SO indices for\r\ntesting purposes.\r\nThe PR aims at preventing this by increasing that timeout from `5.5s` to\r\n`10s`.\r\n\r\n\r\nLast 4 CI failures report the exact same `Request timed out` error:\r\n\r\n<img width=\"1037\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/25349407/8b4856f7-d667-4e95-b623-a085ab756e84\">\r\n\r\n---\r\n\r\nFixes https://github.com/elastic/kibana/issues/167288\r\n\r\nThe PIT ids are much longer on serverless. This causes issues with some\r\nour tests, which were checking response sizes.\r\nPR elastic#180261 attempted at fixing it,\r\nbut the parameters were not properly adjusted, because the tests first\r\ndo a valid request, followed by an invalid one.","sha":"75c228c4ea5eea1c6c87218382bafea827a185b9"}}]}] BACKPORT--> Co-authored-by: Gerard Soldevila <[email protected]>
- Loading branch information