Browse Source

Disable `VectorSearch` tests on CI.

Running the VectorSearch tests is flakey on our CI as the container sometimes doesn't start.

Closes #5119
4.5.x
Mark Paluch 1 week ago
parent
commit
9b0e9711ef
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 6
      Jenkinsfile
  2. 21
      spring-data-mongodb/pom.xml

6
Jenkinsfile vendored

@ -102,7 +102,7 @@ pipeline { @@ -102,7 +102,7 @@ pipeline {
docker.image("springci/spring-data-with-mongodb-6.0:${p['java.main.tag']}").inside(p['docker.java.inside.docker']) {
sh 'ci/start-replica.sh'
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' +
"./mvnw -s settings.xml -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-mongodb clean dependency:list test -Dsort -U -B -DexcludedGroups=VectorSearch"
"./mvnw -s settings.xml -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-mongodb clean dependency:list test -Dsort -U -B -Pno-vector-search-tests"
}
}
}
@ -133,7 +133,7 @@ pipeline { @@ -133,7 +133,7 @@ pipeline {
docker.image("springci/spring-data-with-mongodb-7.0:${p['java.main.tag']}").inside(p['docker.java.inside.docker']) {
sh 'ci/start-replica.sh'
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' +
"./mvnw -s settings.xml -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-mongodb clean dependency:list test -Dsort -U -B -DexcludedGroups=VectorSearch"
"./mvnw -s settings.xml -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-mongodb clean dependency:list test -Dsort -U -B -Pno-vector-search-tests"
}
}
}
@ -155,7 +155,7 @@ pipeline { @@ -155,7 +155,7 @@ pipeline {
docker.image("springci/spring-data-with-mongodb-8.0:${p['java.next.tag']}").inside(p['docker.java.inside.docker']) {
sh 'ci/start-replica.sh'
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' +
"./mvnw -s settings.xml -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-mongodb clean dependency:list test -Dsort -U -B -DexcludedGroups=VectorSearch"
"./mvnw -s settings.xml -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-mongodb clean dependency:list test -Dsort -U -B -Pno-vector-search-tests"
}
}
}

21
spring-data-mongodb/pom.xml

@ -359,6 +359,26 @@ @@ -359,6 +359,26 @@
</dependencies>
<profiles>
<profile>
<id>no-vector-search-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes combine.children="append">
<exclude>**/VectorIndexIntegrationTests.java</exclude>
<exclude>**/VectorSearchTests.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
@ -432,4 +452,5 @@ @@ -432,4 +452,5 @@
</plugins>
</build>
</project>

Loading…
Cancel
Save