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

Add integration tests for the remote inference feature #1073

Merged

Conversation

ryanbogan
Copy link
Member

Description

Adds integration tests for the remote inference feature

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed 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.

ylwu-amzn
ylwu-amzn previously approved these changes Jul 11, 2023
@ylwu-amzn
Copy link
Collaborator

Take a look at the failed cases?

31 tests completed, 4 failed, 12 skipped

Tests with failures:
 - org.opensearch.ml.rest.RestMLRemoteInferenceIT.testOpenAIModerationsModel
 - org.opensearch.ml.rest.RestMLRemoteInferenceIT.testOpenAIEditsModel
 - org.opensearch.ml.rest.RestMLRemoteInferenceIT.testPredictRemoteModel
 - org.opensearch.ml.rest.RestMLRemoteInferenceIT.testCohereGenerateTextModel

@ryanbogan
Copy link
Member Author

Those are expected failures until the keys are added to GitHub secrets on the ml-commons repository

@ylwu-amzn
Copy link
Collaborator

Those are expected failures until the keys are added to GitHub secrets on the ml-commons repository

Got it , thanks. Who will help add the keys to Github secrets?

@ryanbogan
Copy link
Member Author

Those are expected failures until the keys are added to GitHub secrets on the ml-commons repository

Got it , thanks. Who will help add the keys to Github secrets?

It has to be someone with admin permissions on the repository.

@peterzhuamazon
Copy link
Member

peterzhuamazon commented Jul 11, 2023

I am adding the key sections to the github workflows after talking to @ryanbogan and @ylwu-amzn offline and make required change in their accounts.

@peterzhuamazon
Copy link
Member

Remove dco.yml as it is replaced by dco apps already.

@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:34 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:34 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:34 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:34 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:34 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:34 — with GitHub Actions Inactive
Signed-off-by: Ryan Bogan <[email protected]>
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:48 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:48 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:48 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 12, 2023 23:48 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 13, 2023 00:06 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 13, 2023 00:06 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 13, 2023 00:06 — with GitHub Actions Inactive
@ryanbogan ryanbogan temporarily deployed to ml-commons-cicd-env July 13, 2023 00:06 — with GitHub Actions Inactive
@ylwu-amzn ylwu-amzn merged commit 3e56ad5 into opensearch-project:2.x Jul 13, 2023
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 13, 2023
* Add remote inference integration tests for OpenAI and Cohere

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test

Signed-off-by: Ryan Bogan <[email protected]>

* Change loop number in edits test

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test again

Signed-off-by: Ryan Bogan <[email protected]>

* Fix spotless

Signed-off-by: Ryan Bogan <[email protected]>

* Refactoring

Signed-off-by: Ryan Bogan <[email protected]>

* Fix typo

Signed-off-by: Ryan Bogan <[email protected]>

* Remove env vars

Signed-off-by: Peter Zhu <[email protected]>

* Removing unnecessary comments

Signed-off-by: Ryan Bogan <[email protected]>

* Rebase with 2.x and remove set up for master key

Signed-off-by: Ryan Bogan <[email protected]>

* Remove print line

Signed-off-by: Ryan Bogan <[email protected]>

* Add throttling check

Signed-off-by: Ryan Bogan <[email protected]>

* Minor change for assert statement

Signed-off-by: Ryan Bogan <[email protected]>

* Test changes

Signed-off-by: Ryan Bogan <[email protected]>

* Uncomment delete connector test

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Co-authored-by: Peter Zhu <[email protected]>
(cherry picked from commit 3e56ad5)
ylwu-amzn pushed a commit that referenced this pull request Jul 13, 2023
* Add remote inference integration tests for OpenAI and Cohere

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test

Signed-off-by: Ryan Bogan <[email protected]>

* Change loop number in edits test

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test again

Signed-off-by: Ryan Bogan <[email protected]>

* Fix spotless

Signed-off-by: Ryan Bogan <[email protected]>

* Refactoring

Signed-off-by: Ryan Bogan <[email protected]>

* Fix typo

Signed-off-by: Ryan Bogan <[email protected]>

* Remove env vars

Signed-off-by: Peter Zhu <[email protected]>

* Removing unnecessary comments

Signed-off-by: Ryan Bogan <[email protected]>

* Rebase with 2.x and remove set up for master key

Signed-off-by: Ryan Bogan <[email protected]>

* Remove print line

Signed-off-by: Ryan Bogan <[email protected]>

* Add throttling check

Signed-off-by: Ryan Bogan <[email protected]>

* Minor change for assert statement

Signed-off-by: Ryan Bogan <[email protected]>

* Test changes

Signed-off-by: Ryan Bogan <[email protected]>

* Uncomment delete connector test

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Co-authored-by: Peter Zhu <[email protected]>
(cherry picked from commit 3e56ad5)
Signed-off-by: Yaliang Wu <[email protected]>
ylwu-amzn pushed a commit that referenced this pull request Jul 13, 2023
* Add remote inference integration tests for OpenAI and Cohere



* Change edits model test



* Change loop number in edits test



* Change edits model test again



* Fix spotless



* Refactoring



* Fix typo



* Remove env vars



* Removing unnecessary comments



* Rebase with 2.x and remove set up for master key



* Remove print line



* Add throttling check



* Minor change for assert statement



* Test changes



* Uncomment delete connector test



---------




(cherry picked from commit 3e56ad5)

Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Signed-off-by: Yaliang Wu <[email protected]>
Co-authored-by: Ryan Bogan <[email protected]>
Co-authored-by: Peter Zhu <[email protected]>
zane-neo pushed a commit to zane-neo/ml-commons that referenced this pull request Sep 1, 2023
…oject#1073)

* Add remote inference integration tests for OpenAI and Cohere

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test

Signed-off-by: Ryan Bogan <[email protected]>

* Change loop number in edits test

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test again

Signed-off-by: Ryan Bogan <[email protected]>

* Fix spotless

Signed-off-by: Ryan Bogan <[email protected]>

* Refactoring

Signed-off-by: Ryan Bogan <[email protected]>

* Fix typo

Signed-off-by: Ryan Bogan <[email protected]>

* Remove env vars

Signed-off-by: Peter Zhu <[email protected]>

* Removing unnecessary comments

Signed-off-by: Ryan Bogan <[email protected]>

* Rebase with 2.x and remove set up for master key

Signed-off-by: Ryan Bogan <[email protected]>

* Remove print line

Signed-off-by: Ryan Bogan <[email protected]>

* Add throttling check

Signed-off-by: Ryan Bogan <[email protected]>

* Minor change for assert statement

Signed-off-by: Ryan Bogan <[email protected]>

* Test changes

Signed-off-by: Ryan Bogan <[email protected]>

* Uncomment delete connector test

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Co-authored-by: Peter Zhu <[email protected]>
zane-neo pushed a commit that referenced this pull request Sep 1, 2023
* Add remote inference integration tests for OpenAI and Cohere

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test

Signed-off-by: Ryan Bogan <[email protected]>

* Change loop number in edits test

Signed-off-by: Ryan Bogan <[email protected]>

* Change edits model test again

Signed-off-by: Ryan Bogan <[email protected]>

* Fix spotless

Signed-off-by: Ryan Bogan <[email protected]>

* Refactoring

Signed-off-by: Ryan Bogan <[email protected]>

* Fix typo

Signed-off-by: Ryan Bogan <[email protected]>

* Remove env vars

Signed-off-by: Peter Zhu <[email protected]>

* Removing unnecessary comments

Signed-off-by: Ryan Bogan <[email protected]>

* Rebase with 2.x and remove set up for master key

Signed-off-by: Ryan Bogan <[email protected]>

* Remove print line

Signed-off-by: Ryan Bogan <[email protected]>

* Add throttling check

Signed-off-by: Ryan Bogan <[email protected]>

* Minor change for assert statement

Signed-off-by: Ryan Bogan <[email protected]>

* Test changes

Signed-off-by: Ryan Bogan <[email protected]>

* Uncomment delete connector test

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Co-authored-by: Peter Zhu <[email protected]>
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.

4 participants