Skip to content

Commit

Permalink
Merge branch 'main' into dsl-updatesettings-privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Sep 7, 2023
2 parents 287870e + 7cd1987 commit 2dd5bfa
Show file tree
Hide file tree
Showing 863 changed files with 5,908 additions and 3,514 deletions.
66 changes: 66 additions & 0 deletions .buildkite/pipelines/intake.template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
steps:
- label: sanity-check
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files precommit
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- wait
- label: part1
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart1
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- label: part2
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart2
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- label: part3
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart3
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- group: bwc-snapshots
steps:
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
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
timeout_in_minutes: 300
matrix:
setup:
BWC_VERSION: $BWC_LIST
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: "{{matrix.BWC_VERSION}}"
- label: rest-compat
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkRestCompat
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- wait
- trigger: elasticsearch-dra-workflow
label: Trigger DRA snapshot workflow
async: true
build:
branch: "$BUILDKITE_BRANCH"
commit: "$BUILDKITE_COMMIT"
env:
DRA_WORKFLOW: snapshot
67 changes: 67 additions & 0 deletions .buildkite/pipelines/intake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# This file is auto-generated. See .buildkite/pipelines/intake.template.yml
steps:
- label: sanity-check
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files precommit
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- wait
- label: part1
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart1
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- label: part2
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart2
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- label: part3
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart3
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- group: bwc-snapshots
steps:
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
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
timeout_in_minutes: 300
matrix:
setup:
BWC_VERSION: ["7.17.13", "8.9.2", "8.10.0", "8.11.0"]
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: "{{matrix.BWC_VERSION}}"
- label: rest-compat
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkRestCompat
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- wait
- trigger: elasticsearch-dra-workflow
label: Trigger DRA snapshot workflow
async: true
build:
branch: "$BUILDKITE_BRANCH"
commit: "$BUILDKITE_COMMIT"
env:
DRA_WORKFLOW: snapshot
2 changes: 2 additions & 0 deletions .buildkite/scripts/dra-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ find "$WORKSPACE" -type d -path "*/build/distributions" -exec chmod a+w {} \;

echo --- Running release-manager

exit 0

# Artifacts should be generated
docker run --rm \
--name release-manager \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'build-benchmark'
builders:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'build-benchmark'
builders:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'test-windows'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
cancel-builds-on-update: true
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- 'test-full-bwc'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'cloud-deploy'
builders:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
cancel-builds-on-update: true
included-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
builders:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
builders:
Expand Down
1 change: 1 addition & 0 deletions .ci/jobs.t/elastic+elasticsearch+pull-request+full-bwc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
cancel-builds-on-update: true
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'test-full-bwc'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- ':Delivery/Packaging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- ':Delivery/Packaging'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- 7.16
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- ':Delivery/Packaging'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- 7.16
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- ':Delivery/Packaging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- 7.16
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- ':Delivery/Packaging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- ':Delivery/Packaging'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- ':Delivery/Packaging'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'Team:Security'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'test-windows'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'Team:Security'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'test-windows'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- 7.17
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'Team:Security'
black-list-labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- 7.17
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'test-windows'
black-list-labels:
Expand Down
1 change: 1 addition & 0 deletions .ci/jobs.t/elastic+elasticsearch+pull-request+part-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
cancel-builds-on-update: true
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
black-list-target-branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
cancel-builds-on-update: true
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
white-list-labels:
- 'test-release'
black-list-target-branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- 6.8
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
builders:
Expand Down
1 change: 1 addition & 0 deletions .ci/templates.t/pull-request-gradle-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
cancel-builds-on-update: true
excluded-regions:
- ^docs/.*
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
builders:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.elasticsearch.cluster.routing.RoutingTable;
import org.elasticsearch.cluster.routing.ShardRouting;
import org.elasticsearch.cluster.routing.allocation.AllocationService;
import org.elasticsearch.cluster.version.CompatibilityVersions;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.IndexVersion;
import org.openjdk.jmh.annotations.Benchmark;
Expand Down Expand Up @@ -140,17 +141,17 @@ public void setUp() throws Exception {
}
RoutingTable routingTable = rb.build();
DiscoveryNodes.Builder nb = DiscoveryNodes.builder();
Map<String, TransportVersion> transportVersions = new HashMap<>();
Map<String, CompatibilityVersions> compatibilityVersions = new HashMap<>();
for (int i = 1; i <= numNodes; i++) {
String id = "node" + i;
nb.add(Allocators.newNode(id, Collections.singletonMap("tag", "tag_" + (i % numTags))));
transportVersions.put(id, TransportVersion.current());
compatibilityVersions.put(id, new CompatibilityVersions(TransportVersion.current()));
}
initialClusterState = ClusterState.builder(ClusterName.DEFAULT)
.metadata(metadata)
.routingTable(routingTable)
.nodes(nb)
.transportVersions(transportVersions)
.compatibilityVersions(compatibilityVersions)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,5 @@ org.elasticsearch.cluster.service.ClusterService#submitUnbatchedStateUpdateTask(
org.elasticsearch.cluster.ClusterStateTaskExecutor$TaskContext#success(java.util.function.Consumer)
org.elasticsearch.cluster.ClusterStateTaskExecutor$TaskContext#success(java.util.function.Consumer, org.elasticsearch.cluster.ClusterStateAckListener)

@defaultMessage ClusterState#transportVersions are for internal use only. Use ClusterState#getMinTransportVersion or a different version. See TransportVersion javadocs for more info.
org.elasticsearch.cluster.ClusterState#transportVersions()
@defaultMessage ClusterState#compatibilityVersions are for internal use only. Use ClusterState#getMinVersions or a different version. See TransportVersion javadocs for more info.
org.elasticsearch.cluster.ClusterState#compatibilityVersions()
Loading

0 comments on commit 2dd5bfa

Please sign in to comment.