Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/main_and_pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java-version: [21, 24]
java-version: [21, 25]
runs-on: [ubuntu-latest]
name: Assemble on ${{ matrix.runs-on }} with JDK ${{ matrix.java-version }}
runs-on: ${{ matrix.runs-on }}
Expand All @@ -20,7 +20,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
distribution: 'oracle'
cache: gradle
- name: Assemble with Gradle
run: ./gradlew assemble
Expand All @@ -32,11 +32,11 @@ jobs:
entry:
- { opensearch-version: 2.11.0, java-version: 21 }
- { opensearch-version: 2.19.2, java-version: 21 }
- { opensearch-version: 2.19.2, java-version: 24 }
- { opensearch-version: 2.19.2, java-version: 25 }
- { opensearch-version: 3.0.0, java-version: 21 }
- { opensearch-version: 3.0.0, java-version: 24 }
- { opensearch-version: 3.0.0, java-version: 25 }
- { opensearch-version: 3.2.0, java-version: 21 }
- { opensearch-version: 3.2.0, java-version: 24 }
- { opensearch-version: 3.2.0, java-version: 25 }
runs-on: [ubuntu-latest]
name: Check on ${{ matrix.runs-on }} with JDK ${{ matrix.entry.java-version }} against OpenSearch ${{ matrix.entry.opensearch-version }}
runs-on: ${{ matrix.runs-on }}
Expand All @@ -47,7 +47,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.entry.java-version }}
distribution: 'temurin'
distribution: 'oracle'
cache: gradle
- name: Check with Gradle
run: ./gradlew check -Psde.testcontainers.image-version=${{ matrix.entry.opensearch-version }}
5 changes: 4 additions & 1 deletion buildSrc/src/main/kotlin/java-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ val integrationTestTask = tasks.register<Test>("integrationTest") {

shouldRunAfter(tasks.test)
jvmArgs("-XX:+AllowRedefinitionToAddDeleteMethods")


testClassesDirs = sourceSets["test"].output.classesDirs
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gradle since at least v9 skips tests without sources / classes

classpath = sourceSets["test"].runtimeClasspath

systemProperty("sde.integration-test.environment", "opensearch")
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAME
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

sde.testcontainers.image-version=3.1.0
sde.testcontainers.image-version=3.2.0
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionSha256Sum=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b
distributionSha256Sum=a17ddd85a26b6a7f5ddb71ff8b05fc5104c0202c6e64782429790c933686c806
3 changes: 0 additions & 3 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac

CLASSPATH="\\\"\\\""


# Determine the Java command to use to start the JVM.
Expand Down Expand Up @@ -172,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )

JAVACMD=$( cygpath --unix "$JAVACMD" )

Expand Down Expand Up @@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"

Expand Down
3 changes: 1 addition & 2 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ goto fail
:execute
@rem Setup the command line

set CLASSPATH=


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void restClientOpensearchNodeVersion() throws IOException {
try (InputStream input = response.getEntity().getContent()) {
JsonNode result = new ObjectMapper().readTree(input);
assertThat(result.path("version").path("number").asText())
.isEqualTo("3.1.0");
.isEqualTo("3.2.0");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void restClientOpensearchNodeVersion() throws IOException {
try (InputStream input = response.getEntity().getContent()) {
JsonNode result = new ObjectMapper().readTree(input);
assertThat(result.path("version").path("number").asText())
.isEqualTo("3.1.0");
.isEqualTo("3.2.0");
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
opensearch:
image: opensearchproject/opensearch:3.1.0
image: opensearchproject/opensearch:3.2.0
ports:
- '9200'
environment:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
opensearch:
image: opensearchproject/opensearch:3.1.0
image: opensearchproject/opensearch:3.2.0
ports:
- '9200'
healthcheck:
Expand Down
Loading