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

Cleanup integ tests by removing redundant model uploads #671

Conversation

martin-gaievski
Copy link
Member

@martin-gaievski martin-gaievski commented Apr 5, 2024

Description

Cleaning integ tests by removing redundant model uploads. Model upload/delete consumes lot of resources including memory for keeping local model.
That is a problem for jdk21 (default for distribution infra) as default GC may be slow with memory cleanup and tests will fail in environment with limited heap amount.

In this PR I've removed model upload from 12 out of 64 tests. Logic of these test remains unchanged, those models were not necessary as queries are text based (bm25) queries.

Issues Resolved

#667

Check List

  • All tests pass
  • 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.

@vibrantvarun
Copy link
Member

LGTM, thanks @martin-gaievski

@vibrantvarun vibrantvarun merged commit 09dde7b into opensearch-project:main Apr 8, 2024
86 of 92 checks passed
@vibrantvarun vibrantvarun added the backport 2.x Label will add auto workflow to backport PR to 2.x branch label Apr 8, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 8, 2024
Signed-off-by: Martin Gaievski <[email protected]>
(cherry picked from commit 09dde7b)
martin-gaievski added a commit that referenced this pull request Apr 8, 2024
Signed-off-by: Martin Gaievski <[email protected]>
(cherry picked from commit 09dde7b)
Signed-off-by: Martin Gaievski <[email protected]>
vibrantvarun pushed a commit that referenced this pull request Apr 9, 2024
(cherry picked from commit 09dde7b)

Signed-off-by: Martin Gaievski <[email protected]>
Co-authored-by: Martin Gaievski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Label will add auto workflow to backport PR to 2.x branch Infrastructure skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants