Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/cleanup-all/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'

runs:
using: 'composite'
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/create-index-legacy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'

runs:
using: 'composite'
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/create-index/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'


outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/delete-index/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'


runs:
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test-data-asyncio/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'
python_version:
description: 'The version of Python to use'
required: false
Expand All @@ -42,7 +42,7 @@ runs:
- name: Run data plane tests
id: data-plane-asyncio-tests
shell: bash
run: poetry run pytest tests/integration/data_asyncio --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest tests/integration/data_asyncio --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
env:
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
PINECONE_ADDITIONAL_HEADERS: ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test-data-plane/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'
python_version:
description: 'The version of Python to use'
required: false
Expand Down Expand Up @@ -56,7 +56,7 @@ runs:
- name: Run data plane tests
id: data-plane-tests
shell: bash
run: poetry run pytest tests/integration/data --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest tests/integration/data --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
env:
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
PINECONE_ADDITIONAL_HEADERS: ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-dependency-asyncio-rest/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'
index_name:
description: 'The name of the index'
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-dependency-grpc/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'
index_name:
description: 'The name of the index'
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-dependency-rest/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
default: '{"sdk-test-suite": "pinecone-python-client"}'
index_name:
description: 'The name of the index'
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing-dependency-asyncio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
python_version: '${{ matrix.python_version }}'
index_name: '${{ inputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
aiohttp_version: '${{ matrix.aiohttp_version }}'
6 changes: 3 additions & 3 deletions .github/workflows/testing-dependency-grpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
python_version: '${{ matrix.python_version }}'
index_name: '${{ inputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
grpcio_version: '${{ matrix.grpcio_version }}'
lz4_version: '${{ matrix.lz4_version }}'
protobuf_version: '${{ matrix.protobuf_version }}'
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
python_version: '${{ matrix.python_version }}'
index_name: '${{ inputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
grpcio_version: '${{ matrix.grpcio_version }}'
lz4_version: '${{ matrix.lz4_version }}'
protobuf_version: '${{ matrix.protobuf_version }}'
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
python_version: '${{ matrix.python_version }}'
index_name: '${{ inputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
grpcio_version: '${{ matrix.grpcio_version }}'
lz4_version: '${{ matrix.lz4_version }}'
protobuf_version: '${{ matrix.protobuf_version }}'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/testing-dependency-rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python_version: '${{ matrix.python_version }}'
index_name: '${{ inputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
urllib3_version: '${{ matrix.urllib3_version }}'


Expand All @@ -54,7 +54,7 @@ jobs:
python_version: '${{ matrix.python_version }}'
index_name: '${{ inputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
urllib3_version: '${{ matrix.urllib3_version }}'

dependency-matrix-rest-313:
Expand All @@ -77,5 +77,5 @@ jobs:
python_version: '${{ matrix.python_version }}'
index_name: '${{ inputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
urllib3_version: '${{ matrix.urllib3_version }}'
4 changes: 2 additions & 2 deletions .github/workflows/testing-dependency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name_prefix: depstest-${{ github.run_number }}
dimension: 2
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'

dependency-test-rest:
uses: './.github/workflows/testing-dependency-rest.yaml'
Expand Down Expand Up @@ -56,4 +56,4 @@ jobs:
with:
index_name: '${{ needs.deps-test-setup.outputs.index_name }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
8 changes: 4 additions & 4 deletions .github/workflows/testing-integration-asyncio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Run data plane tests
id: data-plane-asyncio-tests
shell: bash
run: poetry run pytest tests/integration/data_asyncio --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest tests/integration/data_asyncio --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'

db-control-asyncio:
name: db_control asyncio
Expand All @@ -52,7 +52,7 @@ jobs:
include_asyncio: true
include_dev: true
- name: 'db_control asyncio'
run: poetry run pytest tests/integration/control_asyncio/*.py --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest tests/integration/control_asyncio/*.py --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
env:
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
14 changes: 7 additions & 7 deletions .github/workflows/testing-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
env:
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -51,10 +51,10 @@ jobs:
with:
include_asyncio: true
- name: 'Run integration tests'
run: poetry run pytest tests/integration/inference --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest tests/integration/inference --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
env:
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'

plugins:
name: Plugin installation
Expand All @@ -76,7 +76,7 @@ jobs:
run: poetry run pytest tests/integration/plugins --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
env:
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'



Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
metric: 'cosine'
spec: '{ "serverless": { "region": "us-west-2", "cloud": "aws" }}'
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
freshness_timeout_seconds: 600
skip_weird_id_tests: 'true'

Expand Down Expand Up @@ -169,9 +169,9 @@ jobs:
- name: Setup Poetry
uses: ./.github/actions/setup-poetry
- name: 'Run integration tests (REST)'
run: poetry run pytest tests/integration/control/serverless --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest tests/integration/control/serverless --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
env:
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
SERVERLESS_CLOUD: '${{ matrix.testConfig.serverless.cloud }}'
SERVERLESS_REGION: '${{ matrix.testConfig.serverless.region }}'
4 changes: 2 additions & 2 deletions .github/workflows/testing-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
include_asyncio: true

- name: Run unit tests (REST)
run: poetry run pytest --cov=pinecone --timeout=120 tests/unit --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest --cov=pinecone --timeout=120 tests/unit --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
- name: Run unit tests (GRPC)
if: ${{ matrix.use_grpc == true }}
run: poetry run pytest --cov=pinecone/grpc --timeout=120 tests/unit_grpc --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
run: poetry run pytest --cov=pinecone/grpc --timeout=120 tests/unit_grpc --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
2 changes: 1 addition & 1 deletion pinecone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"QueryResponse": ("pinecone.db_data.models", "QueryResponse"),
"UpsertResponse": ("pinecone.db_data.models", "UpsertResponse"),
"UpdateRequest": ("pinecone.db_data.models", "UpdateRequest"),
"ImportErrorMode": ("pinecone.core.openapi.db_data.models", "ImportErrorMode"),
"ImportErrorMode": ("pinecone.db_data.resources.sync.bulk_import", "ImportErrorMode"),
"VectorDictionaryMissingKeysError": (
"pinecone.db_data.errors",
"VectorDictionaryMissingKeysError",
Expand Down
2 changes: 1 addition & 1 deletion pinecone/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ from pinecone.db_data.models import (
UpsertResponse,
UpdateRequest,
)
from pinecone.core.openapi.db_data.models import ImportErrorMode
from pinecone.db_data.resources.sync.bulk_import import ImportErrorMode
from pinecone.db_data.errors import (
VectorDictionaryMissingKeysError,
VectorDictionaryExcessKeysError,
Expand Down
2 changes: 0 additions & 2 deletions pinecone/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import warnings

from pinecone.db_data import *

warnings.warn(
"The module at `pinecone.data` has moved to `pinecone.db_data`. "
"Please update your imports. "
Expand Down
7 changes: 4 additions & 3 deletions pinecone/data/features/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import warnings

from pinecone.db_data.features import *
from .bulk_imports import *
from .inference import *


warnings.warn(
"The module at `pinecone.data.features` has moved to `pinecone.db_data.features`. "
"Please update your imports. "
"The module at `pinecone.data.features` has been removed. Code has been refactored and integrated into other parts of the client. "
"This warning will become an error in a future version of the Pinecone Python SDK.",
DeprecationWarning,
)
5 changes: 4 additions & 1 deletion pinecone/data/features/bulk_imports/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import warnings

from pinecone.db_data.features.bulk_import import *
from pinecone.db_data.resources.asyncio.bulk_import_asyncio import *
from pinecone.db_data.resources.sync.bulk_import import *
from pinecone.db_data.resources.sync.bulk_import_request_factory import *


warnings.warn(
"The module at `pinecone.data.features.bulk_import` has moved to `pinecone.db_data.features.bulk_import`. "
Expand Down
2 changes: 1 addition & 1 deletion pinecone/db_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
MetadataDictionaryExpectedError,
)

from .features.bulk_import import ImportErrorMode
from .resources.sync.bulk_import import ImportErrorMode


import warnings
Expand Down
3 changes: 0 additions & 3 deletions pinecone/db_data/features/bulk_import/__init__.py

This file was deleted.

Loading