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 integ tests that access model index #1428

Merged

Conversation

jmazanec15
Copy link
Member

Description

Backport #1423 to 2.x

Check List

  • 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.

Refactors integration tests that directly access the model system index.
End users should not be directly accessing the model system index. It is
supposed to be an implementation detail. We have written restful
integration tests that directly access the model system index in order
to initialize the cluster state. However, we should not do this because
users should not be able to interact with it through restful APIs

That being said, some of this
implementation detail leaks out into the interface. For instance, in
k-NN stats we have a stat that is the model system index status. So, in
order to test this, we do need direct access to the system index.
Similarly, for search, we execute the search against the system index
and directly return the results. This is probably a bug - but we still
need to test it.

Signed-off-by: John Mazanec <jmazane@amazon.com>
(cherry picked from commit 2b963b4)
@jmazanec15 jmazanec15 changed the title Refactor integ tests that access model index [Backport 2.x] Refactor integ tests that access model index Jan 26, 2024
Copy link

codecov bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (85fb70f) 84.98% compared to head (596f752) 84.83%.
Report is 7 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1428      +/-   ##
============================================
- Coverage     84.98%   84.83%   -0.15%     
- Complexity     1239     1251      +12     
============================================
  Files           160      162       +2     
  Lines          5088     5131      +43     
  Branches        482      493      +11     
============================================
+ Hits           4324     4353      +29     
- Misses          559      569      +10     
- Partials        205      209       +4     

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

@ryanbogan ryanbogan merged commit de9cde3 into opensearch-project:2.x Jan 26, 2024
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants