Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [Fixing flaky backfill tests (#194328)](#194328) <!--- 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-10-08T18:25:23Z","message":"Fixing flaky backfill tests (#194328)\n\nResolves #192144 and\r\nhttps://github.com//issues/181862\r\n\r\n## Summary\r\n\r\nUnskipped the test that was skipped in\r\nhttps://github.com//issues/181862 but it did not fail at\r\nall during the 2400 times total I ran the flaky test runner so I'm going\r\nto unskip and see if it comes back ever\r\n\r\nWhile running the flaky test runner, I saw this test from\r\nhttps://github.com//issues/192144 be flaky so I addressed\r\nin this PR. This was caused by the query for the alert documents\r\nsometimes not returning the alert docs in timestamp order, which is\r\nimportant because I'm trying to compare the actual alert timestamp to\r\nthe expected alert timestamp (in order). Added a sort order to the alert\r\nquery.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"2d6874981ec036dd992c2481a13228aed5bd68a2","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.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.16.0"],"title":"Fixing flaky backfill tests","number":194328,"url":"https://github.com/elastic/kibana/pull/194328","mergeCommit":{"message":"Fixing flaky backfill tests (#194328)\n\nResolves #192144 and\r\nhttps://github.com//issues/181862\r\n\r\n## Summary\r\n\r\nUnskipped the test that was skipped in\r\nhttps://github.com//issues/181862 but it did not fail at\r\nall during the 2400 times total I ran the flaky test runner so I'm going\r\nto unskip and see if it comes back ever\r\n\r\nWhile running the flaky test runner, I saw this test from\r\nhttps://github.com//issues/192144 be flaky so I addressed\r\nin this PR. This was caused by the query for the alert documents\r\nsometimes not returning the alert docs in timestamp order, which is\r\nimportant because I'm trying to compare the actual alert timestamp to\r\nthe expected alert timestamp (in order). Added a sort order to the alert\r\nquery.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"2d6874981ec036dd992c2481a13228aed5bd68a2"}},"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/194328","number":194328,"mergeCommit":{"message":"Fixing flaky backfill tests (#194328)\n\nResolves #192144 and\r\nhttps://github.com//issues/181862\r\n\r\n## Summary\r\n\r\nUnskipped the test that was skipped in\r\nhttps://github.com//issues/181862 but it did not fail at\r\nall during the 2400 times total I ran the flaky test runner so I'm going\r\nto unskip and see if it comes back ever\r\n\r\nWhile running the flaky test runner, I saw this test from\r\nhttps://github.com//issues/192144 be flaky so I addressed\r\nin this PR. This was caused by the query for the alert documents\r\nsometimes not returning the alert docs in timestamp order, which is\r\nimportant because I'm trying to compare the actual alert timestamp to\r\nthe expected alert timestamp (in order). Added a sort order to the alert\r\nquery.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"2d6874981ec036dd992c2481a13228aed5bd68a2"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ying Mao <ying.mao@elastic.co>
- Loading branch information