Skip to content

Commit

Permalink
Bump client version to 2.0.0 (#167)
Browse files Browse the repository at this point in the history
* Bump client version to 2.0.0

Signed-off-by: Vacha Shah <[email protected]>

* Adding test support for other unreleased branches

Signed-off-by: Vacha Shah <[email protected]>
  • Loading branch information
VachaShah authored May 26, 2022
1 parent 3944cc2 commit cae0577
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/integration-unreleased.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: Integration with Unreleased OpenSearch

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"

env:
OPENSEARCH_VERSION: '2.0'
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
entry:
- { opensearch_ref: '1.x' }
- { opensearch_ref: '2.0' }
- { opensearch_ref: '2.x' }
- { opensearch_ref: 'main' }
steps:
- name: Checkout OpenSearch
uses: actions/checkout@v2
with:
repository: opensearch-project/opensearch
ref: ${{ env.OPENSEARCH_VERSION }}
ref: ${{ matrix.entry.opensearch_ref }}
path: opensearch

# This step builds the docker image tagged as opensearch:test. It will be further used in /ci/run-tests to test against unreleased OpenSearch.
Expand All @@ -28,8 +27,9 @@ jobs:
run: |
cd opensearch
./gradlew assemble
- name: Checkout Python Client
uses: actions/checkout@v2

- name: Run Integration Test
run: "./.ci/run-tests opensearch false ${{ env.OPENSEARCH_VERSION }}.0-SNAPSHOT"
run: "./.ci/run-tests opensearch false SNAPSHOT"
2 changes: 1 addition & 1 deletion .github/workflows/unified-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
stack_version: ['1.1.0']
stack_version: ['2.0.0']

steps:
- name: Checkout
Expand Down
8 changes: 7 additions & 1 deletion COMPATIBILITY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- [Compatibility with OpenSearch](#compatibility-with-opensearch)
- [Upgrading](#upgrading)

## Compatibility with OpenSearch

Expand All @@ -15,4 +16,9 @@ The below matrix shows the compatibility of the [`opensearch-py`](https://pypi.o
| 1.2.3 | 1.0.0 |
| 1.2.4 | 1.0.0 |
| 1.3.0 | 1.1.0 |
| 1.3.1 | 1.1.0 |
| 1.3.1 | 1.1.0 |
| 2.0.0 | 2.0.0 |

## Upgrading

Major versions of OpenSearch introduce breaking changes that require careful upgrades of the client. While `opensearch-py-client` 2.0.0 works against OpenSearch 1.3.1, certain deprecated features removed in OpenSearch 2.0 have also been removed from the client. Please refer to the [OpenSearch documentation](https://opensearch.org/docs/latest/clients/index/) for more information.
2 changes: 1 addition & 1 deletion opensearchpy/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
# specific language governing permissions and limitations
# under the License.

__versionstr__ = "1.1.0"
__versionstr__ = "2.0.0"

0 comments on commit cae0577

Please sign in to comment.