Skip to content

Commit fd8ea4e

Browse files
[8.18] (backport #18036) Split integration tests into more parts (#18038)
* Split integration tests into more parts (#18036) * Split integration tests into 4 parts Previously we were splitting in to 3 parts. The integration tests run in about 25 minutes. This commit updates the split to try to bring that time solidly under 20 minutes in CI. * Split integration testin into 6 parts Previously the tests were split into 3. splitting to 4 offered a small improvement. See how 6 does in buildkite. (cherry picked from commit 19d9914) # Conflicts: # .buildkite/pull_request_pipeline.yml * Fix merge conflict --------- Co-authored-by: Cas Donoghue <[email protected]>
1 parent 9092c6e commit fd8ea4e

File tree

1 file changed

+129
-18
lines changed

1 file changed

+129
-18
lines changed

.buildkite/pull_request_pipeline.yml

Lines changed: 129 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ steps:
7979
manual:
8080
allowed: true
8181

82-
- label: ":lab_coat: Integration Tests / part 1-of-3"
83-
key: "integration-tests-part-1-of-3"
82+
- label: ":lab_coat: Integration Tests / part 1-of-6"
83+
key: "integration-tests-part-1-of-6"
8484
agents:
8585
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
8686
cpu: "8"
@@ -95,10 +95,10 @@ steps:
9595
set -euo pipefail
9696
9797
source .buildkite/scripts/common/container-agent.sh
98-
ci/integration_tests.sh split 0 3
98+
ci/integration_tests.sh split 0 6
9999
100-
- label: ":lab_coat: Integration Tests / part 2-of-3"
101-
key: "integration-tests-part-2-of-3"
100+
- label: ":lab_coat: Integration Tests / part 2-of-6"
101+
key: "integration-tests-part-2-of-6"
102102
agents:
103103
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
104104
cpu: "8"
@@ -113,10 +113,10 @@ steps:
113113
set -euo pipefail
114114
115115
source .buildkite/scripts/common/container-agent.sh
116-
ci/integration_tests.sh split 1 3
116+
ci/integration_tests.sh split 1 6
117117
118-
- label: ":lab_coat: Integration Tests / part 3-of-3"
119-
key: "integration-tests-part-3-of-3"
118+
- label: ":lab_coat: Integration Tests / part 3-of-6"
119+
key: "integration-tests-part-3-of-6"
120120
agents:
121121
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
122122
cpu: "8"
@@ -131,10 +131,121 @@ steps:
131131
set -euo pipefail
132132
133133
source .buildkite/scripts/common/container-agent.sh
134-
ci/integration_tests.sh split 2 3
134+
ci/integration_tests.sh split 2 6
135135
136-
- label: ":lab_coat: IT Persistent Queues / part 1-of-3"
137-
key: "integration-tests-qa-part-1-of-3"
136+
- label: ":lab_coat: Integration Tests / part 4-of-6"
137+
key: "integration-tests-part-4-of-6"
138+
agents:
139+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
140+
cpu: "8"
141+
memory: "16Gi"
142+
ephemeralStorage: "100Gi"
143+
# Run as a non-root user
144+
imageUID: "1002"
145+
retry:
146+
automatic:
147+
- limit: 3
148+
command: |
149+
set -euo pipefail
150+
151+
source .buildkite/scripts/common/container-agent.sh
152+
ci/integration_tests.sh split 3 6
153+
154+
- label: ":lab_coat: Integration Tests / part 5-of-6"
155+
key: "integration-tests-part-5-of-6"
156+
agents:
157+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
158+
cpu: "8"
159+
memory: "16Gi"
160+
ephemeralStorage: "100Gi"
161+
# Run as a non-root user
162+
imageUID: "1002"
163+
retry:
164+
automatic:
165+
- limit: 3
166+
command: |
167+
set -euo pipefail
168+
169+
source .buildkite/scripts/common/container-agent.sh
170+
ci/integration_tests.sh split 4 6
171+
172+
- label: ":lab_coat: Integration Tests / part 6-of-6"
173+
key: "integration-tests-part-6-of-6"
174+
agents:
175+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
176+
cpu: "8"
177+
memory: "16Gi"
178+
ephemeralStorage: "100Gi"
179+
# Run as a non-root user
180+
imageUID: "1002"
181+
retry:
182+
automatic:
183+
- limit: 3
184+
command: |
185+
set -euo pipefail
186+
187+
source .buildkite/scripts/common/container-agent.sh
188+
ci/integration_tests.sh split 5 6
189+
190+
- label: ":lab_coat: IT Persistent Queues / part 1-of-6"
191+
key: "integration-tests-qa-part-1-of-6"
192+
agents:
193+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
194+
cpu: "8"
195+
memory: "16Gi"
196+
ephemeralStorage: "100Gi"
197+
# Run as non root (logstash) user. UID is hardcoded in image.
198+
imageUID: "1002"
199+
retry:
200+
automatic:
201+
- limit: 3
202+
command: |
203+
set -euo pipefail
204+
205+
source .buildkite/scripts/common/container-agent.sh
206+
export FEATURE_FLAG=persistent_queues
207+
ci/integration_tests.sh split 0 6
208+
209+
- label: ":lab_coat: IT Persistent Queues / part 2-of-6"
210+
key: "integration-tests-qa-part-2-of-6"
211+
agents:
212+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
213+
cpu: "8"
214+
memory: "16Gi"
215+
ephemeralStorage: "100Gi"
216+
# Run as non root (logstash) user. UID is hardcoded in image.
217+
imageUID: "1002"
218+
retry:
219+
automatic:
220+
- limit: 3
221+
command: |
222+
set -euo pipefail
223+
224+
source .buildkite/scripts/common/container-agent.sh
225+
export FEATURE_FLAG=persistent_queues
226+
ci/integration_tests.sh split 1 6
227+
228+
- label: ":lab_coat: IT Persistent Queues / part 3-of-6"
229+
key: "integration-tests-qa-part-3-of-6"
230+
agents:
231+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
232+
cpu: "8"
233+
memory: "16Gi"
234+
ephemeralStorage: "100Gi"
235+
# Run as non root (logstash) user. UID is hardcoded in image.
236+
imageUID: "1002"
237+
retry:
238+
automatic:
239+
- limit: 3
240+
command: |
241+
set -euo pipefail
242+
243+
source .buildkite/scripts/common/container-agent.sh
244+
export FEATURE_FLAG=persistent_queues
245+
ci/integration_tests.sh split 2 6
246+
247+
- label: ":lab_coat: IT Persistent Queues / part 4-of-6"
248+
key: "integration-tests-qa-part-4-of-6"
138249
agents:
139250
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
140251
cpu: "8"
@@ -150,10 +261,10 @@ steps:
150261
151262
source .buildkite/scripts/common/container-agent.sh
152263
export FEATURE_FLAG=persistent_queues
153-
ci/integration_tests.sh split 0 3
264+
ci/integration_tests.sh split 3 6
154265
155-
- label: ":lab_coat: IT Persistent Queues / part 2-of-3"
156-
key: "integration-tests-qa-part-2-of-3"
266+
- label: ":lab_coat: IT Persistent Queues / part 5-of-6"
267+
key: "integration-tests-qa-part-5-of-6"
157268
agents:
158269
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
159270
cpu: "8"
@@ -169,10 +280,10 @@ steps:
169280
170281
source .buildkite/scripts/common/container-agent.sh
171282
export FEATURE_FLAG=persistent_queues
172-
ci/integration_tests.sh split 1 3
283+
ci/integration_tests.sh split 4 6
173284
174-
- label: ":lab_coat: IT Persistent Queues / part 3-of-3"
175-
key: "integration-tests-qa-part-3-of-3"
285+
- label: ":lab_coat: IT Persistent Queues / part 6-of-6"
286+
key: "integration-tests-qa-part-6-of-6"
176287
agents:
177288
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
178289
cpu: "8"
@@ -188,7 +299,7 @@ steps:
188299
189300
source .buildkite/scripts/common/container-agent.sh
190301
export FEATURE_FLAG=persistent_queues
191-
ci/integration_tests.sh split 2 3
302+
ci/integration_tests.sh split 5 6
192303
193304
- label: ":lab_coat: x-pack unit tests"
194305
key: "x-pack-unit-tests"

0 commit comments

Comments
 (0)