-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Fixing flaky tests #199562
Fixing flaky tests #199562
Conversation
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7364[❌] x-pack/test/alerting_api_integration/security_and_spaces/group1/config.ts: 174/200 tests passed. |
3af30df
to
2b71dbb
Compare
@elasticmachine merge upstream |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7379[✅] x-pack/test/alerting_api_integration/security_and_spaces/group1/config.ts: 200/200 tests passed. |
Pinging @elastic/response-ops (Team:ResponseOps) |
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.
NIIIIICE! LGTM
@elasticmachine merge upstream |
Starting backport for target branches: 8.x |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
cc @ymao1 |
Resolves elastic#196226 Resolves elastic#197352 Resolves elastic#198631 Resolves elastic#199722 Resolves elastic#199351 Resolves elastic#199580 ## Summary * Fixes flaky `find` test that relied on relative dates to use a fixed offset in the find query params. This closes multiple issues because it is a security and spaces test that uses the same test for different user/space scenarios * Fixes flaky `schedule` test that was checking AAD on an `ad_hoc_run_param` object after backfill was complete and the SO was completed. Added artificial delay to rule execution so the backfill doesn't run as quickly. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 51ac51f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [Fixing flaky tests (#199562)](#199562) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ying Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2024-11-13T01:44:24Z","message":"Fixing flaky tests (#199562)\n\nResolves https://github.com/elastic/kibana/issues/196226\r\nResolves https://github.com/elastic/kibana/issues/197352\r\nResolves https://github.com/elastic/kibana/issues/198631\r\nResolves https://github.com/elastic/kibana/issues/199722\r\nResolves https://github.com/elastic/kibana/issues/199351\r\nResolves https://github.com/elastic/kibana/issues/199580\r\n\r\n## Summary\r\n\r\n* Fixes flaky `find` test that relied on relative dates to use a fixed\r\noffset in the find query params. This closes multiple issues because it\r\nis a security and spaces test that uses the same test for different\r\nuser/space scenarios\r\n* Fixes flaky `schedule` test that was checking AAD on an\r\n`ad_hoc_run_param` object after backfill was complete and the SO was\r\ncompleted. Added artificial delay to rule execution so the backfill\r\ndoesn't run as quickly.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"51ac51fa2b0b982421fbbe70a02f1eeb63154f4a","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.17.0"],"title":"Fixing flaky tests","number":199562,"url":"https://github.com/elastic/kibana/pull/199562","mergeCommit":{"message":"Fixing flaky tests (#199562)\n\nResolves https://github.com/elastic/kibana/issues/196226\r\nResolves https://github.com/elastic/kibana/issues/197352\r\nResolves https://github.com/elastic/kibana/issues/198631\r\nResolves https://github.com/elastic/kibana/issues/199722\r\nResolves https://github.com/elastic/kibana/issues/199351\r\nResolves https://github.com/elastic/kibana/issues/199580\r\n\r\n## Summary\r\n\r\n* Fixes flaky `find` test that relied on relative dates to use a fixed\r\noffset in the find query params. This closes multiple issues because it\r\nis a security and spaces test that uses the same test for different\r\nuser/space scenarios\r\n* Fixes flaky `schedule` test that was checking AAD on an\r\n`ad_hoc_run_param` object after backfill was complete and the SO was\r\ncompleted. Added artificial delay to rule execution so the backfill\r\ndoesn't run as quickly.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"51ac51fa2b0b982421fbbe70a02f1eeb63154f4a"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199562","number":199562,"mergeCommit":{"message":"Fixing flaky tests (#199562)\n\nResolves https://github.com/elastic/kibana/issues/196226\r\nResolves https://github.com/elastic/kibana/issues/197352\r\nResolves https://github.com/elastic/kibana/issues/198631\r\nResolves https://github.com/elastic/kibana/issues/199722\r\nResolves https://github.com/elastic/kibana/issues/199351\r\nResolves https://github.com/elastic/kibana/issues/199580\r\n\r\n## Summary\r\n\r\n* Fixes flaky `find` test that relied on relative dates to use a fixed\r\noffset in the find query params. This closes multiple issues because it\r\nis a security and spaces test that uses the same test for different\r\nuser/space scenarios\r\n* Fixes flaky `schedule` test that was checking AAD on an\r\n`ad_hoc_run_param` object after backfill was complete and the SO was\r\ncompleted. Added artificial delay to rule execution so the backfill\r\ndoesn't run as quickly.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"51ac51fa2b0b982421fbbe70a02f1eeb63154f4a"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ying Mao <ying.mao@elastic.co>
Resolves #196226
Resolves #197352
Resolves #198631
Resolves #199722
Resolves #199351
Resolves #199580
Summary
find
test that relied on relative dates to use a fixed offset in the find query params. This closes multiple issues because it is a security and spaces test that uses the same test for different user/space scenariosschedule
test that was checking AAD on anad_hoc_run_param
object after backfill was complete and the SO was completed. Added artificial delay to rule execution so the backfill doesn't run as quickly.