@@ -21,25 +21,14 @@ permissions: {}
2121
2222jobs :
2323 rest_sync :
24- name : rest ${{ matrix.python_version }} ${{ matrix.test_suite }}
24+ name : rest ${{ matrix.python_version }} shard ${{ matrix.shard }}/${{ matrix.total_shards }}
2525 runs-on : ubuntu-latest
2626 strategy :
2727 fail-fast : false
2828 matrix :
2929 python_version : ${{ fromJson(inputs.python_versions_json) }}
30- test_suite : [
31- # Quick tests we can run together
32- ' tests/integration/rest_sync/admin tests/integration/rest_sync/inference tests/integration/rest_sync/plugins' ,
33-
34- # Control plane tests
35- ' tests/integration/rest_sync/db/control/pod' ,
36- ' tests/integration/rest_sync/db/control/serverless' ,
37- ' tests/integration/rest_sync/db/control/resources/index' ,
38- # 'tests/integration/rest_sync/db/control/resources/collections', # These tests are slow, so disable for now
39-
40- # Data plane tests
41- ' tests/integration/rest_sync/db/data' ,
42- ]
30+ shard : [1, 2, 3, 4, 5]
31+ total_shards : [5]
4332 steps :
4433 - uses : actions/checkout@v4
4534 - name : Setup Poetry
@@ -52,24 +41,23 @@ jobs:
5241 with :
5342 encrypted_project_api_key : ' ${{ inputs.encrypted_project_api_key }}'
5443 encryption_key : ' ${{ secrets.FERNET_ENCRYPTION_KEY }}'
55- test_suite : ' ${{ matrix.test_suite }}'
44+ test_suite : ' tests/integration/rest_sync'
45+ pytest_splits : ' ${{ matrix.total_shards }}'
46+ pytest_group : ' ${{ matrix.shard }}'
5647 PINECONE_CLIENT_ID : ${{ secrets.PINECONE_SERVICE_ACCOUNT_CLIENT_ID }}
5748 PINECONE_CLIENT_SECRET : ${{ secrets.PINECONE_SERVICE_ACCOUNT_CLIENT_SECRET }}
5849 INDEX_HOST_DENSE : ' ${{ inputs.dense_index_host }}'
5950 INDEX_HOST_SPARSE : ' ${{ inputs.sparse_index_host }}'
6051
6152 rest_asyncio :
62- name : rest_asyncio ${{ matrix.python_version }} ${{ matrix.test_suite }}
53+ name : rest_asyncio ${{ matrix.python_version }} shard ${{ matrix.shard }}/${{ matrix.total_shards }}
6354 runs-on : ubuntu-latest
6455 strategy :
6556 fail-fast : false
6657 matrix :
6758 python_version : ${{ fromJson(inputs.python_versions_json) }}
68- test_suite : [
69- ' tests/integration/rest_asyncio/inference' ,
70- ' tests/integration/rest_asyncio/db/data' ,
71- ' tests/integration/rest_asyncio/db/control' ,
72- ]
59+ shard : [1, 2, 3, 4, 5]
60+ total_shards : [5]
7361 steps :
7462 - uses : actions/checkout@v4
7563 - name : Setup Poetry
@@ -82,20 +70,21 @@ jobs:
8270 with :
8371 encrypted_project_api_key : ' ${{ inputs.encrypted_project_api_key }}'
8472 encryption_key : ' ${{ secrets.FERNET_ENCRYPTION_KEY }}'
85- test_suite : ' ${{ matrix.test_suite }}'
73+ test_suite : ' tests/integration/rest_asyncio'
74+ pytest_splits : ' ${{ matrix.total_shards }}'
75+ pytest_group : ' ${{ matrix.shard }}'
8676 PINECONE_CLIENT_ID : ${{ secrets.PINECONE_SERVICE_ACCOUNT_CLIENT_ID }}
8777 PINECONE_CLIENT_SECRET : ${{ secrets.PINECONE_SERVICE_ACCOUNT_CLIENT_SECRET }}
8878 INDEX_HOST_DENSE : ' ${{ inputs.dense_index_host }}'
8979 INDEX_HOST_SPARSE : ' ${{ inputs.sparse_index_host }}'
9080
9181 grpc :
92- name : grpc ${{ matrix.python_version }} ${{ matrix.test_suite }}
82+ name : grpc ${{ matrix.python_version }}
9383 runs-on : ubuntu-latest
9484 strategy :
9585 fail-fast : false
9686 matrix :
9787 python_version : ${{ fromJson(inputs.python_versions_json) }}
98- test_suite : ['tests/integration/grpc']
9988 steps :
10089 - uses : actions/checkout@v4
10190 - name : Setup Poetry
10897 with :
10998 encrypted_project_api_key : ' ${{ inputs.encrypted_project_api_key }}'
11099 encryption_key : ' ${{ secrets.FERNET_ENCRYPTION_KEY }}'
111- test_suite : ' ${{ matrix.test_suite }}'
100+ test_suite : ' tests/integration/grpc tests/integration/rest_sync/db/data'
101+ use_grpc : ' true'
112102 PINECONE_CLIENT_ID : ${{ secrets.PINECONE_SERVICE_ACCOUNT_CLIENT_ID }}
113103 PINECONE_CLIENT_SECRET : ${{ secrets.PINECONE_SERVICE_ACCOUNT_CLIENT_SECRET }}
114104 INDEX_HOST_DENSE : ' ${{ inputs.dense_index_host }}'
0 commit comments