Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
a8015bd
wip
coutoPL Jun 27, 2025
9edfe40
wip
coutoPL Jun 27, 2025
bd2d730
refactoring
coutoPL Jun 30, 2025
ef34546
wip
coutoPL Jun 30, 2025
3252b49
wip
coutoPL Jul 1, 2025
f9f9a5a
wip
coutoPL Jul 2, 2025
e5d510f
dropped support for not used internal api
coutoPL Jul 3, 2025
7f6649a
refactoring
coutoPL Jul 3, 2025
1039fd1
refactoring
coutoPL Jul 4, 2025
0b54376
refactoring
coutoPL Jul 8, 2025
35ba449
refactoring
coutoPL Jul 8, 2025
36dfbcb
refactoring
coutoPL Jul 10, 2025
b92a88e
refactoring
coutoPL Jul 11, 2025
55a31f7
refactoring
coutoPL Jul 11, 2025
9a80d9f
refactoring
coutoPL Jul 11, 2025
1261b0b
refactoring
coutoPL Jul 11, 2025
3a74a10
refactoring
coutoPL Jul 11, 2025
16615b9
refactoring
coutoPL Jul 14, 2025
34cd968
refactoring
coutoPL Jul 15, 2025
33b0180
refactoring
coutoPL Jul 15, 2025
a36e849
refactoring
coutoPL Jul 15, 2025
5aded82
wip
coutoPL Jul 29, 2025
b37ae1b
wip
coutoPL Aug 13, 2025
9e79f6c
wip
coutoPL Aug 29, 2025
ded3920
wip
coutoPL Sep 2, 2025
13f0d52
wip
coutoPL Sep 2, 2025
962a12f
wip
coutoPL Sep 2, 2025
a80805c
wip
coutoPL Sep 2, 2025
86026b3
wip
coutoPL Sep 4, 2025
f5595a7
wip
coutoPL Sep 5, 2025
7c90dbf
wip
coutoPL Sep 6, 2025
c78b1e3
wip
coutoPL Sep 9, 2025
9f6b4ce
wip
coutoPL Sep 9, 2025
3752626
wip
coutoPL Sep 12, 2025
8ebbe25
refactoring
coutoPL Oct 1, 2025
2cfd662
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Oct 1, 2025
2bba1df
refactoring
coutoPL Oct 1, 2025
e1757ef
refactoring
coutoPL Oct 1, 2025
b968457
porting solution to other modules
coutoPL Oct 2, 2025
5a56381
wip
coutoPL Oct 2, 2025
4aee18e
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Oct 4, 2025
d2cd56f
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Oct 7, 2025
0da6b00
wip
coutoPL Oct 8, 2025
6b26b33
wi
coutoPL Oct 8, 2025
66265a5
fixed messages
coutoPL Oct 8, 2025
8b24001
wip
coutoPL Oct 9, 2025
6a85626
revert
coutoPL Oct 9, 2025
b54d642
test fix
coutoPL Oct 9, 2025
6658dee
test fix
coutoPL Oct 9, 2025
3431a06
fix
coutoPL Oct 10, 2025
ee5cb97
wip
coutoPL Oct 10, 2025
5496593
fix
coutoPL Oct 10, 2025
033d524
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Oct 16, 2025
33004df
renaming
coutoPL Oct 16, 2025
bccb198
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Oct 21, 2025
7617c82
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Oct 24, 2025
3d74cfb
wip
coutoPL Oct 25, 2025
ed39027
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Nov 4, 2025
5e47b86
fixing problem with resolving indices in ROR for ES 9.1.7
coutoPL Nov 28, 2025
ef0d226
bump version
coutoPL Nov 28, 2025
691fe2f
wip
coutoPL Nov 28, 2025
ea02f7e
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Dec 4, 2025
763ffc6
bump pre version
coutoPL Dec 4, 2025
05b93c9
Merge branch 'unit_test_fix' into improvement/RORDEV-1520
coutoPL Dec 4, 2025
aa57a06
wip
coutoPL Dec 4, 2025
8c1e017
test fix
coutoPL Dec 4, 2025
ea07b67
test fix
coutoPL Dec 4, 2025
6954bac
test fix
coutoPL Dec 4, 2025
cb0d4eb
test fix
coutoPL Dec 4, 2025
a41a7d8
wip
coutoPL Dec 5, 2025
c90077a
Merge remote-tracking branch 'origin/develop' into improvement/RORDEV…
coutoPL Dec 5, 2025
ecfcf39
fix
coutoPL Dec 5, 2025
f9c1119
fix
coutoPL Dec 5, 2025
b8bf1b3
wip
coutoPL Dec 8, 2025
4e196a4
wip
coutoPL Dec 8, 2025
095c54e
temp
coutoPL Dec 9, 2025
10e5107
fix
coutoPL Dec 9, 2025
4d3898c
wip
coutoPL Dec 9, 2025
05005d4
wip
coutoPL Dec 9, 2025
c544933
improvements
coutoPL Dec 9, 2025
12c8590
improvements
coutoPL Dec 9, 2025
ba32086
improvements
coutoPL Dec 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
211 changes: 197 additions & 14 deletions azure-pipelines.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ tasks.withType(ScalaCompile).configureEach {

tasks.withType(Zip).configureEach { task ->
task.doLast {
ant.checksum file: it.archivePath, algorithm: 'sha1'
ant.checksum file: task.archiveFile.get().asFile, algorithm: 'sha1'
}
}

Expand All @@ -102,6 +102,7 @@ tasks.register('generateVersionsFile') {
tasks.register('toJar', Jar) {
dependsOn generateVersionsFile
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName = pluginName
from sourceSets.main.getOutput()
}

Expand Down
124 changes: 54 additions & 70 deletions ci/run-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,32 @@ source "$(dirname "$0")/ci-lib.sh"

trap 'echo "Termination signal received. Exiting..."; exit 1' SIGTERM SIGINT

echo ">>> ($0) RUNNING CONTINUOUS INTEGRATION"

export TRAVIS_BRANCH=$(git symbolic-ref --short -q HEAD)

if [ "$BUILD_SOURCEBRANCHNAME" ]; then
export TRAVIS=true
export TRAVIS_BRANCH=$BUILD_SOURCEBRANCHNAME
fi
echo ">> FOUND BUILD PARAMETERS: task? $ROR_TASK; is CI? $TRAVIS; branch? $TRAVIS_BRANCH"
echo ">>> ($0) RUNNING CONTINUOUS INTEGRATION; task? $ROR_TASK"

# Log file friendly Gradle output
export TERM=dumb

# Adaptation for Azure
([ ! -z $BUILD_BUILDNUMBER ] || [ "$TRAVIS" ]) && TRAVIS="true"

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "license_check" ]]; then
if [[ $ROR_TASK == "license_check" ]]; then
echo ">>> Check all license headers are in place"
./gradlew --no-daemon license
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "cve_check" ]]; then
if [[ $ROR_TASK == "cve_check" ]]; then
echo ">>> Running CVE checks.."
./gradlew --no-daemon dependencyCheckAnalyze
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "compile_codebase_check" ]]; then
if [[ $ROR_TASK == "compile_codebase_check" ]]; then
echo ">>> Running compile codebase.."
./gradlew --no-daemon classes
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "audit_build_check" ]]; then
if [[ $ROR_TASK == "audit_build_check" ]]; then
echo ">>> Running audit module cross build.."
./gradlew --no-daemon --stacktrace audit:crossBuildAssemble
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "core_tests" ]]; then
if [[ $ROR_TASK == "core_tests" ]]; then
echo ">>> Running unit tests.."
./gradlew --no-daemon --stacktrace core:test audit:test
fi
Expand All @@ -53,147 +42,142 @@ run_integration_tests() {

ES_MODULE=$1

echo ">>> $ES_MODULE => Running testcontainers.."
echo ">>> $ES_MODULE => Running integration tests.."
./gradlew --no-daemon ror-tools:test integration-tests:test "-PesModule=$ES_MODULE" || (find . | grep hs_err | xargs cat && exit 1)
}

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es92x" ]]; then
if [[ $ROR_TASK == "integration_es92x" ]]; then
run_integration_tests "es92x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es91x" ]]; then
if [[ $ROR_TASK == "integration_es91x" ]]; then
run_integration_tests "es91x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es90x" ]]; then
if [[ $ROR_TASK == "integration_es90x" ]]; then
run_integration_tests "es90x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es818x" ]]; then
if [[ $ROR_TASK == "integration_es818x" ]]; then
run_integration_tests "es818x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es816x" ]]; then
if [[ $ROR_TASK == "integration_es816x" ]]; then
run_integration_tests "es816x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es815x" ]]; then
if [[ $ROR_TASK == "integration_es815x" ]]; then
run_integration_tests "es815x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es814x" ]]; then
if [[ $ROR_TASK == "integration_es814x" ]]; then
run_integration_tests "es814x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es813x" ]]; then
if [[ $ROR_TASK == "integration_es813x" ]]; then
run_integration_tests "es813x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es812x" ]]; then
if [[ $ROR_TASK == "integration_es812x" ]]; then
run_integration_tests "es812x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es811x" ]]; then
if [[ $ROR_TASK == "integration_es811x" ]]; then
run_integration_tests "es811x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es810x" ]]; then
if [[ $ROR_TASK == "integration_es810x" ]]; then
run_integration_tests "es810x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es89x" ]]; then
if [[ $ROR_TASK == "integration_es89x" ]]; then
run_integration_tests "es89x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es88x" ]]; then
if [[ $ROR_TASK == "integration_es88x" ]]; then
run_integration_tests "es88x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es87x" ]]; then
if [[ $ROR_TASK == "integration_es87x" ]]; then
run_integration_tests "es87x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es85x" ]]; then
if [[ $ROR_TASK == "integration_es85x" ]]; then
run_integration_tests "es85x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es84x" ]]; then
if [[ $ROR_TASK == "integration_es84x" ]]; then
run_integration_tests "es84x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es83x" ]]; then
if [[ $ROR_TASK == "integration_es83x" ]]; then
run_integration_tests "es83x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es82x" ]]; then
if [[ $ROR_TASK == "integration_es82x" ]]; then
run_integration_tests "es82x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es81x" ]]; then
if [[ $ROR_TASK == "integration_es81x" ]]; then
run_integration_tests "es81x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es80x" ]]; then
if [[ $ROR_TASK == "integration_es80x" ]]; then
run_integration_tests "es80x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es717x" ]]; then
if [[ $ROR_TASK == "integration_es717x" ]]; then
run_integration_tests "es717x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es716x" ]]; then
if [[ $ROR_TASK == "integration_es716x" ]]; then
run_integration_tests "es716x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es714x" ]]; then
if [[ $ROR_TASK == "integration_es714x" ]]; then
run_integration_tests "es714x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es711x" ]]; then
if [[ $ROR_TASK == "integration_es711x" ]]; then
run_integration_tests "es711x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es710x" ]]; then
if [[ $ROR_TASK == "integration_es710x" ]]; then
run_integration_tests "es710x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es79x" ]]; then
if [[ $ROR_TASK == "integration_es79x" ]]; then
run_integration_tests "es79x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es78x" ]]; then
if [[ $ROR_TASK == "integration_es78x" ]]; then
run_integration_tests "es78x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es77x" ]]; then
if [[ $ROR_TASK == "integration_es77x" ]]; then
run_integration_tests "es77x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es74x" ]]; then
if [[ $ROR_TASK == "integration_es74x" ]]; then
run_integration_tests "es74x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es73x" ]]; then
if [[ $ROR_TASK == "integration_es73x" ]]; then
run_integration_tests "es73x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es72x" ]]; then
if [[ $ROR_TASK == "integration_es72x" ]]; then
run_integration_tests "es72x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es70x" ]]; then
if [[ $ROR_TASK == "integration_es70x" ]]; then
run_integration_tests "es70x"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "integration_es67x" ]]; then
if [[ $ROR_TASK == "integration_es67x" ]]; then
run_integration_tests "es67x"
fi

if [[ $TRAVIS_PULL_REQUEST == "true" ]] && [[ $TRAVIS_BRANCH != "master" ]]; then
echo ">>> won't try to create builds because this is a PR"
exit 0
fi

build_ror_plugins() {
if [ "$#" -ne 1 ]; then
echo "What ES versions should I build plugins for?"
Expand All @@ -220,19 +204,19 @@ build_ror_plugin() {
./gradlew buildRorPlugin "-PesVersion=$ROR_VERSION" </dev/null
}

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "build_es9xx" ]]; then
if [[ $ROR_TASK == "build_es9xx" ]]; then
build_ror_plugins "ci/supported-es-versions/es9x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "build_es8xx" ]]; then
if [[ $ROR_TASK == "build_es8xx" ]]; then
build_ror_plugins "ci/supported-es-versions/es8x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "build_es7xx" ]]; then
if [[ $ROR_TASK == "build_es7xx" ]]; then
build_ror_plugins "ci/supported-es-versions/es7x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "build_es6xx" ]]; then
if [[ $ROR_TASK == "build_es6xx" ]]; then
build_ror_plugins "ci/supported-es-versions/es6x.txt"
fi

Expand Down Expand Up @@ -266,19 +250,19 @@ upload_pre_ror_plugin() {
./gradlew publishRorPlugin "-PesVersion=$ES_VERSION" </dev/null
}

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "upload_pre_es9xx" ]]; then
if [[ $ROR_TASK == "upload_pre_es9xx" ]]; then
upload_pre_ror_plugins "ci/supported-es-versions/es9x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "upload_pre_es8xx" ]]; then
if [[ $ROR_TASK == "upload_pre_es8xx" ]]; then
upload_pre_ror_plugins "ci/supported-es-versions/es8x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "upload_pre_es7xx" ]]; then
if [[ $ROR_TASK == "upload_pre_es7xx" ]]; then
upload_pre_ror_plugins "ci/supported-es-versions/es7x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "upload_pre_es6xx" ]]; then
if [[ $ROR_TASK == "upload_pre_es6xx" ]]; then
upload_pre_ror_plugins "ci/supported-es-versions/es6x.txt"
fi

Expand Down Expand Up @@ -370,19 +354,19 @@ public_ror_prebuild_plugin() {
$DOCKER system prune -fa
}

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "release_es9xx" ]]; then
if [[ $ROR_TASK == "release_es9xx" ]]; then
release_ror_plugins "ci/supported-es-versions/es9x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "release_es8xx" ]]; then
if [[ $ROR_TASK == "release_es8xx" ]]; then
release_ror_plugins "ci/supported-es-versions/es8x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "release_es7xx" ]]; then
if [[ $ROR_TASK == "release_es7xx" ]]; then
release_ror_plugins "ci/supported-es-versions/es7x.txt"
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "release_es6xx" ]]; then
if [[ $ROR_TASK == "release_es6xx" ]]; then
release_ror_plugins "ci/supported-es-versions/es6x.txt"
fi

Expand All @@ -407,7 +391,7 @@ check_maven_artifacts_exist() {
fi
}

if [[ $ROR_TASK == "publish_maven_artifacts" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then
if [[ $ROR_TASK == "publish_maven_artifacts" ]]; then
# .travis/secret.pgp is downloaded via Azure secret files, see azure-pipelines.yml
CURRENT_PLUGIN_VER=$(awk -F= '$1=="pluginVersion" {print $2}' gradle.properties)
PUBLISHED_PLUGIN_VER=$(awk -F= '$1=="publishedPluginVersion" {print $2}' gradle.properties)
Expand All @@ -425,7 +409,7 @@ if [[ $ROR_TASK == "publish_maven_artifacts" ]] && [[ $TRAVIS_BRANCH == "master"
fi
fi

if [[ -z $TRAVIS ]] || [[ $ROR_TASK == "publish_pre_builds_docker_images" ]]; then
if [[ $ROR_TASK == "publish_pre_builds_docker_images" ]]; then

IFS=', ' read -r -a VERSIONS <<< "$BUILD_ROR_ES_VERSIONS"
for VERSION in "${VERSIONS[@]}"; do
Expand Down
9 changes: 4 additions & 5 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ buildscript {
plugins {
id "readonlyrest.base-common-conventions"

id "com.github.johnrengelman.shadow" version "8.1.1"
id "com.github.maiflai.scalatest" version "0.33"
id "com.gradleup.shadow" version "9.1.0"
id "java-library"
}

Expand Down Expand Up @@ -64,7 +64,6 @@ dependencies {
api group: 'io.circe', name: 'circe-parser_3', version: '0.14.6'
api group: 'io.circe', name: 'circe-refined_3', version: '0.14.6'
api group: 'commons-codec', name: 'commons-codec', version: '1.15'
api group: 'org.typelevel', name: 'cats-free_3', version: '2.12.0'
api group: 'com.beachape', name: 'enumeratum_3', version: '1.7.5'
api group: 'com.hrakaroo', name: 'glob', version: '0.9.0'
api group: 'com.comcast', name: 'ip4s-core_3', version: '2.0.4'
Expand Down Expand Up @@ -102,7 +101,7 @@ dependencies {
testImplementation group: 'org.scalamock', name: 'scalamock_3', version: '6.0.0'
testImplementation group: 'org.scalatestplus', name: 'scalacheck-1-16_3', version: '3.2.14.0'
testImplementation group: 'org.scalatest', name: 'scalatest_3', version: '3.2.16'
testImplementation group: 'com.dimafeng', name: 'testcontainers-scala-core_3', version: '0.41.4'
testImplementation group: 'com.dimafeng', name: 'testcontainers-scala-core_3', version: '0.44.0'

constraints {
api group: 'io.netty', name: 'netty-codec-http2', version: '4.1.126.Final'
Expand Down Expand Up @@ -166,8 +165,8 @@ tasks.withType(ScalaCompile).configureEach {
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

tasks.named('shadowJar', ShadowJar) {
enableRelocation true
relocationPrefix "tech.beshu.ror"
enableAutoRelocation = true
relocationPrefix = "tech.beshu.ror"
}

tasks.withType(AbstractArchiveTask).configureEach {
Expand Down
Loading
Loading