Skip to content

Commit

Permalink
[7.17](backport #39466) Added retries for packaging steps & K8S tests (
Browse files Browse the repository at this point in the history
…#39484)

* Added retries for packaging steps & K8S tests (#39466)

* added retries for packaging steps & k8s tests

* added timeout for packaging steps

(cherry picked from commit 75397eb)

# Conflicts:
#	.buildkite/deploy/kubernetes/deploy-k8s-pipeline.yml

* fixed conlicts

---------

Co-authored-by: Olga Naydyonock <[email protected]>
  • Loading branch information
mergify[bot] and oakrizan authored May 9, 2024
1 parent 035fdcd commit e98b69c
Show file tree
Hide file tree
Showing 15 changed files with 109 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ steps:
set -euo pipefail
cd auditbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: gcp
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -334,6 +338,10 @@ steps:
set -euo pipefail
cd auditbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down
9 changes: 9 additions & 0 deletions .buildkite/deploy/kubernetes/deploy-k8s-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ steps:
commands:
- "MODULE=kubernetes make -C metricbeat integration-tests"
- "make -C deploy/kubernetes test"
retry:
automatic:
- limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -41,6 +44,9 @@ steps:
commands:
- "MODULE=kubernetes make -C metricbeat integration-tests"
- "make -C deploy/kubernetes test"
retry:
automatic:
- limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -56,6 +62,9 @@ steps:
commands:
- "MODULE=kubernetes make -C metricbeat integration-tests"
- "make -C deploy/kubernetes test"
retry:
automatic:
- limit: 3
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ steps:
command: |
cd filebeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -286,6 +290,10 @@ steps:
command: |
cd filebeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/heartbeat/heartbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ steps:
command: |
cd heartbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: gcp
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -302,6 +306,10 @@ steps:
command: |
cd heartbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ steps:
- label: ":linux: Packaging Linux"
key: "packaging-linux"
command: "cd metricbeat && mage package"
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -314,6 +318,10 @@ steps:
- label: ":linux: Packaging ARM"
key: "packaging-arm"
command: "cd metricbeat && mage package"
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/packetbeat/pipeline.packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ steps:
command: |
cd packetbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -221,6 +225,10 @@ steps:
command: |
cd packetbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/winlogbeat/pipeline.winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ steps:
command: |
cd winlogbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ steps:
command: |
cd x-pack/auditbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -275,6 +279,10 @@ steps:
command: |
cd x-pack/auditbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ steps:
command: |
cd x-pack/dockerlogbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: gcp
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -108,6 +112,10 @@ steps:
command: |
cd x-pack/dockerlogbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ steps:
command: |
cd x-pack/filebeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -349,6 +353,10 @@ steps:
command: |
cd x-pack/filebeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ steps:
command: |
cd x-pack/heartbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -207,6 +211,10 @@ steps:
command: |
cd x-pack/heartbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ steps:
command: |
cd x-pack/metricbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -336,6 +340,10 @@ steps:
command: |
cd x-pack/metricbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.osquerybeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ steps:
command: |
cd x-pack/osquerybeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ steps:
command: |
cd x-pack/packetbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -179,6 +183,10 @@ steps:
command: |
cd x-pack/packetbeat
mage package
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ steps:
- label: ":ubuntu: Packaging Linux"
key: "packaging-linux"
command: "cd x-pack/winlogbeat && mage package"
retry:
automatic:
- limit: 3
timeout_in_minutes: 20
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand Down

0 comments on commit e98b69c

Please sign in to comment.