Skip to content

Commit cae0577

Browse files
authored
Bump client version to 2.0.0 (opensearch-project#167)
* Bump client version to 2.0.0 Signed-off-by: Vacha Shah <vachshah@amazon.com> * Adding test support for other unreleased branches Signed-off-by: Vacha Shah <vachshah@amazon.com>
1 parent 3944cc2 commit cae0577

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed
+12-12
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
name: Integration with Unreleased OpenSearch
22

3-
on:
4-
push:
5-
branches:
6-
- "main"
7-
pull_request:
8-
branches:
9-
- "main"
10-
11-
env:
12-
OPENSEARCH_VERSION: '2.0'
3+
on: [push, pull_request]
134

145
jobs:
156
test:
167
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
entry:
12+
- { opensearch_ref: '1.x' }
13+
- { opensearch_ref: '2.0' }
14+
- { opensearch_ref: '2.x' }
15+
- { opensearch_ref: 'main' }
1716
steps:
1817
- name: Checkout OpenSearch
1918
uses: actions/checkout@v2
2019
with:
2120
repository: opensearch-project/opensearch
22-
ref: ${{ env.OPENSEARCH_VERSION }}
21+
ref: ${{ matrix.entry.opensearch_ref }}
2322
path: opensearch
2423

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

3434
- name: Run Integration Test
35-
run: "./.ci/run-tests opensearch false ${{ env.OPENSEARCH_VERSION }}.0-SNAPSHOT"
35+
run: "./.ci/run-tests opensearch false SNAPSHOT"

.github/workflows/unified-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
stack_version: ['1.1.0']
12+
stack_version: ['2.0.0']
1313

1414
steps:
1515
- name: Checkout

COMPATIBILITY.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- [Compatibility with OpenSearch](#compatibility-with-opensearch)
2+
- [Upgrading](#upgrading)
23

34
## Compatibility with OpenSearch
45

@@ -15,4 +16,9 @@ The below matrix shows the compatibility of the [`opensearch-py`](https://pypi.o
1516
| 1.2.3 | 1.0.0 |
1617
| 1.2.4 | 1.0.0 |
1718
| 1.3.0 | 1.1.0 |
18-
| 1.3.1 | 1.1.0 |
19+
| 1.3.1 | 1.1.0 |
20+
| 2.0.0 | 2.0.0 |
21+
22+
## Upgrading
23+
24+
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.

opensearchpy/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
# specific language governing permissions and limitations
2525
# under the License.
2626

27-
__versionstr__ = "1.1.0"
27+
__versionstr__ = "2.0.0"

0 commit comments

Comments
 (0)