Skip to content

Commit ea8d42d

Browse files
committed
Set POSTGRES_MAX_POOL in integration test
This attempts to avoid connection errors that arise when the DB doesn't have more available connections than what is being requested by the pool. This will be set to 1 in the workflow variables.
1 parent 997d244 commit ea8d42d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/python-integration-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ jobs:
137137
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
138138
PINECONE_API_KEY: ${{ secrets.PINECONE__APIKEY }}
139139
POSTGRES_CONNECTION_STRING: ${{secrets.POSTGRES__CONNECTIONSTR}}
140+
POSTGRES_MAX_POOL: ${{ vars.POSTGRES_MAX_POOL }}
140141
AZURE_AI_SEARCH_API_KEY: ${{secrets.AZURE_AI_SEARCH_API_KEY}}
141142
AZURE_AI_SEARCH_ENDPOINT: ${{secrets.AZURE_AI_SEARCH_ENDPOINT}}
142143
MONGODB_ATLAS_CONNECTION_STRING: ${{secrets.MONGODB_ATLAS_CONNECTION_STRING}}
@@ -264,6 +265,7 @@ jobs:
264265
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
265266
PINECONE_API_KEY: ${{ secrets.PINECONE__APIKEY }}
266267
POSTGRES_CONNECTION_STRING: ${{secrets.POSTGRES__CONNECTIONSTR}}
268+
POSTGRES_MAX_POOL: ${{ vars.POSTGRES_MAX_POOL }}
267269
AZURE_AI_SEARCH_API_KEY: ${{secrets.AZURE_AI_SEARCH_API_KEY}}
268270
AZURE_AI_SEARCH_ENDPOINT: ${{secrets.AZURE_AI_SEARCH_ENDPOINT}}
269271
MONGODB_ATLAS_CONNECTION_STRING: ${{secrets.MONGODB_ATLAS_CONNECTION_STRING}}

0 commit comments

Comments
 (0)