-
Notifications
You must be signed in to change notification settings - Fork 61
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
Adding specs for new _list/indices and _list/shards APIs #613
Conversation
Signed-off-by: Harsh Garg <[email protected]>
Spec Test Coverage Analysis
|
Looks good so far! Needs tests (will require updates for the 2.18 and 3.x builds we use in CI). |
Signed-off-by: Harsh Garg <[email protected]>
Changes AnalysisCommit SHA: ca3218f API ChangesSummary
ReportThe full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/11779538587/artifacts/2171382582 API Coverage
|
Signed-off-by: Harsh Garg <[email protected]>
@dblock Can you please take a look again? Added tests taking inspiration from existing _cat APIs. Verified the tests by running them against Amazon Opensearch domain. |
The staging 2.18 distribution seems to be missing the _list APIs, and as a result Spec test in CI are failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good!
The next version (2.18 and 3.0) distribution uses a specific SHA from https://hub.docker.com/r/opensearchstaging/opensearch/tags to remain stable. Update both to the latest ones that have the _list
API, and make sure tests pass.
Signed-off-by: Harsh Garg <[email protected]>
235eebf
to
f1d0e24
Compare
@dblock Thanks for reviewing. I have addressed previous set of comments, please do take a look again whenever you get a chance. Also, sorry for the delay in between the revisions, got occupied with other urgent items. On the tests, i have updated the staging distributions for 2.18 and 3.0 and the newly added list tests are passing. Not sure why some of the existing ones have started to fail. Trying to root cause. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 3.0 build gets generated even if not all plugins build with it, so looks like the update SHA doesn't have all the plugins? Try another more recent SHA until the tests all pass, possibly hunt down why the build is failing for the plugins that are failing (geospatial looks like).
Signed-off-by: Harsh Garg <[email protected]>
Got it, I had sorted the distributions via the newest and used the latest one already. Can this staging build be triggered manually to generate a latest distribution? |
Signed-off-by: Harsh Garg <[email protected]>
e7717b4
to
5cae9b9
Compare
You should try with a newer SHA. The builds happen every day. If the build is broken (other tests failing, please try another SHA or chase that down). |
Signed-off-by: Harsh Garg <[email protected]>
Signed-off-by: Harsh Garg <[email protected]>
Looks like the style checker is failing for good reason (use of indices instead of indexes, etc.). |
We have a namespace called |
The descriptive text was standardized as "indexes", but technically it's "indices" in APIs and such I believe. Let's open an issue in docs about potentially changing that, but for now the style checker is correct. |
Signed-off-by: Harsh Garg <[email protected]>
Signed-off-by: Harsh Garg <[email protected]>
Signed-off-by: Harsh Garg <[email protected]>
Signed-off-by: Harsh Garg <[email protected]>
Signed-off-by: Harsh Garg <[email protected]>
926e791
to
d3ded86
Compare
Test run against 3.0.0 build is the only failing task. Newly added spec tests though are passing, the existing plugin related tests are failing. |
Looks like we don't have a good 3.0 build since with all the plugins, hence the failures :( Undo the 3.0 hash change and add |
Signed-off-by: Harsh Garg <[email protected]>
Good work @gargharsh3134, thanks for hanging in here! |
Description
Adding specs for
_list/indices
and_list/shards
APIs, new paginated alternates of_cat/indices
and_cat/shards
. Both the new list APIs will continue to support all the params supported by existing cat API counterparts in addition to three new parameters which are specific to pagination (namelynext_token
,size
andorder
).Related Opensearch changes: opensearch-project/OpenSearch#14258 & opensearch-project/OpenSearch#14257
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
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.