Skip to content

Commit bdbb4ee

Browse files
Merge branch 'main' into fix-130044-take2
2 parents 187c804 + c057945 commit bdbb4ee

File tree

8 files changed

+22
-7
lines changed

8 files changed

+22
-7
lines changed

.ci/scripts/resolve-dra-manifest.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ strip_version() {
66
}
77

88
fetch_build() {
9-
curl -sS https://artifacts-$1.elastic.co/$2/latest/$3.json \
9+
>&2 echo "Checking for build id: https://artifacts-$1.elastic.co/$2/latest/$3.json"
10+
curl -sSf https://artifacts-$1.elastic.co/$2/latest/$3.json \
1011
| jq -r '.build_id'
1112
}
1213

@@ -15,7 +16,15 @@ BRANCH="${BRANCH:-$2}"
1516
ES_VERSION="${ES_VERSION:-$3}"
1617
WORKFLOW=${WORKFLOW:-$4}
1718

18-
LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $BRANCH)
19+
if [[ "$WORKFLOW" == "staging" ]]; then
20+
LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $ES_VERSION)
21+
elif [[ "$WORKFLOW" == "snapshot" ]]; then
22+
LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $BRANCH)
23+
else
24+
echo "Unknown workflow: $WORKFLOW"
25+
exit 1
26+
fi
27+
1928
LATEST_VERSION=$(strip_version $LATEST_BUILD)
2029

2130
# If the latest artifact version doesn't match what we expect, try the corresponding version branch.

muted-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,6 @@ tests:
545545
- class: org.elasticsearch.qa.verify_version_constants.VerifyVersionConstantsIT
546546
method: testLuceneVersionConstant
547547
issue: https://github.com/elastic/elasticsearch/issues/125638
548-
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
549-
method: test
550-
issue: https://github.com/elastic/elasticsearch/issues/129819
551548
- class: org.elasticsearch.index.store.FsDirectoryFactoryTests
552549
method: testPreload
553550
issue: https://github.com/elastic/elasticsearch/issues/129852
@@ -575,6 +572,8 @@ tests:
575572
- class: org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT
576573
method: test
577574
issue: https://github.com/elastic/elasticsearch/issues/130067
575+
- class: geoip.GeoIpMultiProjectIT
576+
issue: https://github.com/elastic/elasticsearch/issues/130073
578577

579578
# Examples:
580579
#

qa/mixed-cluster/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ apply plugin: 'elasticsearch.rest-resources'
2323

2424
dependencies {
2525
restTestConfig project(path: ':modules:aggregations', configuration: 'restTests')
26+
restTestConfig project(path: ':modules:mapper-extras', configuration: 'restTests')
2627
}
2728

2829
restResources {

server/src/main/java/org/elasticsearch/index/engine/Engine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ public void close() throws IOException {
21992199
awaitPendingClose();
22002200
}
22012201

2202-
private void awaitPendingClose() {
2202+
protected final void awaitPendingClose() {
22032203
try {
22042204
closedLatch.await();
22052205
} catch (InterruptedException e) {

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/generative/GenerativeRestTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public abstract class GenerativeRestTest extends ESRestTestCase {
5050
"Plan \\[ProjectExec\\[\\[<no-fields>.* optimized incorrectly due to missing references", // https://github.com/elastic/elasticsearch/issues/125866
5151
"optimized incorrectly due to missing references", // https://github.com/elastic/elasticsearch/issues/116781
5252
"The incoming YAML document exceeds the limit:", // still to investigate, but it seems to be specific to the test framework
53+
"Data too large", // Circuit breaker exceptions eg. https://github.com/elastic/elasticsearch/issues/130072
5354

5455
// Awaiting fixes for correctness
5556
"Expecting the following columns \\[.*\\], got", // https://github.com/elastic/elasticsearch/issues/129000

x-pack/plugin/inference/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,3 +405,7 @@ tasks.named("thirdPartyAudit").configure {
405405
tasks.named('yamlRestTest') {
406406
usesDefaultDistribution("Uses the inference API")
407407
}
408+
409+
artifacts {
410+
restXpackTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test"))
411+
}

x-pack/qa/multi-project/core-rest-tests-with-multiple-projects/src/yamlRestTest/java/org/elasticsearch/multiproject/test/CoreWithMultipleProjectsClientYamlTestSuiteIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
1919
import org.junit.ClassRule;
2020

21-
@TimeoutSuite(millis = 30 * TimeUnits.MINUTE)
21+
@TimeoutSuite(millis = 45 * TimeUnits.MINUTE)
2222
public class CoreWithMultipleProjectsClientYamlTestSuiteIT extends MultipleProjectsClientYamlSuiteTestCase {
2323

2424
@ClassRule

x-pack/rest-resources-zip/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dependencies {
2727
platinumTests project(path: ':x-pack:plugin', configuration: 'restXpackTests')
2828
platinumTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restXpackTests')
2929
platinumTests project(path: ':x-pack:plugin:ent-search', configuration: 'restXpackTests')
30+
platinumTests project(path: ':x-pack:plugin:inference', configuration: 'restXpackTests')
3031
platinumCompatTests project(path: ':x-pack:plugin', configuration: 'restCompatTests')
3132
platinumCompatTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restCompatTests')
3233
}

0 commit comments

Comments
 (0)