Skip to content

Commit 0df38b7

Browse files
committed
[CI] Refactors Buildkite to move main testing to YAML runner
1 parent 9bb0e73 commit 0df38b7

File tree

1 file changed

+21
-43
lines changed

1 file changed

+21
-43
lines changed

.buildkite/pipeline.yml

Lines changed: 21 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
steps:
2-
- label: ":ruby: {{ matrix.ruby_source}}:{{ matrix.ruby }} :phone: Transport: {{ matrix.transport }} :elasticsearch: Suite: {{ matrix.suite }}"
2+
- label: ":elasticsearch: Elasticsearch :ruby: {{ matrix.ruby_source}}:{{ matrix.ruby }} :phone: Transport {{ matrix.transport }} {{ matrix.suite }}"
33
agents:
44
provider: "gcp"
55
env:
@@ -14,63 +14,41 @@ steps:
1414
suite:
1515
- "free"
1616
- "platinum"
17+
ruby:
18+
- "3.3"
19+
transport:
20+
- "8.3"
21+
ruby_source:
22+
- "ruby"
23+
command: ./.buildkite/run-tests.sh
24+
# I'm publishing test results to HTML and JUnit in this directory and this directive makes them
25+
# available in the Artifacts tab of a build in Buildkite.
26+
artifact_paths: "elasticsearch-api/tmp/*"
27+
- label: ":yaml: YAML test suite :ruby: {{ matrix.ruby_source}}:{{ matrix.ruby }} :phone: Transport {{ matrix.transport }}"
28+
agents:
29+
provider: "gcp"
30+
matrix:
31+
setup:
1732
ruby:
1833
- "3.3"
1934
- "3.2"
2035
- "3.1"
2136
- "3.0"
37+
ruby_source:
38+
- "ruby"
2239
transport:
2340
- "8.3"
24-
ruby_source:
25-
- 'ruby'
26-
# Only run platinum once for the latest Ruby. You can use lots of combinations, check the
27-
# documentation on https://buildkite.com/docs/pipelines/build-matrix for more information.
2841
adjustments:
2942
- with:
30-
suite: "platinum"
31-
ruby: "3.2"
32-
skip: true
33-
- with:
34-
suite: "platinum"
35-
ruby: "3.1"
36-
skip: true
37-
- with:
38-
suite: "platinum"
39-
ruby: "3.0"
40-
skip: true
41-
- with:
42-
suite: "free"
43-
ruby: "3.3"
44-
ruby_source: "ruby"
45-
transport: "8.1"
46-
- with:
47-
suite: "free"
48-
ruby: "3.3"
49-
ruby_source: "ruby"
50-
transport: "8.2"
51-
- with:
52-
suite: "free"
53-
ruby: "3.3"
54-
ruby_source: "ruby"
55-
transport: "main"
56-
- with:
57-
suite: "free"
5843
ruby: "9.4"
5944
ruby_source: "jruby"
6045
transport: "8.3"
61-
command: ./.buildkite/run-tests.sh
62-
# I'm publishing test results to HTML and JUnit in this directory and this directive makes them
63-
# available in the Artifacts tab of a build in Buildkite.
64-
artifact_paths: "elasticsearch-api/tmp/*"
65-
- label: ":ruby: :yaml: Test suite"
66-
agents:
67-
provider: "gcp"
6846
env:
69-
RUBY_VERSION: "3.3"
47+
RUBY_VERSION: "{{ matrix.ruby }}"
7048
STACK_VERSION: 9.0.0-SNAPSHOT
7149
ES_YAML_TESTS_BRANCH: main
72-
TRANSPORT_VERSION: "8.3"
73-
RUBY_SOURCE: "ruby"
50+
TRANSPORT_VERSION: "{{ matrix.transport }}"
51+
RUBY_SOURCE: "{{ matrix.ruby_source }}"
7452
TEST_SUITE: "platinum"
7553
command: ./.buildkite/run-yaml-tests.sh
7654
- wait: ~

0 commit comments

Comments
 (0)