Skip to content

Commit baad415

Browse files
authored
[Test] Fix grpc integration tests (#496)
## Problem A recent change submitted in PR #478 revealed some of the integration tests were not working as they should be working; some errors related to incorrect test setup were being masked. ## Solution Fix broken tests. ## Type of Change - [x] Bug fix (non-breaking change which fixes an issue)
2 parents 4223351 + 706351e commit baad415

File tree

40 files changed

+538
-160
lines changed

40 files changed

+538
-160
lines changed

.github/actions/cleanup-all/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
PINECONE_ADDITIONAL_HEADERS:
1313
description: 'Additional headers to send with the request'
1414
required: false
15-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
15+
default: '{"sdk-test-suite": "pinecone-python-client"}'
1616

1717
runs:
1818
using: 'composite'

.github/actions/create-index-legacy/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ inputs:
2626
PINECONE_ADDITIONAL_HEADERS:
2727
description: 'Additional headers to send with the request'
2828
required: false
29-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
29+
default: '{"sdk-test-suite": "pinecone-python-client"}'
3030

3131
runs:
3232
using: 'composite'

.github/actions/create-index/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inputs:
2828
PINECONE_ADDITIONAL_HEADERS:
2929
description: 'Additional headers to send with the request'
3030
required: false
31-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
31+
default: '{"sdk-test-suite": "pinecone-python-client"}'
3232

3333

3434
outputs:

.github/actions/delete-index/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
PINECONE_ADDITIONAL_HEADERS:
1212
description: 'Additional headers to send with the request'
1313
required: false
14-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
14+
default: '{"sdk-test-suite": "pinecone-python-client"}'
1515

1616

1717
runs:

.github/actions/test-data-asyncio/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ inputs:
1818
PINECONE_ADDITIONAL_HEADERS:
1919
description: 'Additional headers to send with the request'
2020
required: false
21-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
21+
default: '{"sdk-test-suite": "pinecone-python-client"}'
2222
python_version:
2323
description: 'The version of Python to use'
2424
required: false
@@ -42,7 +42,7 @@ runs:
4242
- name: Run data plane tests
4343
id: data-plane-asyncio-tests
4444
shell: bash
45-
run: poetry run pytest tests/integration/data_asyncio --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
45+
run: poetry run pytest tests/integration/data_asyncio --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
4646
env:
4747
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
4848
PINECONE_ADDITIONAL_HEADERS: ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}

.github/actions/test-data-plane/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inputs:
2121
PINECONE_ADDITIONAL_HEADERS:
2222
description: 'Additional headers to send with the request'
2323
required: false
24-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
24+
default: '{"sdk-test-suite": "pinecone-python-client"}'
2525
python_version:
2626
description: 'The version of Python to use'
2727
required: false
@@ -56,7 +56,7 @@ runs:
5656
- name: Run data plane tests
5757
id: data-plane-tests
5858
shell: bash
59-
run: poetry run pytest tests/integration/data --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
59+
run: poetry run pytest tests/integration/data --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
6060
env:
6161
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
6262
PINECONE_ADDITIONAL_HEADERS: ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}

.github/actions/test-dependency-asyncio-rest/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
PINECONE_ADDITIONAL_HEADERS:
99
description: 'Additional headers to send with the request'
1010
required: false
11-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
11+
default: '{"sdk-test-suite": "pinecone-python-client"}'
1212
index_name:
1313
description: 'The name of the index'
1414
required: true

.github/actions/test-dependency-grpc/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
PINECONE_ADDITIONAL_HEADERS:
99
description: 'Additional headers to send with the request'
1010
required: false
11-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
11+
default: '{"sdk-test-suite": "pinecone-python-client"}'
1212
index_name:
1313
description: 'The name of the index'
1414
required: true

.github/actions/test-dependency-rest/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
PINECONE_ADDITIONAL_HEADERS:
99
description: 'Additional headers to send with the request'
1010
required: false
11-
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
11+
default: '{"sdk-test-suite": "pinecone-python-client"}'
1212
index_name:
1313
description: 'The name of the index'
1414
required: true

.github/workflows/testing-dependency-asyncio.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
python_version: '${{ matrix.python_version }}'
2828
index_name: '${{ inputs.index_name }}'
2929
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
30-
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
30+
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
3131
aiohttp_version: '${{ matrix.aiohttp_version }}'

0 commit comments

Comments
 (0)