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

Make ci compatible with os2.x #153

Merged

Conversation

deepdatta
Copy link
Contributor

Description

Fix the integration tests to work with OpenSearch 2.x and add OpenSearch 2.1.0 in the CI test matrix.
Also update the OpenSearch 1.x version in CI from 1.2.1 to 1.3.4

Issues Resolved

#148

Check List

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

Don't run the parent_spec for opensearch >= 2.x
Update index_spec.rb and compressed_indexing_spec.rb to not expect the _type field in the doc for Opensearch >= 2.0.0

Signed-off-by: Deep Datta <deedatta@amazon.com>
Signed-off-by: Deep Datta <deedatta@amazon.com>
@deepdatta deepdatta requested a review from a team as a code owner August 8, 2022 21:31
…ent the version fetch from failing.

For some logstash version e.g. 7.17.1, 8.3.2 the images are missing python leading to the following comand in scripts/logstash-run.sh to fail
echo $(curl -s $SERVICE_URL | python -c "import sys, json; print(json.load(sys.stdin)['version']['number'])")
That is causing some integration test to fail which depends on the OpenSearch version number.

Signed-off-by: Deep Datta <deedatta@amazon.com>
scripts/Dockerfile Outdated Show resolved Hide resolved
@@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
logstash: [ "7.16.3", "7.17.1", "8.3.2" ]
opensearch: [ "1.2.1" ]
opensearch: [ "1.3.4", "2.1.0" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean we don't want the 1.2.1 version at all?

Copy link
Member

Choose a reason for hiding this comment

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

Other clients tests against all released version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, we want to run the tests only on the latest released versions of 1.x and 2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update CI to run against OpenSerach 2.0 release Update CI to use latest logstash and opensearch
4 participants