Skip to content

Commit 17a9069

Browse files
authored
Merge branch '9.1' into backport/9.1/pr-134597
2 parents f54d3e4 + d447fb9 commit 17a9069

File tree

24 files changed

+273
-31
lines changed

24 files changed

+273
-31
lines changed

.buildkite/pipelines/intake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ steps:
6565
timeout_in_minutes: 300
6666
matrix:
6767
setup:
68-
BWC_VERSION: ["8.18.8", "8.19.4", "9.1.4"]
68+
BWC_VERSION: ["8.18.8", "8.19.4", "9.0.8", "9.1.4"]
6969
agents:
7070
provider: gcp
7171
image: family/elasticsearch-ubuntu-2404

.buildkite/pipelines/periodic-java-ea.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
env:
2-
JAVA_EA_VERSION: "${JAVA_EA_VERSION:-25-pre}"
2+
JAVA_EA_VERSION: "${JAVA_EA_VERSION:-26-pre}"
33

44
steps:
55
- group: bwc

.buildkite/pipelines/periodic-java-ea.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is auto-generated. See .buildkite/pipelines/periodic-java-ea.template.yml
22
env:
3-
JAVA_EA_VERSION: "${JAVA_EA_VERSION:-25-pre}"
3+
JAVA_EA_VERSION: "${JAVA_EA_VERSION:-26-pre}"
44

55
steps:
66
- group: bwc
@@ -385,8 +385,8 @@ steps:
385385
- signal_reason: agent_stop
386386
limit: 3
387387

388-
- label: 9.0.7 / bwc
389-
command: .ci/scripts/run-gradle.sh -Druntime.java=$$JAVA_EA_VERSION -Dbwc.checkout.align=true v9.0.7#bwcTest
388+
- label: 9.0.8 / bwc
389+
command: .ci/scripts/run-gradle.sh -Druntime.java=$$JAVA_EA_VERSION -Dbwc.checkout.align=true v9.0.8#bwcTest
390390
timeout_in_minutes: 300
391391
agents:
392392
provider: gcp
@@ -395,7 +395,7 @@ steps:
395395
buildDirectory: /dev/shm/bk
396396
preemptible: true
397397
env:
398-
BWC_VERSION: 9.0.7
398+
BWC_VERSION: 9.0.8
399399
retry:
400400
automatic:
401401
- exit_status: "-1"
@@ -477,7 +477,7 @@ steps:
477477
timeout_in_minutes: 300
478478
matrix:
479479
setup:
480-
BWC_VERSION: ["8.18.8", "8.19.4", "9.1.4"]
480+
BWC_VERSION: ["8.18.8", "8.19.4", "9.0.8", "9.1.4"]
481481
agents:
482482
provider: gcp
483483
image: family/elasticsearch-ubuntu-2404

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ steps:
350350
env:
351351
BWC_VERSION: 8.19.4
352352

353-
- label: "{{matrix.image}} / 9.0.7 / packaging-tests-upgrade"
354-
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.0.7
353+
- label: "{{matrix.image}} / 9.0.8 / packaging-tests-upgrade"
354+
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.0.8
355355
timeout_in_minutes: 300
356356
matrix:
357357
setup:
@@ -364,7 +364,7 @@ steps:
364364
machineType: custom-16-32768
365365
buildDirectory: /dev/shm/bk
366366
env:
367-
BWC_VERSION: 9.0.7
367+
BWC_VERSION: 9.0.8
368368

369369
- label: "{{matrix.image}} / 9.1.4 / packaging-tests-upgrade"
370370
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.1.4

.buildkite/pipelines/periodic.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ steps:
382382
- signal_reason: agent_stop
383383
limit: 3
384384

385-
- label: 9.0.7 / bwc
386-
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.0.7#bwcTest
385+
- label: 9.0.8 / bwc
386+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.0.8#bwcTest
387387
timeout_in_minutes: 300
388388
agents:
389389
provider: gcp
@@ -392,7 +392,7 @@ steps:
392392
buildDirectory: /dev/shm/bk
393393
preemptible: true
394394
env:
395-
BWC_VERSION: 9.0.7
395+
BWC_VERSION: 9.0.8
396396
retry:
397397
automatic:
398398
- exit_status: "-1"
@@ -487,7 +487,7 @@ steps:
487487
setup:
488488
ES_RUNTIME_JAVA:
489489
- openjdk21
490-
BWC_VERSION: ["8.18.8", "8.19.4", "9.1.4"]
490+
BWC_VERSION: ["8.18.8", "8.19.4", "9.0.8", "9.1.4"]
491491
agents:
492492
provider: gcp
493493
image: family/elasticsearch-ubuntu-2404
@@ -531,7 +531,7 @@ steps:
531531
ES_RUNTIME_JAVA:
532532
- openjdk21
533533
- openjdk23
534-
BWC_VERSION: ["8.18.8", "8.19.4", "9.1.4"]
534+
BWC_VERSION: ["8.18.8", "8.19.4", "9.0.8", "9.1.4"]
535535
agents:
536536
provider: gcp
537537
image: family/elasticsearch-ubuntu-2404

.ci/bwcVersions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ BWC_VERSION:
1919
- "8.17.10"
2020
- "8.18.8"
2121
- "8.19.4"
22-
- "9.0.7"
22+
- "9.0.8"
2323
- "9.1.4"

.ci/snapshotBwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
BWC_VERSION:
22
- "8.18.8"
33
- "8.19.4"
4+
- "9.0.8"
45
- "9.1.4"

build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/transport/AbstractTransportVersionFuncTest.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ class AbstractTransportVersionFuncTest extends AbstractGradleFuncTest {
152152
"""
153153

154154
setupLocalGitRepo()
155-
execute("git checkout -b main")
155+
String currentBranch = execute("git branch --show-current")
156+
if (currentBranch.strip().equals("main") == false) {
157+
// make sure a main branch exists, some CI doesn't have main set as the default branch
158+
execute("git checkout -b main")
159+
}
156160
execute("git checkout -b test")
157161
}
158162

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/transport/TransportVersionResourcesService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ TransportVersionDefinition getReferableDefinitionFromUpstream(String name) {
123123
/** Get the definition names which have local changes relative to upstream */
124124
List<String> getChangedReferableDefinitionNames() {
125125
List<String> changedDefinitions = new ArrayList<>();
126-
String referablePrefix = REFERABLE_DIR.toString();
126+
// make sure the prefix is git style paths, always forward slashes
127+
String referablePrefix = REFERABLE_DIR.toString().replace('\\', '/');
127128
for (String changedPath : getChangedResources()) {
128129
if (changedPath.contains(referablePrefix) == false) {
129130
continue;
@@ -292,7 +293,7 @@ private Set<String> getChangedResources() {
292293
synchronized (changedResources) {
293294
HashSet<String> resources = new HashSet<>();
294295

295-
String diffOutput = gitCommand("diff", "--name-only", getUpstreamRefName(), ".");
296+
String diffOutput = gitCommand("diff", "--name-only", "--relative", getUpstreamRefName(), ".");
296297
if (diffOutput.strip().isEmpty() == false) {
297298
Collections.addAll(resources, diffOutput.split("\n")); // git always outputs LF
298299
}

docs/changelog/134461.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 134461
2+
summary: Propagates filter() to aggregation functions' surrogates
3+
area: Aggregations
4+
type: bug
5+
issues:
6+
- 134380

0 commit comments

Comments
 (0)