Skip to content

Commit

Permalink
Merge branch 'main' into text-date-formatter-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoop committed Sep 6, 2024
2 parents 60b233d + ee68d0c commit 5e497c0
Show file tree
Hide file tree
Showing 87 changed files with 1,352 additions and 337 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipelines/intake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ steps:
timeout_in_minutes: 300
matrix:
setup:
BWC_VERSION: ["7.17.24", "8.15.1", "8.16.0"]
BWC_VERSION: ["7.17.24", "8.15.2", "8.16.0"]
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
Expand Down
6 changes: 3 additions & 3 deletions .buildkite/pipelines/periodic-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ steps:
env:
BWC_VERSION: 8.14.3

- label: "{{matrix.image}} / 8.15.1 / packaging-tests-upgrade"
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.15.1
- label: "{{matrix.image}} / 8.15.2 / packaging-tests-upgrade"
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.15.2
timeout_in_minutes: 300
matrix:
setup:
Expand All @@ -609,7 +609,7 @@ steps:
buildDirectory: /dev/shm/bk
diskSizeGb: 250
env:
BWC_VERSION: 8.15.1
BWC_VERSION: 8.15.2

- label: "{{matrix.image}} / 8.16.0 / packaging-tests-upgrade"
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.16.0
Expand Down
10 changes: 5 additions & 5 deletions .buildkite/pipelines/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@ steps:
- signal_reason: agent_stop
limit: 3

- label: 8.15.1 / bwc
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.15.1#bwcTest
- label: 8.15.2 / bwc
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.15.2#bwcTest
timeout_in_minutes: 300
agents:
provider: gcp
Expand All @@ -673,7 +673,7 @@ steps:
preemptible: true
diskSizeGb: 250
env:
BWC_VERSION: 8.15.1
BWC_VERSION: 8.15.2
retry:
automatic:
- exit_status: "-1"
Expand Down Expand Up @@ -771,7 +771,7 @@ steps:
setup:
ES_RUNTIME_JAVA:
- openjdk17
BWC_VERSION: ["7.17.24", "8.15.1", "8.16.0"]
BWC_VERSION: ["7.17.24", "8.15.2", "8.16.0"]
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
Expand Down Expand Up @@ -821,7 +821,7 @@ steps:
- openjdk21
- openjdk22
- openjdk23
BWC_VERSION: ["7.17.24", "8.15.1", "8.16.0"]
BWC_VERSION: ["7.17.24", "8.15.2", "8.16.0"]
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
Expand Down
2 changes: 1 addition & 1 deletion .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ BWC_VERSION:
- "8.12.2"
- "8.13.4"
- "8.14.3"
- "8.15.1"
- "8.15.2"
- "8.16.0"
2 changes: 1 addition & 1 deletion .ci/snapshotBwcVersions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BWC_VERSION:
- "7.17.24"
- "8.15.1"
- "8.15.2"
- "8.16.0"
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class LegacyYamlRestCompatTestPluginFuncTest extends AbstractRestResourcesFuncTe
def result = gradleRunner("yamlRestTestV${compatibleVersion}CompatTest", '--stacktrace').build()

then:
// we set the task to be skipped if there are no matching tests in the compatibility test sourceSet
result.task(":yamlRestTestV${compatibleVersion}CompatTest").outcome == TaskOutcome.SKIPPED
result.task(":yamlRestTestV${compatibleVersion}CompatTest").outcome == TaskOutcome.NO_SOURCE
result.task(':copyRestCompatApiTask').outcome == TaskOutcome.NO_SOURCE
result.task(':copyRestCompatTestTask').outcome == TaskOutcome.NO_SOURCE
result.task(transformTask).outcome == TaskOutcome.NO_SOURCE
Expand Down Expand Up @@ -165,7 +164,7 @@ class LegacyYamlRestCompatTestPluginFuncTest extends AbstractRestResourcesFuncTe
then:
result.task(':check').outcome == TaskOutcome.UP_TO_DATE
result.task(':checkRestCompat').outcome == TaskOutcome.UP_TO_DATE
result.task(":yamlRestTestV${compatibleVersion}CompatTest").outcome == TaskOutcome.SKIPPED
result.task(":yamlRestTestV${compatibleVersion}CompatTest").outcome == TaskOutcome.NO_SOURCE
result.task(':copyRestCompatApiTask').outcome == TaskOutcome.NO_SOURCE
result.task(':copyRestCompatTestTask').outcome == TaskOutcome.NO_SOURCE
result.task(transformTask).outcome == TaskOutcome.NO_SOURCE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ develocity {
if (BuildParams.inFipsJvm) {
tag 'FIPS'
}
println "onCI = $onCI"

if (onCI) { //Buildkite-specific build scan metadata
String buildKiteUrl = System.getenv('BUILDKITE_BUILD_URL')
def branch = System.getenv('BUILDKITE_PULL_REQUEST_BASE_BRANCH') ?: System.getenv('BUILDKITE_BRANCH')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.gradle.api.tasks.Sync;
import org.gradle.api.tasks.TaskProvider;
import org.gradle.api.tasks.testing.Test;
import org.gradle.language.jvm.tasks.ProcessResources;

import java.io.File;
import java.nio.file.Path;
Expand Down Expand Up @@ -213,6 +214,17 @@ public void apply(Project project) {
.named(RestResourcesPlugin.COPY_YAML_TESTS_TASK)
.flatMap(CopyRestTestsTask::getOutputResourceDir);

// ensure we include other non rest spec related test resources
project.getTasks()
.withType(ProcessResources.class)
.named(yamlCompatTestSourceSet.getProcessResourcesTaskName())
.configure(processResources -> {
processResources.from(
sourceSets.getByName(YamlRestTestPlugin.YAML_REST_TEST).getResources(),
spec -> { spec.exclude("rest-api-spec/**"); }
);
});

// setup the test task
TaskProvider<? extends Test> yamlRestCompatTestTask = registerTestTask(project, yamlCompatTestSourceSet);
yamlRestCompatTestTask.configure(testTask -> {
Expand All @@ -221,7 +233,7 @@ public void apply(Project project) {
testTask.setTestClassesDirs(
yamlTestSourceSet.getOutput().getClassesDirs().plus(yamlCompatTestSourceSet.getOutput().getClassesDirs())
);
testTask.onlyIf("Compatibility tests are available", t -> yamlCompatTestSourceSet.getAllSource().isEmpty() == false);
testTask.onlyIf("Compatibility tests are available", t -> yamlCompatTestSourceSet.getOutput().isEmpty() == false);
testTask.setClasspath(
yamlCompatTestSourceSet.getRuntimeClasspath()
// remove the "normal" api and tests
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog/111161.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 111161
summary: Add support for templates when validating mappings in the simulate ingest
API
area: Ingest Node
type: enhancement
issues: []
5 changes: 0 additions & 5 deletions docs/changelog/111285.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111475.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions docs/changelog/111548.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 111548
summary: Json parsing exceptions should not cause 500 errors
area: Infra/Core
type: bug
issues:
- 111542
5 changes: 0 additions & 5 deletions docs/changelog/111673.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111729.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111756.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111758.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/111807.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/111843.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111863.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111866.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111943.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/111947.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/111966.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111983.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/111994.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/112005.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/112038.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/112046.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/112090.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions docs/changelog/112135.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/112139.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions docs/changelog/112173.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/112178.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/112217.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/112226.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/112230.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/changelog/112242.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/changelog/112260.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion docs/reference/ingest/apis/simulate-ingest.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ as well the same way that a non-simulated ingest would. No data is
indexed into {es}. Instead, the transformed document is returned,
along with the list of pipelines that have been executed and the name
of the index where the document would have been indexed if this were
not a simulation. This differs from the
not a simulation. The transformed document is validated against the
mappings that would apply to this index, and any validation error is
reported in the result.

This API differs from the
<<simulate-pipeline-api,simulate pipeline API>> in that you specify a
single pipeline for that API, and it only runs that one pipeline. The
simulate pipeline API is more useful for developing a single pipeline,
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/mapping/types/sparse-vector.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ NOTE: `sparse_vector` fields can not be included in indices that were *created*
NOTE: `sparse_vector` fields only support strictly positive values.
Negative values will be rejected.

NOTE: `sparse_vector` fields do not support querying, sorting or aggregating.
NOTE: `sparse_vector` fields do not support <<analysis,analyzers>>, querying, sorting or aggregating.
They may only be used within specialized queries.
The recommended query to use on these fields are <<query-dsl-sparse-vector-query, `sparse_vector`>> queries.
They may also be used within legacy <<query-dsl-text-expansion-query,`text_expansion`>> queries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public Token nextToken() throws IOException {
try {
return convertToken(parser.nextToken());
} catch (JsonEOFException e) {
throw new XContentEOFException(e);
JsonLocation location = e.getLocation();
throw new XContentEOFException(new XContentLocation(location.getLineNr(), location.getColumnNr()), "Unexpected end of file", e);
} catch (JsonParseException e) {
throw newXContentParseException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@

package org.elasticsearch.xcontent;

import java.io.IOException;
public class XContentEOFException extends XContentParseException {

public class XContentEOFException extends IOException {

public XContentEOFException(IOException cause) {
super(cause);
public XContentEOFException(XContentLocation location, String message, Exception cause) {
super(location, message, cause);
}
}
3 changes: 3 additions & 0 deletions modules/aggregations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ tasks.named("yamlRestTestV7CompatTransform").configure { task ->
task.skipTest("search.aggregation/180_percentiles_tdigest_metric/Filtered test", "Hybrid t-digest produces different results.")
task.skipTest("search.aggregation/420_percentile_ranks_tdigest_metric/filtered", "Hybrid t-digest produces different results.")

// Something has changed with response codes
task.skipTest("search.aggregation/20_terms/IP test", "Hybrid t-digest produces different results.")

task.addAllowedWarningRegex("\\[types removal\\].*")
}

Expand Down
Loading

0 comments on commit 5e497c0

Please sign in to comment.