Skip to content

Commit

Permalink
Added retries for packaging steps & K8S tests (#39466)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
oakrizan authored and mergify[bot] committed May 9, 2024
1 parent 035fdcd commit 6158896
Show file tree
Hide file tree
Showing 15 changed files with 131 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
31 changes: 31 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,10 +62,35 @@ 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}"
machineType: "${GCP_HI_PERF_MACHINE_TYPE}"
notify:
- github_commit_status:
<<<<<<< HEAD
context: "Deploy/k8s-test v1.19.16"
=======
context: "Deploy/k8s-test v1.27.3"

- label: "K8S Test/K8S version: v1.26.6"
key: "k8s-test-1266"
env:
K8S_VERSION: "v1.26.6"
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}"
machineType: "${GCP_HI_PERF_MACHINE_TYPE}"
notify:
- github_commit_status:
context: "Deploy/k8s-test v1.26.6"
>>>>>>> 75397eb0fa (Added retries for packaging steps & K8S tests (#39466))
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 6158896

Please sign in to comment.