diff --git a/build.gradle b/build.gradle index b840d4f51..4bdce3d75 100644 --- a/build.gradle +++ b/build.gradle @@ -524,16 +524,15 @@ List> plugins = [ task "${baseName}#mixedClusterTask"(type: StandaloneRestIntegTestTask) { dependsOn "${baseName}#oldVersionClusterTask0" useCluster testClusters."${baseName}0" - // Only do mixed cluster tasks on same major version - if (bwc_major_version != opensearch_major_version) { - ignoreFailures = true - } else { - doFirst { + doFirst { + if (bwc_major_version == opensearch_major_version) { testClusters."${baseName}0".upgradeNodeAndPluginToNextVersion(plugins) + } else { + testClusters."${baseName}0".upgradeAllNodesAndPluginsToNextVersion(plugins) } - filter { - includeTestsMatching "org.opensearch.flowframework.bwc.*IT" - } + } + filter { + includeTestsMatching "org.opensearch.flowframework.bwc.*IT" } systemProperty 'tests.rest.bwcsuite', 'mixed_cluster' systemProperty 'tests.rest.bwcsuite_round', 'first' @@ -548,16 +547,13 @@ task "${baseName}#mixedClusterTask"(type: StandaloneRestIntegTestTask) { task "${baseName}#twoThirdsUpgradedClusterTask"(type: StandaloneRestIntegTestTask) { dependsOn "${baseName}#mixedClusterTask" useCluster testClusters."${baseName}0" - // Only do mixed cluster tasks on same major version - if (bwc_major_version != opensearch_major_version) { - ignoreFailures = true - } else { - doFirst { + doFirst { + if (bwc_major_version == opensearch_major_version) { testClusters."${baseName}0".upgradeNodeAndPluginToNextVersion(plugins) } - filter { - includeTestsMatching "org.opensearch.flowframework.bwc.*IT" - } + } + filter { + includeTestsMatching "org.opensearch.flowframework.bwc.*IT" } systemProperty 'tests.rest.bwcsuite', 'mixed_cluster' systemProperty 'tests.rest.bwcsuite_round', 'second' @@ -572,16 +568,13 @@ task "${baseName}#twoThirdsUpgradedClusterTask"(type: StandaloneRestIntegTestTas task "${baseName}#rollingUpgradeClusterTask"(type: StandaloneRestIntegTestTask) { dependsOn "${baseName}#twoThirdsUpgradedClusterTask" useCluster testClusters."${baseName}0" - // Only do mixed cluster tasks on same major version - if (bwc_major_version != opensearch_major_version) { - ignoreFailures = true - } else { - doFirst { + doFirst { + if (bwc_major_version == opensearch_major_version) { testClusters."${baseName}0".upgradeNodeAndPluginToNextVersion(plugins) } - filter { - includeTestsMatching "org.opensearch.flowframework.bwc.*IT" - } + } + filter { + includeTestsMatching "org.opensearch.flowframework.bwc.*IT" } mustRunAfter "${baseName}#mixedClusterTask" systemProperty 'tests.rest.bwcsuite', 'mixed_cluster'