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 IT flow agent with search index tool #2448

Merged
merged 1 commit into from
May 17, 2024

Conversation

jngz-es
Copy link
Collaborator

@jngz-es jngz-es commented May 15, 2024

Description

IT test case: flow agent + searchIndexTool

Issues Resolved

[List any issues this PR will resolve]

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.

@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 15, 2024 23:52 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 15, 2024 23:52 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 15, 2024 23:52 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 15, 2024 23:52 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 15, 2024 23:52 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 15, 2024 23:52 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 16, 2024 00:45 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 16, 2024 00:45 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env May 16, 2024 00:45 — with GitHub Actions Inactive

@Before
public void setup() throws IOException, ParseException {
ingestIrisData(irisIndex);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possible to merge this IT with RestMLTrainAndPredictIT, to save time in the ingesting irisIndex before and delete it after?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I prefer to have it in agent IT, as it is for agent framework testing. And it can be reused for other agent test cases.

Copy link
Collaborator

Choose a reason for hiding this comment

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

LGTM for this test. But I think we can delete RestMLTrainAndPredictIT, and move the tests with new names inside this agentIT to save IT time.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In my opinion we still need to separate the ITs by its category unless there is obvious concern due to maintainability. Consuming same index doesn't necessarily mean they need to be merged together.

@jngz-es jngz-es merged commit 99e75aa into opensearch-project:main May 17, 2024
14 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 17, 2024
Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 99e75aa)
yuye-aws pushed a commit to yuye-aws/ml-commons that referenced this pull request Jun 11, 2024
jngz-es added a commit that referenced this pull request Jun 11, 2024
* add IT flow agent with search index tool (#2448)

Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 99e75aa)

* fix import error (#2527)

Signed-off-by: yuye-aws <[email protected]>

* Fix:run spotless apply for branch Backport/backport 2448 to 2.x (#2529)

* fix import error

Signed-off-by: yuye-aws <[email protected]>

* spotless apply

Signed-off-by: yuye-aws <[email protected]>

---------

Signed-off-by: yuye-aws <[email protected]>

---------

Signed-off-by: yuye-aws <[email protected]>
Co-authored-by: Jing Zhang <[email protected]>
Co-authored-by: yuye-aws <[email protected]>
@jngz-es jngz-es deleted the agentIT branch June 11, 2024 21:18
opensearch-trigger-bot bot added a commit that referenced this pull request Oct 1, 2024
* add IT flow agent with search index tool (#2448)

Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 99e75aa)

* fix import error (#2527)

Signed-off-by: yuye-aws <[email protected]>

* Fix:run spotless apply for branch Backport/backport 2448 to 2.x (#2529)

* fix import error

Signed-off-by: yuye-aws <[email protected]>

* spotless apply

Signed-off-by: yuye-aws <[email protected]>

---------

Signed-off-by: yuye-aws <[email protected]>

---------

Signed-off-by: yuye-aws <[email protected]>
Co-authored-by: Jing Zhang <[email protected]>
Co-authored-by: yuye-aws <[email protected]>
(cherry picked from commit d6ec823)
dhrubo-os pushed a commit that referenced this pull request Oct 1, 2024
* add IT flow agent with search index tool (#2448)

Signed-off-by: Jing Zhang <[email protected]>
(cherry picked from commit 99e75aa)

* fix import error (#2527)

Signed-off-by: yuye-aws <[email protected]>

* Fix:run spotless apply for branch Backport/backport 2448 to 2.x (#2529)

* fix import error

Signed-off-by: yuye-aws <[email protected]>

* spotless apply

Signed-off-by: yuye-aws <[email protected]>

---------

Signed-off-by: yuye-aws <[email protected]>

---------

Signed-off-by: yuye-aws <[email protected]>
Co-authored-by: Jing Zhang <[email protected]>
Co-authored-by: yuye-aws <[email protected]>
(cherry picked from commit d6ec823)

Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
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