Skip to content

Commit 0ceaab5

Browse files
committed
[DO NOT MERGE] Retry upgrade integration tests multiple times to test flaky tests
1 parent eebfde5 commit 0ceaab5

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

.buildkite/bk.integration.pipeline.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,31 @@ steps:
155155
- upgrade-flavor
156156
- install-uninstall
157157

158+
- label: "Win2022:sudo: repeated-{{matrix}}"
159+
depends_on:
160+
- packaging-windows
161+
env:
162+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
163+
command: |
164+
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
165+
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} true
166+
artifact_paths:
167+
- build/**
168+
- build/diagnostics/**
169+
agents:
170+
provider: "gcp"
171+
machineType: "n2-standard-8"
172+
image: "${IMAGE_WIN_2022}"
173+
retry:
174+
automatic:
175+
limit: 10
176+
# this is not a typo we want to retry successful run to "stress" flaky test execution
177+
exit_status: 0
178+
manual:
179+
permit_on_passed: true
180+
matrix:
181+
- upgrade
182+
158183
- label: "Win2022:non-sudo:{{matrix}}"
159184
depends_on:
160185
- packaging-windows
@@ -204,6 +229,31 @@ steps:
204229
- upgrade-flavor
205230
- install-uninstall
206231

232+
- label: "Win2025:sudo:repeated-{{matrix}}"
233+
depends_on:
234+
- packaging-windows
235+
env:
236+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
237+
command: |
238+
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
239+
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} true
240+
artifact_paths:
241+
- build/**
242+
- build/diagnostics/**
243+
agents:
244+
provider: "gcp"
245+
machineType: "n2-standard-8"
246+
image: "${IMAGE_WIN_2025}"
247+
retry:
248+
automatic:
249+
limit: 10
250+
# this is not a typo we want to retry successful run to "stress" flaky test execution
251+
exit_status: 0
252+
manual:
253+
permit_on_passed: true
254+
matrix:
255+
- upgrade
256+
207257
- label: "Win2025:non-sudo:{{matrix}}"
208258
depends_on:
209259
- packaging-windows
@@ -288,6 +338,32 @@ steps:
288338
- deb
289339
- container
290340

341+
- label: "x86_64:sudo: repeated {{matrix}}"
342+
depends_on:
343+
- packaging-ubuntu-x86-64
344+
# due to deb group present in matrix tar.gz and deb packages artifacts are required
345+
env:
346+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
347+
command: |
348+
buildkite-agent artifact download build/distributions/** . --step packaging-ubuntu-x86-64
349+
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
350+
artifact_paths:
351+
- build/**
352+
- build/diagnostics/**
353+
retry:
354+
automatic:
355+
limit: 10
356+
# this is not a typo we want to retry successful run to "stress" flaky test execution
357+
exit_status: 0
358+
manual:
359+
permit_on_passed: true
360+
agents:
361+
provider: "gcp"
362+
machineType: "n2-standard-8"
363+
image: "${IMAGE_UBUNTU_2404_X86_64}"
364+
matrix:
365+
- upgrade
366+
291367
- label: "arm:sudo: {{matrix}}"
292368
depends_on:
293369
- packaging-ubuntu-arm64

0 commit comments

Comments
 (0)