Skip to content

Commit

Permalink
HSEARCH-5160 Add an option to test against future Lucene versions (e.…
Browse files Browse the repository at this point in the history
…g. 11)
  • Loading branch information
marko-bekhta committed Dec 16, 2024
1 parent 85f03bc commit 7854cae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ci/dependency-update/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ Map settings() {
]
case 'lucene10':
return [
updateProperties: ['version.org.apache.lucene.next'],
updateProperties: ['version.org.apache.lucene.next.updatable'],
onlyRunTestDependingOn: ['hibernate-search-backend-lucene-next'],
additionalMavenArgs: '-Dtest.elasticsearch.skip=true -pl :hibernate-search-backend-lucene-next,:hibernate-search-util-internal-integrationtest-backend-lucene-next'
]
case 'lucene-future':
return [
updateProperties: ['version.org.apache.lucene.next.updatable'],
onlyRunTestDependingOn: ['hibernate-search-backend-lucene-next'],
additionalMavenArgs: '-Dtest.elasticsearch.skip=true -pl :hibernate-search-backend-lucene-next,:hibernate-search-util-internal-integrationtest-backend-lucene-next'
]
Expand Down Expand Up @@ -137,7 +143,7 @@ pipeline {
parameters {
// choice parameter doesn't have a default, but the first value should be treated as a default, if it wasn't specified manually.
// Make sure tp update axis and settings() when adding new choice parameter.
choice(name: 'UPDATE_JOB', choices: ['all', 'orm7', 'lucene9.12','lucene9', 'lucene10', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'], description: 'Select which update jobs to run. `All` will include all configured update jobs.')
choice(name: 'UPDATE_JOB', choices: ['all', 'orm7', 'lucene9.12','lucene9', 'lucene10', 'lucene-future', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'], description: 'Select which update jobs to run. `All` will include all configured update jobs.')
string(name: 'ORM_REPOSITORY', defaultValue: '', description: 'Git URL to Hibernate ORM repository. If provided, Hibernate ORM will be built locally. Works only in pair with ORM_BRANCH. Provide an http repository URL rather than an ssh one.')
string(name: 'ORM_BRANCH', defaultValue: '', description: 'Hibernate ORM branch to build from. If provided, Hibernate ORM will be built locally. Works only in pair with ORM_REPOSITORY. Either a pull request ID or a branch name should be provided, but not both at the same time. Use branch if you want to build from a fork repository.')
string(name: 'ORM_PULL_REQUEST_ID', defaultValue: '', description: 'Hibernate ORM pull request id to build from. If provided, Hibernate ORM will be built locally. Works only in pair with ORM_REPOSITORY. Either a pull request ID or a branch name should be provided, but not both at the same time.')
Expand Down Expand Up @@ -235,7 +241,7 @@ pipeline {
name 'DEPENDENCY_UPDATE_NAME'
// NOTE: Remember to update the settings() method above when changing this.
// And also add a new choice parameter in the parameters {} section of the pipeline
values 'orm7', 'lucene9.12','lucene9', 'lucene10', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'
values 'orm7', 'lucene9.12','lucene9', 'lucene10', 'lucene-future', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'
}
}
stages {
Expand Down
10 changes: 10 additions & 0 deletions ci/dependency-update/rules-lucene-future.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<ruleset comparisonMethod="maven"
xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
<ignoreVersions>
<!-- Restrict allowed versions to a particular major/range-of-minors, because forbidding major/minor upgrades
in the version-maven-plugin configuration doesn't always work for some reason. -->
<ignoreVersion type="regex">(?!\d\d\.\d+\.).*</ignoreVersion>
</ignoreVersions>
</ruleset>

0 comments on commit 7854cae

Please sign in to comment.