-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive #222691
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
Conversation
This test has failed a few times recently with a `version_conflict_engine_exception`, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception. Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur.
|
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#8329[✅] x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/trial_license_complete_tier/configs/ess.config.ts: 200/200 tests passed. |
💚 Build Succeeded
Metrics [docs]
cc @rylnd |
|
Starting backport for target branches: 7.17, 8.17, 8.18, 8.19, 9.0 https://github.com/elastic/kibana/actions/runs/15476199813 |
…ding our alerts archive (elastic#222691) ## Summary This test has [failed a few times recently](elastic#219112) with a `version_conflict_engine_exception`, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception. Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur. Closes elastic#219112. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329)) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 7fe71b3)
…ding our alerts archive (elastic#222691) ## Summary This test has [failed a few times recently](elastic#219112) with a `version_conflict_engine_exception`, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception. Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur. Closes elastic#219112. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329)) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 7fe71b3)
…ding our alerts archive (elastic#222691) ## Summary This test has [failed a few times recently](elastic#219112) with a `version_conflict_engine_exception`, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception. Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur. Closes elastic#219112. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329)) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 7fe71b3)
…ding our alerts archive (elastic#222691) ## Summary This test has [failed a few times recently](elastic#219112) with a `version_conflict_engine_exception`, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception. Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur. Closes elastic#219112. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329)) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 7fe71b3)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…re loading our alerts archive (#222691) (#222893) # Backport This will backport the following commits from `main` to `9.0`: - [[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)](#222691) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ryland Herrick","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-05T20:05:06Z","message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","Team:Detection Engine","8.19 candidate","v9.1.0"],"title":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive","number":222691,"url":"https://github.com/elastic/kibana/pull/222691","mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}},"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/222691","number":222691,"mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}}]}] BACKPORT--> Co-authored-by: Ryland Herrick <[email protected]>
…ore loading our alerts archive (#222691) (#222892) # Backport This will backport the following commits from `main` to `8.19`: - [[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)](#222691) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ryland Herrick","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-05T20:05:06Z","message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","Team:Detection Engine","8.19 candidate","v9.1.0"],"title":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive","number":222691,"url":"https://github.com/elastic/kibana/pull/222691","mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}},"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/222691","number":222691,"mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}}]}] BACKPORT--> Co-authored-by: Ryland Herrick <[email protected]>
…ore loading our alerts archive (#222691) (#222890) # Backport This will backport the following commits from `main` to `8.17`: - [[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)](#222691) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ryland Herrick","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-05T20:05:06Z","message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","Team:Detection Engine","8.19 candidate","v9.1.0"],"title":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive","number":222691,"url":"https://github.com/elastic/kibana/pull/222691","mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}},"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/222691","number":222691,"mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}}]}] BACKPORT--> Co-authored-by: Ryland Herrick <[email protected]>
…ore loading our alerts archive (#222691) (#222891) # Backport This will backport the following commits from `main` to `8.18`: - [[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)](#222691) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ryland Herrick","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-05T20:05:06Z","message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","Team:Detection Engine","8.19 candidate","v9.1.0"],"title":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive","number":222691,"url":"https://github.com/elastic/kibana/pull/222691","mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}},"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/222691","number":222691,"mergeCommit":{"message":"[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)\n\n## Summary\n\nThis test has [failed a few times\nrecently](#219112) with a\n`version_conflict_engine_exception`, stating explicitly that the\ndocuments we're trying to load already exist in elasticsearch. In one\ncase the reason was obvious (the suite was retried), but in another it\nwas not clear why the data was there to cause this exception.\n\nRegardless, adding this sanity check (deleting all the alerts) should\nensure that this behavior does not recur.\n\nCloses #219112.\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7fe71b3f4ee4b68e22bb424aa7b8ccc2e3c40f1a"}}]}] BACKPORT--> Co-authored-by: Ryland Herrick <[email protected]>
…ding our alerts archive (elastic#222691) ## Summary This test has [failed a few times recently](elastic#219112) with a `version_conflict_engine_exception`, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception. Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur. Closes elastic#219112. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329)) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
…ding our alerts archive (elastic#222691) ## Summary This test has [failed a few times recently](elastic#219112) with a `version_conflict_engine_exception`, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception. Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur. Closes elastic#219112. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329)) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Summary
This test has failed a few times recently with a
version_conflict_engine_exception, stating explicitly that the documents we're trying to load already exist in elasticsearch. In one case the reason was obvious (the suite was retried), but in another it was not clear why the data was there to cause this exception.Regardless, adding this sanity check (deleting all the alerts) should ensure that this behavior does not recur.
Closes #219112.
release_note:*label is applied per the guidelines