Adding specs for new _list/indices and _list/shards APIs#613
Adding specs for new _list/indices and _list/shards APIs#613dblock merged 14 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Harsh Garg <gkharsh@amazon.com>
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 <gkharsh@amazon.com>
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 <gkharsh@amazon.com>
|
@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. |
dblock
left a comment
There was a problem hiding this comment.
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 <gkharsh@amazon.com>
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. |
dblock
left a comment
There was a problem hiding this comment.
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 <gkharsh@amazon.com>
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 <gkharsh@amazon.com>
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 <gkharsh@amazon.com>
Signed-off-by: Harsh Garg <gkharsh@amazon.com>
|
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 <gkharsh@amazon.com>
Signed-off-by: Harsh Garg <gkharsh@amazon.com>
Signed-off-by: Harsh Garg <gkharsh@amazon.com>
Signed-off-by: Harsh Garg <gkharsh@amazon.com>
Signed-off-by: Harsh Garg <gkharsh@amazon.com>
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 <gkharsh@amazon.com>
|
Good work @gargharsh3134, thanks for hanging in here! |
Description
Adding specs for
_list/indicesand_list/shardsAPIs, new paginated alternates of_cat/indicesand_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,sizeandorder).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.