Skip to content

Commit c9b2a46

Browse files
authored
Fix flakey semantic_text index_options test (#133323)
* Fix flakey semantic_text index_options test * Unmute test
1 parent 2de59d4 commit c9b2a46

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

muted-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,6 @@ tests:
606606
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
607607
method: test {p0=search.vectors/100_knn_nested_search/nested kNN search inner_hits & profiling}
608608
issue: https://github.com/elastic/elasticsearch/issues/133273
609-
- class: org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapperTests
610-
method: testDefaultIndexOptions {p0=true}
611-
issue: https://github.com/elastic/elasticsearch/issues/133326
612-
- class: org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapperTests
613-
method: testDefaultIndexOptions {p0=false}
614-
issue: https://github.com/elastic/elasticsearch/issues/133327
615609
- class: org.elasticsearch.xpack.security.authc.AuthenticationServiceTests
616610
method: testInvalidToken
617611
issue: https://github.com/elastic/elasticsearch/issues/133328

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,11 @@ public void testDefaultIndexOptions() throws IOException {
14371437
b.field("similarity", "cosine");
14381438
b.field("element_type", "float");
14391439
b.endObject();
1440-
}), useLegacyFormat, IndexVersions.SEMANTIC_TEXT_DEFAULTS_TO_BBQ_BACKPORT_8_X, IndexVersions.UPGRADE_TO_LUCENE_10_0_0);
1440+
}),
1441+
useLegacyFormat,
1442+
IndexVersions.SEMANTIC_TEXT_DEFAULTS_TO_BBQ_BACKPORT_8_X,
1443+
IndexVersionUtils.getPreviousVersion(IndexVersions.UPGRADE_TO_LUCENE_10_0_0)
1444+
);
14411445
assertSemanticTextField(mapperService, "field", true, null, defaultBbqHnswSemanticTextIndexOptions());
14421446

14431447
// Previous 8.x index versions do not set BBQ index options

0 commit comments

Comments
 (0)