diff --git a/qa/build.gradle b/qa/build.gradle index 6b7667e62..a48b92f10 100644 --- a/qa/build.gradle +++ b/qa/build.gradle @@ -159,8 +159,8 @@ task pullBwcPlugin { } } -// Task to unzip ml-commons plugin from archive -task unZipBwcMlCommonsPlugin(type: Zip) { +// Task to zip ml-commons plugin from archive +task zipBwcMlCommonsPlugin(type: Zip) { dependsOn "pullMlCommonsBwcPlugin" from(Path.of(tmp_dir.absolutePath, "opensearch-ml")) destinationDirectory = tmp_dir @@ -170,10 +170,10 @@ task unZipBwcMlCommonsPlugin(type: Zip) { } } -// Task to unzip knn plugin from archive -task unZipBwcKnnPlugin(type: Zip) { +// Task to zip knn plugin from archive +task zipBwcKnnPlugin(type: Zip) { dependsOn "pullKnnBwcPlugin" - dependsOn "unZipBwcMlCommonsPlugin" + dependsOn "zipBwcMlCommonsPlugin" from(Path.of(tmp_dir.absolutePath, "opensearch-knn")) destinationDirectory = tmp_dir archiveFileName = "opensearch-knn-${neural_search_bwc_version_no_qualifier}.zip" @@ -182,9 +182,9 @@ task unZipBwcKnnPlugin(type: Zip) { } } -// Task to unzip neural search plugin from archive -task unZipBwcPlugin(type: Zip) { - dependsOn "unZipBwcKnnPlugin" +// Task to zip neural search plugin from archive +task zipBwcPlugin(type: Zip) { + dependsOn "zipBwcKnnPlugin" dependsOn "pullBwcPlugin" from(Path.of(tmp_dir.absolutePath, "opensearch-neural-search")) destinationDirectory = tmp_dir diff --git a/qa/restart-upgrade/build.gradle b/qa/restart-upgrade/build.gradle index c5badd248..fe3db254c 100644 --- a/qa/restart-upgrade/build.gradle +++ b/qa/restart-upgrade/build.gradle @@ -45,9 +45,9 @@ testClusters { } }else{ versions = [ext.neural_search_bwc_version, opensearch_version] - plugin(project.tasks.unZipBwcMlCommonsPlugin.archiveFile) - plugin(project.tasks.unZipBwcKnnPlugin.archiveFile) - plugin(project.tasks.unZipBwcPlugin.archiveFile) + plugin(project.tasks.zipBwcMlCommonsPlugin.archiveFile) + plugin(project.tasks.zipBwcKnnPlugin.archiveFile) + plugin(project.tasks.zipBwcPlugin.archiveFile) } setting 'path.repo', "${buildDir}/cluster/shared/repo/${baseName}" setting 'http.content_type.required', 'true' @@ -57,7 +57,7 @@ testClusters { // Task to run BWC tests against the old cluster task testAgainstOldCluster(type: StandaloneRestIntegTestTask) { if(!ext.bwcBundleTest){ - dependsOn "unZipBwcPlugin" + dependsOn "zipBwcPlugin" } useCluster testClusters."${baseName}" systemProperty 'tests.rest.bwcsuite_cluster', 'old_cluster' diff --git a/qa/rolling-upgrade/build.gradle b/qa/rolling-upgrade/build.gradle index 285e65093..7d21c5f9e 100644 --- a/qa/rolling-upgrade/build.gradle +++ b/qa/rolling-upgrade/build.gradle @@ -45,9 +45,9 @@ testClusters { } }else{ versions = [ext.neural_search_bwc_version, opensearch_version] - plugin(project.tasks.unZipBwcMlCommonsPlugin.archiveFile) - plugin(project.tasks.unZipBwcKnnPlugin.archiveFile) - plugin(project.tasks.unZipBwcPlugin.archiveFile) + plugin(project.tasks.zipBwcMlCommonsPlugin.archiveFile) + plugin(project.tasks.zipBwcKnnPlugin.archiveFile) + plugin(project.tasks.zipBwcPlugin.archiveFile) } setting 'path.repo', "${buildDir}/cluster/shared/repo/${baseName}" setting 'http.content_type.required', 'true' @@ -58,7 +58,7 @@ testClusters { // Task to run BWC tests against the old cluster task testAgainstOldCluster(type: StandaloneRestIntegTestTask) { if(!ext.bwcBundleTest){ - dependsOn "unZipBwcPlugin" + dependsOn "zipBwcPlugin" } useCluster testClusters."${baseName}" systemProperty 'tests.rest.bwcsuite_cluster', 'old_cluster'