Allow for up to 3 retries when running an integration test
This commit is contained in:
2
.github/workflows/continuous-integration.yml
vendored
2
.github/workflows/continuous-integration.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
SPRING_AI_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
|
||||
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
|
||||
run: mvn -s settings.xml -Pintegration-tests --batch-mode --update-snapshots deploy
|
||||
run: mvn -s settings.xml -Pintegration-tests -Dfailsafe.rerunFailingTestsCount=3 --batch-mode --update-snapshots deploy
|
||||
|
||||
- name: Generate Java docs
|
||||
run: mvn javadoc:aggregate
|
||||
|
||||
@@ -216,6 +216,11 @@ Set API key environment variables for OpenAI and Azure OpenAI before running.
|
||||
./mvnw clean verify -Pintegration-tests
|
||||
```
|
||||
|
||||
To run a specific integration test allowing for up to two attempts to succeed. This is useful when a hosted service is not reliable or times out.
|
||||
```shell
|
||||
./mvnw -pl vector-stores/spring-ai-pgvector-store -Pintegration-tests -Dfailsafe.rerunFailingTestsCount=2 -Dit.test=PgVectorStoreIT verify
|
||||
|
||||
```
|
||||
To build the docs
|
||||
```shell
|
||||
./mvnw -pl spring-ai-docs antora
|
||||
|
||||
Reference in New Issue
Block a user