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

[Backport 2.x] Refactor TrainingJobRouteDecisionInfo test to use KNNTestCase #1375

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 5c24d99 from #1374

Recently, we have seen that
TrainingJobRouteDecisionInfoTransportActionTests has been having
failures on Windows. The failures are related to an unintialized cluster
state. This does not have anything to do with the test itself. Most
likely, it is the result of state dependence that happens with
KNNSingleNodeTestCase.

This change refactors the class to use mocks and a lighter weight base
class, KNNTestCase.

Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit 5c24d99)
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3043ef7) 85.08% compared to head (127275f) 85.10%.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1375      +/-   ##
============================================
+ Coverage     85.08%   85.10%   +0.01%     
  Complexity     1232     1232              
============================================
  Files           158      158              
  Lines          5049     5049              
  Branches        479      479              
============================================
+ Hits           4296     4297       +1     
+ Misses          547      546       -1     
  Partials        206      206              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jmazanec15 jmazanec15 merged commit bb4976c into 2.x Jan 5, 2024
78 of 87 checks passed
@github-actions github-actions bot deleted the backport/backport-1374-to-2.x branch January 5, 2024 00:52
@heemin32
Copy link
Collaborator

heemin32 commented Jan 5, 2024

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants