Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,6 @@ tests:
- class: org.elasticsearch.repositories.blobstore.testkit.analyze.GCSRepositoryAnalysisRestIT
method: testRepositoryAnalysis
issue: https://github.com/elastic/elasticsearch/issues/125668
- class: org.elasticsearch.xpack.application.ModelRegistryUpgradeIT
method: testUpgradeModels {upgradedNodes=0}
issue: https://github.com/elastic/elasticsearch/issues/125549
- class: org.elasticsearch.xpack.application.ModelRegistryUpgradeIT
method: testUpgradeModels {upgradedNodes=3}
issue: https://github.com/elastic/elasticsearch/issues/125535
- class: org.elasticsearch.ingest.geoip.EnterpriseGeoIpDownloaderIT
method: testEnterpriseDownloaderTask
issue: https://github.com/elastic/elasticsearch/issues/126124
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
import static org.hamcrest.Matchers.greaterThan;

public class ModelRegistryUpgradeIT extends InferenceUpgradeTestCase {

// Hugging Face embeddings and ELSER was added in 8.12.0
// but in 8.15 the endpoints were renamed. For the sake of this
// test can start at 8.15.0.
public static final String MIN_OLD_CLUSTER_VERSION = "8.15.0";

private static MockWebServer embeddingsServer;
private static MockWebServer elserServer;

Expand All @@ -50,6 +56,9 @@ public ModelRegistryUpgradeIT(@Name("upgradedNodes") int upgradedNodes) {
}

public void testUpgradeModels() throws Exception {
boolean oldClusterSupportsHF = oldClusterHasFeature("gte_v" + MIN_OLD_CLUSTER_VERSION);
assumeTrue("Test requires features added in " + MIN_OLD_CLUSTER_VERSION, oldClusterSupportsHF);

if (isOldCluster()) {
int numModels = randomIntBetween(5, 10);
for (int i = 0; i < numModels; i++) {
Expand Down