Skip to content

Commit

Permalink
Merge branch 'main' into blockFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHegarty committed Sep 19, 2023
2 parents 91199de + 7f4b9bb commit fbb02ff
Show file tree
Hide file tree
Showing 238 changed files with 3,263 additions and 1,500 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipelines/intake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ steps:
timeout_in_minutes: 300
matrix:
setup:
BWC_VERSION: ["7.17.14", "8.10.1", "8.11.0"]
BWC_VERSION: ["7.17.14", "8.10.2", "8.11.0"]
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
Expand Down
16 changes: 16 additions & 0 deletions .buildkite/pipelines/periodic-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,22 @@ steps:
env:
BWC_VERSION: 8.10.1

- label: "{{matrix.image}} / 8.10.2 / packaging-tests-upgrade"
command: ./.ci/scripts/packaging-test.sh --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.10.2
timeout_in_minutes: 300
matrix:
setup:
image:
- rocky-8
- ubuntu-2004
agents:
provider: gcp
image: family/elasticsearch-{{matrix.image}}
machineType: custom-16-32768
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: 8.10.2

- label: "{{matrix.image}} / 8.11.0 / packaging-tests-upgrade"
command: ./.ci/scripts/packaging-test.sh --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.11.0
timeout_in_minutes: 300
Expand Down
4 changes: 2 additions & 2 deletions .buildkite/pipelines/periodic-platform-support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ steps:
provider: gcp
image: family/elasticsearch-{{matrix.image}}
diskSizeGb: 350
machineType: custom-32-98304
machineType: n1-standard-32
env: {}
- group: platform-support-windows
steps:
Expand All @@ -50,7 +50,7 @@ steps:
agents:
provider: gcp
image: family/elasticsearch-{{matrix.image}}
machineType: custom-32-98304
machineType: n1-standard-32
diskType: pd-ssd
diskSizeGb: 350
env:
Expand Down
10 changes: 10 additions & 0 deletions .buildkite/pipelines/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,16 @@ steps:
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: 8.10.1
- label: 8.10.2 / bwc
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.10.2#bwcTest
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
env:
BWC_VERSION: 8.10.2
- label: 8.11.0 / bwc
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.11.0#bwcTest
timeout_in_minutes: 300
Expand Down
1 change: 1 addition & 0 deletions .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ BWC_VERSION:
- "8.9.2"
- "8.10.0"
- "8.10.1"
- "8.10.2"
- "8.11.0"
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- ^x-pack/docs/.*
white-list-labels:
- 'build-benchmark'
black-list-labels:
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- ^x-pack/docs/.*
white-list-labels:
- 'build-benchmark'
black-list-labels:
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- 'test-windows'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
axes:
- axis:
type: slave
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
black-list-labels:
- '>test-mute'
- 'test-full-bwc'
- 'buildkite-opt-in'
axes:
- axis:
type: slave
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
- ^x-pack/docs/.*
white-list-labels:
- 'cloud-deploy'
black-list-labels:
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
- build-tools/.*
- build-tools-internal/.*
- plugins/examples/.*
black-list-labels:
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
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 @@ -27,6 +27,7 @@
- 'test-full-bwc'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
axes:
- axis:
type: slave
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
black-list-labels:
- '>test-mute'
- ':Delivery/Packaging'
- 'buildkite-opt-in'
axes:
- axis:
type: label-expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- ':Delivery/Packaging'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
axes:
- axis:
type: label-expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- ':Delivery/Packaging'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
axes:
- axis:
type: label-expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
black-list-labels:
- '>test-mute'
- ':Delivery/Packaging'
- 'buildkite-opt-in'
axes:
- axis:
type: label-expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
black-list-labels:
- '>test-mute'
- ':Delivery/Packaging'
- 'buildkite-opt-in'
axes:
- axis:
type: label-expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- ':Delivery/Packaging'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
axes:
- axis:
type: label-expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- ':Delivery/Packaging'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
axes:
- axis:
type: label-expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- 'Team:Security'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
# Use FIPS-specific Java versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- 'test-windows'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- 'Team:Security'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
# Use FIPS-specific Java versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- 'test-windows'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- 'Team:Security'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
# Use FIPS-specific Java versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- 'test-windows'
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
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 @@ -23,6 +23,7 @@
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
black-list-target-branches:
- 6.8
- 7.17
Expand Down
2 changes: 2 additions & 0 deletions .ci/jobs.t/elastic+elasticsearch+pull-request+precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
cancel-builds-on-update: true
white-list-labels:
- '>test-mute'
black-list-labels:
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
- ^x-pack/docs/.*
white-list-labels:
- 'test-release'
black-list-labels:
- 'buildkite-opt-in'
black-list-target-branches:
- 7.15
- 6.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
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.14"
- "8.10.1"
- "8.10.2"
- "8.11.0"
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 @@ -23,6 +23,7 @@
- ^x-pack/docs/.*
black-list-labels:
- '>test-mute'
- 'buildkite-opt-in'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
package org.elasticsearch.benchmark.compute.operator;

import org.apache.lucene.util.BytesRef;
import org.elasticsearch.common.breaker.CircuitBreaker;
import org.elasticsearch.common.settings.ClusterSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.compute.data.Block;
import org.elasticsearch.compute.data.BooleanBlock;
import org.elasticsearch.compute.data.BytesRefBlock;
Expand All @@ -20,6 +23,8 @@
import org.elasticsearch.compute.operator.Operator;
import org.elasticsearch.compute.operator.topn.TopNEncoder;
import org.elasticsearch.compute.operator.topn.TopNOperator;
import org.elasticsearch.indices.breaker.CircuitBreakerService;
import org.elasticsearch.indices.breaker.HierarchyCircuitBreakerService;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
Expand Down Expand Up @@ -96,7 +101,13 @@ private static Operator operator(String data, int topCount) {
case LONGS_AND_BYTES_REFS -> List.of(TopNEncoder.DEFAULT_SORTABLE, TopNEncoder.UTF8);
default -> throw new IllegalArgumentException("unsupported data type [" + data + "]");
};
CircuitBreakerService breakerService = new HierarchyCircuitBreakerService(
Settings.EMPTY,
List.of(),
ClusterSettings.createBuiltInClusterSettings()
);
return new TopNOperator(
breakerService.getBreaker(CircuitBreaker.REQUEST),
topCount,
elementTypes,
encoders,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class TestingConventionsPrecommitPluginFuncTest extends AbstractGradleInternalPl

def "applies conventions on yaml-rest-test tests"() {
given:
buildApiRestrictionsDisabled = true
clazz(dir('src/yamlRestTest/java'), "org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase")
buildFile << """
apply plugin:'elasticsearch.legacy-yaml-rest-test'
Expand Down Expand Up @@ -211,6 +212,7 @@ class TestingConventionsPrecommitPluginFuncTest extends AbstractGradleInternalPl
@Unroll
def "applies conventions on #sourceSetName tests"() {
given:
buildApiRestrictionsDisabled = pluginName.contains('legacy')
clazz(dir("src/${sourceSetName}/java"), "org.elasticsearch.test.ESIntegTestCase")
clazz(dir("src/${sourceSetName}/java"), "org.elasticsearch.test.rest.ESRestTestCase")
buildFile << """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class LegacyYamlRestCompatTestPluginFuncTest extends AbstractRestResourcesFuncTe
// 1. TestClustersPlugin not cc compatible due to listener registration
// 2. RestIntegTestTask not cc compatible due to
configurationCacheCompatible = false
buildApiRestrictionsDisabled = true
}

def "yamlRestTestVxCompatTest does nothing when there are no tests"() {
given:
subProject(":distribution:bwc:maintenance") << """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import org.gradle.testkit.runner.TaskOutcome
@IgnoreIf({ os.isWindows() })
class LegacyYamlRestTestPluginFuncTest extends AbstractRestResourcesFuncTest {

def setup() {
buildApiRestrictionsDisabled = true
}


def "yamlRestTest does nothing when there are no tests"() {
given:
// RestIntegTestTask not cc compatible due to
Expand Down
Loading

0 comments on commit fbb02ff

Please sign in to comment.