-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Functional tests - cleanMlIndices without system index access #199653
Conversation
Pinging @elastic/ml-ui (:ml) |
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
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.
LGTM
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
cc @pheyos |
Starting backport for target branches: 8.17, 8.x https://github.com/elastic/kibana/actions/runs/11976769607 |
…lastic#199653) ## Summary This PR updates the `cleanMlIndices` service method to no longer run with `esDeleteAllIndices` and thus no longer requires system index superuser privileges. ### Details / other changes - Not all ML items can be cleaned up through APIs (e.g. notifications), so tests have been adjusted to deal with pre-existing data - Some cleanup steps had to be re-ordered - Basic license tests didn't need the `cleanMlIndices` in their `before` so it was removed there - Observability serverless tests can't use `cleanMlIndices` as the APIs for DFA are not available for that project type, so the cleanup is changed to `cleanAnomalyDetection` for the AD tests and the `cleanMlIndices` is removed from the AI assistant helpers as the existing cleanup there should be enough (cherry picked from commit 93dac54)
…lastic#199653) ## Summary This PR updates the `cleanMlIndices` service method to no longer run with `esDeleteAllIndices` and thus no longer requires system index superuser privileges. ### Details / other changes - Not all ML items can be cleaned up through APIs (e.g. notifications), so tests have been adjusted to deal with pre-existing data - Some cleanup steps had to be re-ordered - Basic license tests didn't need the `cleanMlIndices` in their `before` so it was removed there - Observability serverless tests can't use `cleanMlIndices` as the APIs for DFA are not available for that project type, so the cleanup is changed to `cleanAnomalyDetection` for the AD tests and the `cleanMlIndices` is removed from the AI assistant helpers as the existing cleanup there should be enough (cherry picked from commit 93dac54)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…cess (#199653) (#201434) # Backport This will backport the following commits from `main` to `8.17`: - [[ML] Functional tests - cleanMlIndices without system index access (#199653)](#199653) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Robert Oskamp","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T16:54:01Z","message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability","v8.17.0"],"title":"[ML] Functional tests - cleanMlIndices without system index access","number":199653,"url":"https://github.com/elastic/kibana/pull/199653","mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199653","number":199653,"mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Oskamp <[email protected]>
…ess (#199653) (#201435) # Backport This will backport the following commits from `main` to `8.x`: - [[ML] Functional tests - cleanMlIndices without system index access (#199653)](#199653) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Robert Oskamp","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T16:54:01Z","message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability","v8.17.0"],"title":"[ML] Functional tests - cleanMlIndices without system index access","number":199653,"url":"https://github.com/elastic/kibana/pull/199653","mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199653","number":199653,"mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Oskamp <[email protected]>
…lastic#199653) ## Summary This PR updates the `cleanMlIndices` service method to no longer run with `esDeleteAllIndices` and thus no longer requires system index superuser privileges. ### Details / other changes - Not all ML items can be cleaned up through APIs (e.g. notifications), so tests have been adjusted to deal with pre-existing data - Some cleanup steps had to be re-ordered - Basic license tests didn't need the `cleanMlIndices` in their `before` so it was removed there - Observability serverless tests can't use `cleanMlIndices` as the APIs for DFA are not available for that project type, so the cleanup is changed to `cleanAnomalyDetection` for the AD tests and the `cleanMlIndices` is removed from the AI assistant helpers as the existing cleanup there should be enough
…lastic#199653) ## Summary This PR updates the `cleanMlIndices` service method to no longer run with `esDeleteAllIndices` and thus no longer requires system index superuser privileges. ### Details / other changes - Not all ML items can be cleaned up through APIs (e.g. notifications), so tests have been adjusted to deal with pre-existing data - Some cleanup steps had to be re-ordered - Basic license tests didn't need the `cleanMlIndices` in their `before` so it was removed there - Observability serverless tests can't use `cleanMlIndices` as the APIs for DFA are not available for that project type, so the cleanup is changed to `cleanAnomalyDetection` for the AD tests and the `cleanMlIndices` is removed from the AI assistant helpers as the existing cleanup there should be enough
Summary
This PR updates the
cleanMlIndices
service method to no longer run withesDeleteAllIndices
and thus no longer requires system index superuser privileges.Details / other changes
cleanMlIndices
in theirbefore
so it was removed therecleanMlIndices
as the APIs for DFA are not available for that project type, so the cleanup is changed tocleanAnomalyDetection
for the AD tests and thecleanMlIndices
is removed from the AI assistant helpers as the existing cleanup there should be enough