From d477ecf7de12698cbd92cdb5ad81b73c94b10138 Mon Sep 17 00:00:00 2001 From: Varun Jain Date: Fri, 5 Jan 2024 11:24:25 -0800 Subject: [PATCH] Add spotlessApply in ./gradlew build Signed-off-by: Varun Jain --- DEVELOPER_GUIDE.md | 3 ++- build.gradle | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index cad23695a..3af2dd659 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -188,7 +188,8 @@ Additionally, it is possible to attach one debugger to the cluster JVM and anoth ## Backwards Compatibility Testing -The purpose of Backwards Compatibility Testing and different types of BWC tests are explained [here](https://github.com/opensearch-project/opensearch-plugins/blob/main/TESTING.md#backwards-compatibility-testing) +The purpose of Backwards Compatibility Testing and different types of BWC tests are explained [here](https://github.com/opensearch-project/opensearch-plugins/blob/main/TESTING.md#backwards-compatibility-testing). The BWC tests (i.e. Restart-Upgrade, Mixed-Cluster and Rolling-Upgrade scenarios) should be added with any new feature being added to Neural Search. +The current design has mixed-cluster tests combined with rolling-upgrade tests in the same test class for [example](https://github.com/opensearch-project/neural-search/blob/main/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearchIT.java). Use these commands to run BWC tests for neural search: 1. Rolling upgrade tests: `./gradlew :qa:rolling-upgrade:testRollingUpgrade` diff --git a/build.gradle b/build.gradle index ac0ebaa9d..dd48066db 100644 --- a/build.gradle +++ b/build.gradle @@ -194,6 +194,7 @@ project.tasks.delombok.dependsOn(extractKnnJar) compileJava { dependsOn extractKnnJar + dependsOn spotlessApply options.compilerArgs.addAll(["-processor", 'lombok.launch.AnnotationProcessorHider$AnnotationProcessor']) } compileTestJava {