Skip to content
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] Updated filtering in DetectionRulesIt.testCondition() #110628

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

valeriy42
Copy link
Contributor

While working on elastic/ml-cpp#2677, I encountered a failure in the integration test DetectionRulesIt.testCondition(). It checks the number of return records. With the new change in ml-cpp the native code returns two more values that have no significant score. I added filtering those out in the integration test code so it continues working as expected.

@valeriy42 valeriy42 added >test Issues or PRs that are addressing/adding tests :ml Machine learning v8.16.0 labels Jul 9, 2024
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Jul 9, 2024
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

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

LGTM

I don't see the logger being used.

valeriy42 and others added 2 commits July 9, 2024 12:18
…ava/org/elasticsearch/xpack/ml/integration/DetectionRulesIT.java

Co-authored-by: David Kyle <[email protected]>
…ava/org/elasticsearch/xpack/ml/integration/DetectionRulesIT.java

Co-authored-by: David Kyle <[email protected]>
@valeriy42 valeriy42 merged commit 8e04af9 into elastic:main Jul 9, 2024
15 checks passed
@valeriy42 valeriy42 deleted the detector-rules-it-fix branch July 9, 2024 11:32
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.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants