Skip to content

Commit dd4a6d5

Browse files
authored
Skip rerank tests in mixed clusters (#126415) (#128942)
Backport of #126415 to 8.19 If the clusters don't support inference test services, skip tests that require inference services. Hence, we should check for rerank tests. Relates #123074
1 parent fe5700c commit dd4a6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public final void test() throws Throwable {
174174
}
175175

176176
protected void shouldSkipTest(String testName) throws IOException {
177-
if (testCase.requiredCapabilities.contains("semantic_text_field_caps")) {
177+
if (testCase.requiredCapabilities.contains("semantic_text_field_caps") || testCase.requiredCapabilities.contains("rerank")) {
178178
assumeTrue("Inference test service needs to be supported for semantic_text", supportsInferenceTestService());
179179
}
180180
checkCapabilities(adminClient(), testFeatureService, testName, testCase);

0 commit comments

Comments
 (0)