Skip to content

Commit

Permalink
added retries
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Apr 24, 2024
1 parent 95e9929 commit cba2948
Show file tree
Hide file tree
Showing 14 changed files with 501 additions and 1 deletion.
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
20 changes: 20 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 Down Expand Up @@ -108,6 +124,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
40 changes: 40 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 Down Expand Up @@ -122,6 +134,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 +156,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 +182,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 +204,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 +226,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 +253,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 +274,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 cba2948

Please sign in to comment.