Skip to content

Commit af5c02c

Browse files
committed
HSEARCH-5361 Test against Elasticsearch 9.0.0 by default
1 parent fa32c2e commit af5c02c

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ stage('Configure') {
255255
new LocalElasticsearchBuildEnvironment(version: '8.14.3', condition: TestCondition.ON_DEMAND),
256256
new LocalElasticsearchBuildEnvironment(version: '8.15.4', condition: TestCondition.ON_DEMAND),
257257
new LocalElasticsearchBuildEnvironment(version: '8.16.1', condition: TestCondition.ON_DEMAND),
258-
new LocalElasticsearchBuildEnvironment(version: '8.17.5', condition: TestCondition.BEFORE_MERGE, isDefault: true),
258+
new LocalElasticsearchBuildEnvironment(version: '8.17.5', condition: TestCondition.AFTER_MERGE),
259+
new LocalElasticsearchBuildEnvironment(version: '9.0.0', condition: TestCondition.BEFORE_MERGE, isDefault: true),
259260
// IMPORTANT: Make sure to update the documentation for any newly supported Elasticsearch versions
260261
// See version.org.elasticsearch.compatible.expected.text
261262
// and version.org.elasticsearch.compatible.regularly-tested.text in POMs.

build/container/search-backend/elastic.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# * update `version.org.elasticsearch.latest` property in a POM file.
66
# * update the tags for 'elasticsearch-current' and 'elasticsearch-next' builds in ci/dependency-update/Jenkinsfile
77
#
8-
FROM docker.io/elastic/elasticsearch:8.17.4
8+
FROM docker.io/elastic/elasticsearch:9.0.0

build/parents/build/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<!-- The versions of Elasticsearch advertised as compatible with Hibernate Search -->
5858
<!-- Make sure to only mention tested versions here -->
5959
<!-- Make sure that 7.10 stays explicitly mentioned here, because that's the last open-source version -->
60-
<version.org.elasticsearch.compatible.regularly-tested.text>7.10, 7.17 or 8.17</version.org.elasticsearch.compatible.regularly-tested.text>
60+
<version.org.elasticsearch.compatible.regularly-tested.text>7.10, 7.17, 8.17 or 9.0</version.org.elasticsearch.compatible.regularly-tested.text>
6161
<!-- These are the versions same as above, but pointing only to the major part (used in compatibility section of ES backend documentation
6262
as versions that Hibernate Search is compatible with. -->
6363
<!-- NOTE: Adding new major versions would require to update the compatibility table in `backend-elasticsearch-compatibility` section of `backend-elasticsearch.adoc`. -->

ci/dependency-update/Jenkinsfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Map settings() {
5353
updateProperties: [],
5454
onlyRunTestDependingOn: ['hibernate-search-backend-elasticsearch'],
5555
// We want to use the snapshot version of an image from the ES registry since that's where they are publishing their snapshots.
56-
additionalMavenArgs: '-Dtest.lucene.skip=true -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=8.17.5-SNAPSHOT',
56+
additionalMavenArgs: '-Dtest.lucene.skip=true -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=9.0.1-SNAPSHOT',
5757
// This job won't change the versions in the pom. We are passing the latest Elasticsearch version through an additional maven argument `-D`
5858
skipSourceModifiedCheck: true
5959
]
@@ -65,22 +65,22 @@ Map settings() {
6565
updateProperties: [],
6666
onlyRunTestDependingOn: ['hibernate-search-backend-elasticsearch'],
6767
// We want to use the snapshot version of an image from the ES registry since that's where they are publishing their snapshots.
68-
additionalMavenArgs: '-Dtest.lucene.skip=true -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=8.18.0-SNAPSHOT',
69-
// This job won't change the versions in the pom. We are passing the latest Elasticsearch version through an additional maven argument `-D`
70-
skipSourceModifiedCheck: true
71-
]
72-
// Targets the next major release of the of Elasticsearch
73-
// (currently not published at all)
74-
case 'elasticsearch-future':
75-
return [
76-
// There are no properties to update in this case.
77-
updateProperties: [],
78-
onlyRunTestDependingOn: ['hibernate-search-backend-elasticsearch'],
79-
// We want to use the snapshot version of an image from the ES registry since that's where they are publishing their snapshots.
80-
additionalMavenArgs: '-Dtest.lucene.skip=true -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=9.0.0-SNAPSHOT',
68+
additionalMavenArgs: '-Dtest.lucene.skip=true -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=9.1.0-SNAPSHOT',
8169
// This job won't change the versions in the pom. We are passing the latest Elasticsearch version through an additional maven argument `-D`
8270
skipSourceModifiedCheck: true
8371
]
72+
// // Targets the next major release of the of Elasticsearch
73+
// // (currently not published at all)
74+
// case 'elasticsearch-future':
75+
// return [
76+
// // There are no properties to update in this case.
77+
// updateProperties: [],
78+
// onlyRunTestDependingOn: ['hibernate-search-backend-elasticsearch'],
79+
// // We want to use the snapshot version of an image from the ES registry since that's where they are publishing their snapshots.
80+
// additionalMavenArgs: '-Dtest.lucene.skip=true -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=10.0.0-SNAPSHOT',
81+
// // This job won't change the versions in the pom. We are passing the latest Elasticsearch version through an additional maven argument `-D`
82+
// skipSourceModifiedCheck: true
83+
// ]
8484
default:
8585
return [:]
8686
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385

386386
<!-- Container images for various integration tests -->
387387
<!-- The latest version of Elasticsearch tested against by default -->
388-
<version.org.elasticsearch.latest>8.17.4</version.org.elasticsearch.latest>
388+
<version.org.elasticsearch.latest>9.0.0</version.org.elasticsearch.latest>
389389
<test.elasticsearch.version></test.elasticsearch.version>
390390
<test.elasticsearch.distribution>elastic</test.elasticsearch.distribution>
391391

0 commit comments

Comments
 (0)