Skip to content

Commit b1bfa5b

Browse files
authored
ESQL: DS: Add inference/RERANK tests (#145229)
This adds tests involving RERANK with inference.
1 parent d628dc6 commit b1bfa5b

15 files changed

Lines changed: 62 additions & 7 deletions

File tree

x-pack/plugin/esql-datasource-csv/qa/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies {
3333
clusterModules project(':modules:repository-gcs')
3434
clusterPlugins project(':plugins:mapper-size')
3535
clusterPlugins project(':plugins:mapper-murmur3')
36+
clusterPlugins project(':x-pack:plugin:inference:qa:test-service-plugin')
3637

3738
// The CSV datasource plugin under test
3839
clusterPlugins project(xpackModule('esql-datasource-csv'))

x-pack/plugin/esql-datasource-csv/qa/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/csv/Clusters.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static ElasticsearchCluster testCluster(Supplier<String> s3EndpointSuppli
2828
return ElasticsearchCluster.local()
2929
.distribution(DistributionType.DEFAULT)
3030
.shared(true)
31+
.plugin("inference-service-test")
3132
// Enable S3 repository plugin for S3 access
3233
.module("repository-s3")
3334
// Enable GCS repository module for GCS access

x-pack/plugin/esql-datasource-iceberg/qa/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ dependencies {
6262
clusterModules project(':modules:repository-s3')
6363
clusterPlugins project(':plugins:mapper-size')
6464
clusterPlugins project(':plugins:mapper-murmur3')
65-
65+
clusterPlugins project(':x-pack:plugin:inference:qa:test-service-plugin')
66+
6667
// The Iceberg datasource plugin under test
6768
clusterPlugins project(xpackModule('esql-datasource-iceberg'))
6869
clusterPlugins project(xpackModule('esql-datasource-s3'))

x-pack/plugin/esql-datasource-iceberg/qa/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/iceberg/Clusters.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static ElasticsearchCluster testCluster(Supplier<String> s3EndpointSuppli
3333
return ElasticsearchCluster.local()
3434
.distribution(DistributionType.DEFAULT)
3535
.shared(true)
36+
.plugin("inference-service-test")
3637
// Enable S3 repository plugin for S3 access
3738
.module("repository-s3")
3839
// Basic cluster settings

x-pack/plugin/esql-datasource-ndjson/qa/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies {
3333
clusterModules project(':modules:repository-gcs')
3434
clusterPlugins project(':plugins:mapper-size')
3535
clusterPlugins project(':plugins:mapper-murmur3')
36+
clusterPlugins project(':x-pack:plugin:inference:qa:test-service-plugin')
3637

3738
// The datasource plugin under test
3839
clusterPlugins project(xpackModule('esql-datasource-ndjson'))

x-pack/plugin/esql-datasource-ndjson/qa/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/ndjson/Clusters.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static ElasticsearchCluster testCluster(Supplier<String> s3EndpointSuppli
2828
return ElasticsearchCluster.local()
2929
.distribution(DistributionType.DEFAULT)
3030
.shared(true)
31+
.plugin("inference-service-test")
3132
// Enable S3 repository plugin for S3 access
3233
.module("repository-s3")
3334
// Enable GCS repository module for GCS access

x-pack/plugin/esql-datasource-orc/qa/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ dependencies {
5555
clusterModules project(':modules:repository-gcs')
5656
clusterPlugins project(':plugins:mapper-size')
5757
clusterPlugins project(':plugins:mapper-murmur3')
58+
clusterPlugins project(':x-pack:plugin:inference:qa:test-service-plugin')
5859

5960
// The ORC datasource plugin under test
6061
clusterPlugins project(xpackModule('esql-datasource-orc'))

x-pack/plugin/esql-datasource-orc/qa/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/orc/Clusters.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static ElasticsearchCluster testCluster(Supplier<String> s3EndpointSuppli
2929
return ElasticsearchCluster.local()
3030
.distribution(DistributionType.DEFAULT)
3131
.shared(true)
32+
.plugin("inference-service-test")
3233
.module("repository-s3")
3334
.module("repository-gcs")
3435
.setting("xpack.security.enabled", "false")

x-pack/plugin/esql-datasource-parquet/qa/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ dependencies {
3939
clusterModules project(':modules:repository-gcs')
4040
clusterPlugins project(':plugins:mapper-size')
4141
clusterPlugins project(':plugins:mapper-murmur3')
42-
42+
clusterPlugins project(':x-pack:plugin:inference:qa:test-service-plugin')
43+
4344
// The parquet datasource plugin under test
4445
clusterPlugins project(xpackModule('esql-datasource-parquet'))
4546
clusterPlugins project(xpackModule('esql-datasource-http'))

x-pack/plugin/esql-datasource-parquet/qa/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/parquet/Clusters.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static ElasticsearchCluster testCluster(Supplier<String> s3EndpointSuppli
2828
return ElasticsearchCluster.local()
2929
.distribution(DistributionType.DEFAULT)
3030
.shared(true)
31+
.plugin("inference-service-test")
3132
// Enable S3 repository plugin for S3 access
3233
.module("repository-s3")
3334
// Enable GCS repository module for GCS access

0 commit comments

Comments
 (0)