-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP on grpc asyncio and query_namespaces method
This commit squashes several previous commits on this branch to address a GitGuardian security check that continues to fail because an early commit contained a leaked development key.
- Loading branch information
Showing
28 changed files
with
2,141 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 'Test Data Plane' | ||
description: 'Runs tests on the Pinecone data plane' | ||
|
||
inputs: | ||
metric: | ||
description: 'The metric of the index' | ||
required: true | ||
dimension: | ||
description: 'The dimension of the index' | ||
required: true | ||
host: | ||
description: 'The host of the index' | ||
required: true | ||
use_grpc: | ||
description: 'Whether to use gRPC or REST' | ||
required: true | ||
freshness_timeout_seconds: | ||
description: 'The number of seconds to wait for the index to become fresh' | ||
required: false | ||
default: '60' | ||
PINECONE_API_KEY: | ||
description: 'The Pinecone API key' | ||
required: true | ||
|
||
outputs: | ||
index_name: | ||
description: 'The name of the index, including randomized suffix' | ||
value: ${{ steps.create-index.outputs.index_name }} | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python_version }} | ||
|
||
- name: Setup Poetry | ||
uses: ./.github/actions/setup-poetry | ||
with: | ||
include_grpc: ${{ inputs.use_grpc }} | ||
include_dev: 'true' | ||
|
||
- name: Run data plane tests | ||
id: data-plane-tests | ||
shell: bash | ||
run: poetry run pytest tests/integration/data_asyncio | ||
env: | ||
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }} | ||
USE_GRPC: ${{ inputs.use_grpc }} | ||
METRIC: ${{ inputs.metric }} | ||
INDEX_HOST: ${{ inputs.host }} | ||
DIMENSION: ${{ inputs.dimension }} | ||
SPEC: ${{ inputs.spec }} | ||
FRESHNESS_TIMEOUT_SECONDS: ${{ inputs.freshness_timeout_seconds }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.