forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into esql-data-type-conversion-2
- Loading branch information
Showing
587 changed files
with
7,624 additions
and
1,733 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...l/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixtureDeployment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
package org.elasticsearch.gradle.internal.testfixtures; | ||
|
||
import org.gradle.api.Named; | ||
import org.gradle.api.provider.ListProperty; | ||
import org.gradle.api.provider.Property; | ||
|
||
import java.io.File; | ||
|
||
public abstract class TestFixtureDeployment implements Named { | ||
|
||
private final String name; | ||
|
||
public TestFixtureDeployment(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public abstract Property<String> getDockerRegistry(); | ||
|
||
public abstract Property<File> getDockerContext(); | ||
|
||
public abstract Property<String> getVersion(); | ||
|
||
public abstract ListProperty<String> getBaseImages(); | ||
} |
60 changes: 60 additions & 0 deletions
60
...rc/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixturesDeployPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
package org.elasticsearch.gradle.internal.testfixtures; | ||
|
||
import org.apache.commons.lang.StringUtils; | ||
import org.elasticsearch.gradle.Architecture; | ||
import org.elasticsearch.gradle.internal.docker.DockerBuildTask; | ||
import org.elasticsearch.gradle.internal.info.BuildParams; | ||
import org.gradle.api.NamedDomainObjectContainer; | ||
import org.gradle.api.Plugin; | ||
import org.gradle.api.Project; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class TestFixturesDeployPlugin implements Plugin<Project> { | ||
|
||
public static final String DEPLOY_FIXTURE_TASK_NAME = "deployFixtureDockerImages"; | ||
private static String DEFAULT_DOCKER_REGISTRY = "docker.elastic.co/elasticsearch-dev"; | ||
|
||
@Override | ||
public void apply(Project project) { | ||
NamedDomainObjectContainer<TestFixtureDeployment> fixtures = project.container(TestFixtureDeployment.class); | ||
project.getExtensions().add("dockerFixtures", fixtures); | ||
registerDeployTaskPerFixture(project, fixtures); | ||
project.getTasks().register(DEPLOY_FIXTURE_TASK_NAME, task -> task.dependsOn(project.getTasks().withType(DockerBuildTask.class))); | ||
} | ||
|
||
private static void registerDeployTaskPerFixture(Project project, NamedDomainObjectContainer<TestFixtureDeployment> fixtures) { | ||
fixtures.all( | ||
fixture -> project.getTasks() | ||
.register("deploy" + StringUtils.capitalize(fixture.getName()) + "DockerImage", DockerBuildTask.class, task -> { | ||
task.getDockerContext().fileValue(fixture.getDockerContext().get()); | ||
List<String> baseImages = fixture.getBaseImages().get(); | ||
if (baseImages.isEmpty() == false) { | ||
task.setBaseImages(baseImages.toArray(new String[baseImages.size()])); | ||
} | ||
task.setNoCache(BuildParams.isCi()); | ||
task.setTags( | ||
new String[] { | ||
resolveTargetDockerRegistry(fixture) + "/" + fixture.getName() + "-fixture:" + fixture.getVersion().get() } | ||
); | ||
task.getPush().set(BuildParams.isCi()); | ||
task.getPlatforms().addAll(Arrays.stream(Architecture.values()).map(a -> a.dockerPlatform).toList()); | ||
task.setGroup("Deploy TestFixtures"); | ||
task.setDescription("Deploys the " + fixture.getName() + " test fixture"); | ||
}) | ||
); | ||
} | ||
|
||
private static String resolveTargetDockerRegistry(TestFixtureDeployment fixture) { | ||
return fixture.getDockerRegistry().getOrElse(DEFAULT_DOCKER_REGISTRY); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 105501 | ||
summary: Support non-keyword dimensions as routing fields in TSDB | ||
area: TSDB | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 106065 | ||
summary: "ESQL: Values aggregation function" | ||
area: ES|QL | ||
type: feature | ||
issues: | ||
- 103600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 106396 | ||
summary: "Check preTags and postTags params for empty values" | ||
area: Highlighting | ||
type: bug | ||
issues: | ||
- 69009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 106563 | ||
summary: Improve short-circuiting downsample execution | ||
area: TSDB | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 106574 | ||
summary: Fix `_reset` API when called with `force=true` on a failed transform | ||
area: Transform | ||
type: bug | ||
issues: | ||
- 106573 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 106575 | ||
summary: Unable to retrieve multiple stored field values | ||
area: "Search" | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 97072 | ||
summary: Log when update AffixSetting using addAffixMapUpdateConsumer | ||
area: Infra/Logging | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.