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 test for reindex #386

Open
ylwu-amzn opened this issue Oct 4, 2023 · 7 comments
Open

Add integration test for reindex #386

ylwu-amzn opened this issue Oct 4, 2023 · 7 comments
Labels
Bug Fixes Changes to a system or product designed to handle a programming bug/glitch good first issue Good for newcomers Maintenance Add support for new versions of OpenSearch/Dashboards from upstream

Comments

@ylwu-amzn
Copy link
Collaborator

ylwu-amzn commented Oct 4, 2023

We found some bug when reindex a non-KNN index to KNN index with neural-search ingest pipeline. We fixed this issue opensearch-project/ml-commons#1418.

It will be best if neural-search can have some integration test to cover reindex. So we can catch such issue earlier.

@heemin32
Copy link
Collaborator

heemin32 commented Oct 4, 2023

The bug was in ml-commons. Ideally, test should be in ml-common imo. We don't expect every ml-common dependency plugin to add reindex integ test to catch a bug in ml-common?

@ylwu-amzn
Copy link
Collaborator Author

ylwu-amzn commented Oct 4, 2023

It will be challenging for ml-commons , as run reindex needs Knn and neural-search plugins

The bug happens when running reindex with neural search ingest pipeline.

@heemin32
Copy link
Collaborator

heemin32 commented Oct 4, 2023

Understand the difficulty to have reindex test in ml-commons but in a long term, we should consider implementing some very basic ingest pipeline inside ml-commons for integ test purpose.

@navneet1v
Copy link
Collaborator

navneet1v commented Oct 7, 2023

@heemin32 I would beg to differ little bit here. As the ingest processor is defined in neural search plugin, ideally it is the job of the neural search plugin to validate all the cases in which that processor can be run. Now running the processor on re-index is another way to calling that processor. Hence the integration tests should be in neural search for re-index, because ML Commons cannot cover all the cases in which how the processor can be invoked.

Having said all the things above, one thing we definitely need from ML Commons Plugin or MLCommons client side, in terms of security how the apis can be used. This will ensure that its not the clients who are letting MLCommons know that something is broken.

@navneet1v navneet1v added Bug Fixes Changes to a system or product designed to handle a programming bug/glitch Maintenance Add support for new versions of OpenSearch/Dashboards from upstream and removed untriaged labels Oct 7, 2023
@heemin32
Copy link
Collaborator

heemin32 commented Oct 7, 2023

Having said all the things above, one thing we definitely need from ML Commons Plugin or MLCommons client side, in terms of security how the apis can be used. This will ensure that its not the clients who are letting MLCommons know that something is broken.

My point align with this comment. MLCommons should be able to find if something is broken without relying on integ test in other plugins. Neural search should have re-index integ test to increase test coverage but MLCommons also should have a test case to cover the bug regarding this PR opensearch-project/ml-commons#1418.

@navneet1v
Copy link
Collaborator

@heemin32

implementing some very basic ingest pipeline inside ml-commons for integ test purpose.

My comment was mainly around this.

@heemin32
Copy link
Collaborator

heemin32 commented Oct 9, 2023

@heemin32

implementing some very basic ingest pipeline inside ml-commons for integ test purpose.

My comment was mainly around this.

Just one of option to catch the bug inside ml-common itself.

@navneet1v navneet1v added the good first issue Good for newcomers label Oct 12, 2023
@navneet1v navneet1v mentioned this issue Oct 25, 2023
5 tasks
@zane-neo zane-neo mentioned this issue Feb 28, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fixes Changes to a system or product designed to handle a programming bug/glitch good first issue Good for newcomers Maintenance Add support for new versions of OpenSearch/Dashboards from upstream
Projects
Status: Backlog (Hot)
Development

No branches or pull requests

3 participants