Skip to content

Commit e504cec

Browse files
Fix release tests for SemanticMatchTestCase (#119022)
* Fix release tests * Mute test that was already muted on 8.x --------- Co-authored-by: Elastic Machine <[email protected]>
1 parent ee163eb commit e504cec

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

muted-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ tests:
290290
issue: https://github.com/elastic/elasticsearch/issues/118914
291291
- class: org.elasticsearch.repositories.blobstore.testkit.analyze.SecureHdfsRepositoryAnalysisRestIT
292292
issue: https://github.com/elastic/elasticsearch/issues/118970
293+
- class: org.elasticsearch.aggregations.bucket.SearchCancellationIT
294+
method: testCancellationDuringTimeSeriesAggregation
295+
issue: https://github.com/elastic/elasticsearch/issues/118992
293296
- class: org.elasticsearch.xpack.security.authc.AuthenticationServiceTests
294297
method: testInvalidToken
295298
issue: https://github.com/elastic/elasticsearch/issues/119019

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
public abstract class SemanticMatchTestCase extends ESRestTestCase {
2424
public void testWithMultipleInferenceIds() throws IOException {
25+
assumeTrue("semantic text capability not available", EsqlCapabilities.Cap.SEMANTIC_TEXT_TYPE.isEnabled());
26+
2527
String query = """
2628
from test-semantic1,test-semantic2
2729
| where match(semantic_text_field, "something")
@@ -34,6 +36,8 @@ public void testWithMultipleInferenceIds() throws IOException {
3436
}
3537

3638
public void testWithInferenceNotConfigured() {
39+
assumeTrue("semantic text capability not available", EsqlCapabilities.Cap.SEMANTIC_TEXT_TYPE.isEnabled());
40+
3741
String query = """
3842
from test-semantic3
3943
| where match(semantic_text_field, "something")
@@ -46,8 +50,6 @@ public void testWithInferenceNotConfigured() {
4650

4751
@Before
4852
public void setUpIndices() throws IOException {
49-
assumeTrue("semantic text capability not available", EsqlCapabilities.Cap.SEMANTIC_TEXT_TYPE.isEnabled());
50-
5153
var settings = Settings.builder().build();
5254

5355
String mapping1 = """
@@ -83,7 +85,6 @@ public void setUpIndices() throws IOException {
8385

8486
@Before
8587
public void setUpTextEmbeddingInferenceEndpoint() throws IOException {
86-
assumeTrue("semantic text capability not available", EsqlCapabilities.Cap.SEMANTIC_TEXT_TYPE.isEnabled());
8788
Request request = new Request("PUT", "_inference/text_embedding/test_dense_inference");
8889
request.setJsonEntity("""
8990
{
@@ -101,7 +102,6 @@ public void setUpTextEmbeddingInferenceEndpoint() throws IOException {
101102

102103
@After
103104
public void wipeData() throws IOException {
104-
assumeTrue("semantic text capability not available", EsqlCapabilities.Cap.SEMANTIC_TEXT_TYPE.isEnabled());
105105
adminClient().performRequest(new Request("DELETE", "*"));
106106

107107
try {

0 commit comments

Comments
 (0)