Skip to content

Conversation

@benwtrent
Copy link
Member

Replaces the bespoke ML cleanup code with the feature reset API for internal cluster tests

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests :ml Machine learning v8.0.0 labels Apr 19, 2021
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Apr 19, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@benwtrent
Copy link
Member Author

run elasticsearch-ci/bwc

@benwtrent
Copy link
Member Author

@elasticmachine update branch

Copy link

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

// automatically recreated.
assertAcked(client().admin().indices().prepareDelete(nonAnnotationMlIndices).get());
}
client().execute(ResetFeatureStateAction.INSTANCE, new ResetFeatureStateRequest()).actionGet();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should also delete the comment on lines 91-94, as this cleanup is now doing more than what that comment says. It will mean that in the future it will be possible to use this base class for tests that might leave jobs running when they complete.

@benwtrent benwtrent merged commit cb7d51b into elastic:master Apr 19, 2021
@benwtrent benwtrent deleted the tests/ml-feature-cleanup branch April 19, 2021 16:08
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Apr 19, 2021
Replaces the bespoke ML cleanup code with the feature reset API for internal cluster tests
benwtrent added a commit that referenced this pull request Apr 19, 2021
…1859)

Replaces the bespoke ML cleanup code with the feature reset API for internal cluster tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants