[Test retry service] Add initialDelay option#224156
Conversation
gsoldevila
left a comment
There was a problem hiding this comment.
LGTM (code review only) - could we run an FTR runner pipeline to validate?
the changes for the ui counters are already tested and merged but here is a FTR runner run that wouldnt hurt :) https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8388 |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#8388[✅] src/platform/test/api_integration/config.js: 25/25 tests passed. |
|
Starting backport for target branches: 8.17, 8.18, 8.19, 9.0 https://github.com/elastic/kibana/actions/runs/15703819702 |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
History
|
## Summary Add `initialDelay` option to the `tryWithRetries` retry service. This is a common usecase across Kibana where we'd need to wait a little bit before ES fully refreshes the indexed data to test a specific behavior. Added a test case to test the new flag as well. The PR updates the UI counters test case as an example where i needed this to replace `delay(..)` with the `initialDelay` flag. (original PR elastic#224151) closes elastic#98240 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit e4749b0)
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
4 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `9.0`: - [[Test retry service] Add initialDelay option (#224156)](#224156) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ahmad Bamieh","email":"ahmad.bamyeh@elastic.co"},"sourceCommit":{"committedDate":"2025-06-17T09:42:53Z","message":"[Test retry service] Add initialDelay option (#224156)\n\n## Summary\n\nAdd `initialDelay` option to the `tryWithRetries` retry service. This is\na common usecase across Kibana where we'd need to wait a little bit\nbefore ES fully refreshes the indexed data to test a specific behavior.\nAdded a test case to test the new flag as well.\n\n\nThe PR updates the UI counters test case as an example where i needed\nthis to replace `delay(..)` with the `initialDelay` flag. (original PR\nhttps://github.com//pull/224151)\n\ncloses https://github.com/elastic/kibana/issues/98240\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"e4749b02b85b6f90765d2bcfadfd54660c0cc651","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Test retry service] Add initialDelay option","number":224156,"url":"https://github.com/elastic/kibana/pull/224156","mergeCommit":{"message":"[Test retry service] Add initialDelay option (#224156)\n\n## Summary\n\nAdd `initialDelay` option to the `tryWithRetries` retry service. This is\na common usecase across Kibana where we'd need to wait a little bit\nbefore ES fully refreshes the indexed data to test a specific behavior.\nAdded a test case to test the new flag as well.\n\n\nThe PR updates the UI counters test case as an example where i needed\nthis to replace `delay(..)` with the `initialDelay` flag. (original PR\nhttps://github.com//pull/224151)\n\ncloses https://github.com/elastic/kibana/issues/98240\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"e4749b02b85b6f90765d2bcfadfd54660c0cc651"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/224156","number":224156,"mergeCommit":{"message":"[Test retry service] Add initialDelay option (#224156)\n\n## Summary\n\nAdd `initialDelay` option to the `tryWithRetries` retry service. This is\na common usecase across Kibana where we'd need to wait a little bit\nbefore ES fully refreshes the indexed data to test a specific behavior.\nAdded a test case to test the new flag as well.\n\n\nThe PR updates the UI counters test case as an example where i needed\nthis to replace `delay(..)` with the `initialDelay` flag. (original PR\nhttps://github.com//pull/224151)\n\ncloses https://github.com/elastic/kibana/issues/98240\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"e4749b02b85b6f90765d2bcfadfd54660c0cc651"}}]}] BACKPORT--> --------- Co-authored-by: Ahmad Bamieh <ahmad.bamyeh@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
Summary
Add
initialDelayoption to thetryWithRetriesretry service. This is a common usecase across Kibana where we'd need to wait a little bit before ES fully refreshes the indexed data to test a specific behavior. Added a test case to test the new flag as well.The PR updates the UI counters test case as an example where i needed this to replace
delay(..)with theinitialDelayflag. (original PR #224151)closes #98240