Skip to content

Commit

Permalink
added retries
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Apr 26, 2024
1 parent 3aa9cec commit 75843bb
Show file tree
Hide file tree
Showing 15 changed files with 501 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Expand Up @@ -113,6 +113,10 @@ steps:
make -C auditbeat crosscompile
env:
GOX_FLAGS: "-arch amd64"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand Down
48 changes: 48 additions & 0 deletions .buildkite/heartbeat/heartbeat-pipeline.yml
Expand Up @@ -30,6 +30,10 @@ steps:
command: |
cd heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -45,6 +49,10 @@ steps:
command: |
cd heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_RHEL9}"
Expand All @@ -61,6 +69,10 @@ steps:
command: |
Set-Location -Path heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_2016}"
Expand All @@ -78,6 +90,10 @@ steps:
command: |
Set-Location -Path heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_2022}"
Expand All @@ -94,6 +110,10 @@ steps:
command: |
cd heartbeat
mage goIntegTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -109,6 +129,10 @@ steps:
command: |
cd heartbeat
mage pythonIntegTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -130,6 +154,10 @@ steps:
command: |
cd heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand All @@ -151,6 +179,10 @@ steps:
source .buildkite/scripts/install_macos_tools.sh
cd heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "orka"
imagePrefix: "${IMAGE_MACOS_X86_64}"
Expand All @@ -168,6 +200,10 @@ steps:
source .buildkite/scripts/install_macos_tools.sh
cd heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "orka"
imagePrefix: "${IMAGE_MACOS_ARM}"
Expand All @@ -188,6 +224,10 @@ steps:
command: |
Set-Location -Path heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_2019}"
Expand All @@ -205,6 +245,10 @@ steps:
command: |
Set-Location -Path heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_11}"
Expand All @@ -222,6 +266,10 @@ steps:
command: |
Set-Location -Path heartbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_10}"
Expand Down
24 changes: 24 additions & 0 deletions .buildkite/libbeat/pipeline.libbeat.yml
Expand Up @@ -21,6 +21,10 @@ steps:
set -euo pipefail
cd libbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -38,6 +42,10 @@ steps:
set -euo pipefail
cd libbeat
mage goIntegTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -55,6 +63,10 @@ steps:
set -euo pipefail
cd libbeat
mage pythonIntegTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -72,6 +84,10 @@ steps:
set -euo pipefail
cd libbeat
make crosscompile
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -89,6 +105,10 @@ steps:
set -euo pipefail
cd libbeat
make STRESS_TEST_OPTIONS='-timeout=20m -race -v -parallel 1' GOTEST_OUTPUT_OPTIONS=' | go-junit-report > libbeat-stress-test.xml' stress-tests
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -108,6 +128,10 @@ steps:
set -euo pipefail
cd libbeat
mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down
44 changes: 44 additions & 0 deletions .buildkite/metricbeat/pipeline.yml
Expand Up @@ -32,6 +32,10 @@ steps:
- label: ":linux: Ubuntu Unit Tests"
key: "mandatory-linux-unit-test"
command: "cd metricbeat && mage build unitTest"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand Down Expand Up @@ -62,6 +66,10 @@ steps:
echo "~~~ Running tests"
export KUBECONFIG="$$PWD/kubecfg"
cd metricbeat && mage goIntegTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand Down Expand Up @@ -92,6 +100,10 @@ steps:
echo "~~~ Running tests"
export KUBECONFIG="$$PWD/kubecfg"
cd metricbeat && mage pythonIntegTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -106,6 +118,10 @@ steps:
- label: ":negative_squared_cross_mark: Cross compile"
key: "mandatory-cross-compile"
command: "make -C metricbeat crosscompile"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -122,6 +138,10 @@ steps:
Set-Location -Path metricbeat
mage build unitTest
key: "mandatory-win-2016-unit-tests"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_2016}"
Expand All @@ -140,6 +160,10 @@ steps:
Set-Location -Path metricbeat
mage build unitTest
key: "mandatory-win-2022-unit-tests"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_2022}"
Expand All @@ -162,6 +186,10 @@ steps:
Set-Location -Path metricbeat
mage build unitTest
key: "extended-win-10-unit-tests"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_10}"
Expand All @@ -180,6 +208,10 @@ steps:
Set-Location -Path metricbeat
mage build unitTest
key: "extended-win-11-unit-tests"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_11}"
Expand All @@ -198,6 +230,10 @@ steps:
Set-Location -Path metricbeat
mage build unitTest
key: "extended-win-2019-unit-tests"
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_2019}"
Expand All @@ -221,6 +257,10 @@ steps:
set -euo pipefail
source .buildkite/scripts/install_macos_tools.sh
cd metricbeat && mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "orka"
imagePrefix: "${IMAGE_MACOS_X86_64}"
Expand All @@ -238,6 +278,10 @@ steps:
set -euo pipefail
source .buildkite/scripts/install_macos_tools.sh
cd metricbeat && mage build unitTest
retry:
automatic:
- exit_status: 1
limit: 3
agents:
provider: "orka"
imagePrefix: "${IMAGE_MACOS_ARM}"
Expand Down

0 comments on commit 75843bb

Please sign in to comment.