Skip to content

Clean up flaky tests #247

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

Merged

Conversation

jmazanec15
Copy link
Member

Description

In #246 , @martin-gaievski suggested we Ignore as opposed to commenting out for flaky tests. I agree this is a cleaner way of handling flaky test so this PR adds that.

It also fixes one of the commented out tests from training that had been left commented out because the particular functionality was not available when the tests were written.

Lastly, it removes the KNNStats flaky test. This test is too complicated for the value it adds (making sure a counter gets incremented). Therefore, I think it is better just to remove it. We have tested counter functionality in uTs and other iTs.

Issues Resolved

#43

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jmazanec15 jmazanec15 added the Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. label Dec 21, 2021
@jmazanec15 jmazanec15 requested review from VijayanB, martin-gaievski and a team December 21, 2021 22:27
@codecov-commenter
Copy link

Codecov Report

Merging #247 (a7f429b) into main (fc43d08) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #247   +/-   ##
=========================================
  Coverage     83.22%   83.22%           
  Complexity      865      865           
=========================================
  Files           123      123           
  Lines          3780     3780           
  Branches        359      359           
=========================================
  Hits           3146     3146           
  Misses          473      473           
  Partials        161      161           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc43d08...a7f429b. Read the comment docs.

Copy link
Member

@martin-gaievski martin-gaievski left a comment

Choose a reason for hiding this comment

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

Lgtm

@jmazanec15 jmazanec15 merged commit 66cc873 into opensearch-project:main Jan 6, 2022
martin-gaievski pushed a commit to martin-gaievski/k-NN that referenced this pull request Mar 7, 2022
martin-gaievski pushed a commit to martin-gaievski/k-NN that referenced this pull request Mar 7, 2022
Signed-off-by: John Mazanec <[email protected]>
Signed-off-by: Martin Gaievski <[email protected]>
martin-gaievski pushed a commit to martin-gaievski/k-NN that referenced this pull request Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants