Skip to content

Commit e6929cf

Browse files
committed
[DO NOT MERGE] Retry upgrade integration tests multiple times to test flaky tests
1 parent 6f04d7a commit e6929cf

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
@@ -158,6 +158,31 @@ steps:
158158
- upgrade-flavor
159159
- install-uninstall
160160

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

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

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

0 commit comments

Comments
 (0)