Skip to content

Commit e965efd

Browse files
authored
Merge branch 'main' into disable_ml_on_macos_x86_64
2 parents f479aa1 + 3c0a975 commit e965efd

File tree

22,357 files changed

+998068
-287333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

22,357 files changed

+998068
-287333
lines changed

.backportrc.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"upstream" : "elastic/elasticsearch",
3-
"targetBranchChoices" : [ "main", "8.12", "8.11", "8.10", "8.9", "8.8", "8.7", "8.6", "8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.17", "6.8" ],
3+
"targetBranchChoices" : [ "main", "8.x", "8.16", "8.15", "8.14", "8.13", "8.12", "8.11", "8.10", "8.9", "8.8", "8.7", "8.6", "8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.17", "6.8" ],
44
"targetPRLabels" : [ "backport" ],
55
"branchLabelMapping" : {
6-
"^v8.13.0$" : "main",
6+
"^v9.0.0$" : "main",
7+
"^v8.17.0$" : "8.x",
78
"^v(\\d+).(\\d+).\\d+(?:-(?:alpha|beta|rc)\\d+)?$" : "$1.$2"
89
}
9-
}
10+
}

.buildkite/hooks/pre-command

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export COMPOSE_HTTP_TIMEOUT
1616
JOB_BRANCH="$BUILDKITE_BRANCH"
1717
export JOB_BRANCH
1818

19-
GRADLEW="./gradlew --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
19+
GRADLEW="./gradlew --console=plain --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
2020
export GRADLEW
2121

22-
GRADLEW_BAT="./gradlew.bat --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
22+
GRADLEW_BAT="./gradlew.bat --console=plain --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
2323
export GRADLEW_BAT
2424

2525
export $(cat .ci/java-versions.properties | grep '=' | xargs)
@@ -78,11 +78,15 @@ if [[ "${USE_SNYK_CREDENTIALS:-}" == "true" ]]; then
7878
fi
7979

8080
if [[ "${USE_PROD_DOCKER_CREDENTIALS:-}" == "true" ]]; then
81-
DOCKER_REGISTRY_USERNAME="$(vault read -field=username secret/ci/elastic-elasticsearch/migrated/prod_docker_registry_credentials)"
82-
export DOCKER_REGISTRY_USERNAME
81+
if which docker > /dev/null 2>&1; then
82+
DOCKER_REGISTRY_USERNAME="$(vault read -field=username secret/ci/elastic-elasticsearch/migrated/prod_docker_registry_credentials)"
83+
export DOCKER_REGISTRY_USERNAME
8384

84-
DOCKER_REGISTRY_PASSWORD="$(vault read -field=password secret/ci/elastic-elasticsearch/migrated/prod_docker_registry_credentials)"
85-
export DOCKER_REGISTRY_PASSWORD
85+
DOCKER_REGISTRY_PASSWORD="$(vault read -field=password secret/ci/elastic-elasticsearch/migrated/prod_docker_registry_credentials)"
86+
export DOCKER_REGISTRY_PASSWORD
87+
88+
docker login --username "$DOCKER_REGISTRY_USERNAME" --password "$DOCKER_REGISTRY_PASSWORD" docker.elastic.co
89+
fi
8690
fi
8791

8892
if [[ "$BUILDKITE_AGENT_META_DATA_PROVIDER" != *"k8s"* ]]; then
@@ -105,3 +109,11 @@ EOF
105109
<summary>Agent information from gobld</summary>
106110
EOF
107111
fi
112+
113+
# Amazon Linux 2 has DNS resolution issues with resource-based hostnames in EC2
114+
# We have many functional tests that try to lookup and resolve the hostname of the local machine in a particular way
115+
# And they fail. This sets up a manual entry for the hostname in dnsmasq.
116+
if [[ -f /etc/os-release ]] && grep -q '"Amazon Linux 2"' /etc/os-release; then
117+
echo "$(hostname -i | cut -d' ' -f 2) $(hostname -f)." | sudo tee /etc/dnsmasq.hosts
118+
sudo systemctl restart dnsmasq.service
119+
fi

.buildkite/hooks/pre-command.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ set JOB_BRANCH=%BUILDKITE_BRANCH%
1818
set GRADLE_BUILD_CACHE_USERNAME=vault read -field=username secret/ci/elastic-elasticsearch/migrated/gradle-build-cache
1919
set GRADLE_BUILD_CACHE_PASSWORD=vault read -field=password secret/ci/elastic-elasticsearch/migrated/gradle-build-cache
2020

21+
bash.exe -c "nohup bash .buildkite/scripts/setup-monitoring.sh </dev/null >/dev/null 2>&1 &"
22+
2123
exit /b 0

.buildkite/packer_cache.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ for branch in "${branches[@]}"; do
2929
fi
3030

3131
export JAVA_HOME="$HOME/.java/$ES_BUILD_JAVA"
32-
"checkout/${branch}/gradlew" --project-dir "$CHECKOUT_DIR" --parallel -s resolveAllDependencies -Dorg.gradle.warning.mode=none -DisCI
32+
"checkout/${branch}/gradlew" --project-dir "$CHECKOUT_DIR" --parallel -s resolveAllDependencies -Dorg.gradle.warning.mode=none -DisCI --max-workers=4
33+
"checkout/${branch}/gradlew" --stop
34+
pkill -f '.*GradleDaemon.*'
3335
rm -rf "checkout/${branch}"
3436
done

.buildkite/pipelines/dra-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ steps:
22
- command: .buildkite/scripts/dra-workflow.sh
33
env:
44
USE_DRA_CREDENTIALS: "true"
5+
USE_PROD_DOCKER_CREDENTIALS: "true"
56
agents:
67
provider: gcp
78
image: family/elasticsearch-ubuntu-2204
89
machineType: custom-32-98304
9-
buildDirectory: /dev/shm/bk
10+
localSsds: 1
11+
localSsdInterface: nvme
12+
diskSizeGb: 350
1013
- wait
1114
# The hadoop build depends on the ES artifact
1215
# So let's trigger the hadoop build any time we build a new staging artifact
@@ -16,4 +19,5 @@ steps:
1619
branch: "${BUILDKITE_BRANCH}"
1720
env:
1821
DRA_WORKFLOW: staging
22+
USE_PROD_DOCKER_CREDENTIALS: "true"
1923
if: build.env('DRA_WORKFLOW') == 'staging'

.buildkite/pipelines/intake.template.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ steps:
4040
image: family/elasticsearch-ubuntu-2004
4141
machineType: n1-standard-32
4242
buildDirectory: /dev/shm/bk
43+
- label: part5
44+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart5
45+
timeout_in_minutes: 300
46+
agents:
47+
provider: gcp
48+
image: family/elasticsearch-ubuntu-2004
49+
machineType: n1-standard-32
50+
buildDirectory: /dev/shm/bk
4351
- group: bwc-snapshots
4452
steps:
4553
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
@@ -67,6 +75,7 @@ steps:
6775
- trigger: elasticsearch-dra-workflow
6876
label: Trigger DRA snapshot workflow
6977
async: true
78+
branches: "main 8.* 7.17"
7079
build:
7180
branch: "$BUILDKITE_BRANCH"
7281
commit: "$BUILDKITE_COMMIT"

.buildkite/pipelines/intake.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,22 @@ steps:
4141
image: family/elasticsearch-ubuntu-2004
4242
machineType: n1-standard-32
4343
buildDirectory: /dev/shm/bk
44+
- label: part5
45+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart5
46+
timeout_in_minutes: 300
47+
agents:
48+
provider: gcp
49+
image: family/elasticsearch-ubuntu-2004
50+
machineType: n1-standard-32
51+
buildDirectory: /dev/shm/bk
4452
- group: bwc-snapshots
4553
steps:
4654
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
4755
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files v$$BWC_VERSION#bwcTest
4856
timeout_in_minutes: 300
4957
matrix:
5058
setup:
51-
BWC_VERSION: ["7.17.17", "8.11.5", "8.12.0", "8.13.0"]
59+
BWC_VERSION: ["8.16.1", "8.17.0", "9.0.0"]
5260
agents:
5361
provider: gcp
5462
image: family/elasticsearch-ubuntu-2004
@@ -68,6 +76,7 @@ steps:
6876
- trigger: elasticsearch-dra-workflow
6977
label: Trigger DRA snapshot workflow
7078
async: true
79+
branches: "main 8.* 7.17"
7180
build:
7281
branch: "$BUILDKITE_BRANCH"
7382
commit: "$BUILDKITE_COMMIT"

.buildkite/pipelines/lucene-snapshot/run-tests.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ steps:
3232
image: family/elasticsearch-ubuntu-2004
3333
machineType: custom-32-98304
3434
buildDirectory: /dev/shm/bk
35+
- label: part4
36+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart4
37+
timeout_in_minutes: 300
38+
agents:
39+
provider: gcp
40+
image: family/elasticsearch-ubuntu-2004
41+
machineType: custom-32-98304
42+
buildDirectory: /dev/shm/bk
43+
- label: part5
44+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart5
45+
timeout_in_minutes: 300
46+
agents:
47+
provider: gcp
48+
image: family/elasticsearch-ubuntu-2004
49+
machineType: custom-32-98304
50+
buildDirectory: /dev/shm/bk
3551
- group: bwc-snapshots
3652
steps:
3753
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
@@ -40,7 +56,6 @@ steps:
4056
matrix:
4157
setup:
4258
BWC_VERSION:
43-
- 7.17.13
4459
- 8.9.1
4560
- 8.10.0
4661
agents:

.buildkite/pipelines/periodic-packaging.template.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ steps:
33
steps:
44
- label: "{{matrix.image}} / packaging-tests-unix"
55
command: ./.ci/scripts/packaging-test.sh destructivePackagingTest
6-
timeout_in_minutes: 300
6+
timeout_in_minutes: 420
77
matrix:
88
setup:
99
image:
10-
- centos-7
11-
- debian-10
1210
- debian-11
1311
- opensuse-leap-15
1412
- oraclelinux-7
@@ -28,8 +26,9 @@ steps:
2826
provider: gcp
2927
image: family/elasticsearch-{{matrix.image}}
3028
diskSizeGb: 350
31-
machineType: custom-16-32768
32-
env: {}
29+
machineType: n1-standard-8
30+
env:
31+
USE_PROD_DOCKER_CREDENTIALS: "true"
3332
- group: packaging-tests-upgrade
3433
steps: $BWC_STEPS
3534
- group: packaging-tests-windows
@@ -41,8 +40,6 @@ steps:
4140
matrix:
4241
setup:
4342
image:
44-
- windows-2016
45-
- windows-2019
4643
- windows-2022
4744
agents:
4845
provider: gcp

0 commit comments

Comments
 (0)