From 0bce91eeb9b78c0cc8135987192b5130d50fb542 Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Wed, 24 Apr 2024 12:03:25 +0300 Subject: [PATCH 1/7] added retries for auditbeat flaky tests --- .buildkite/auditbeat/auditbeat-pipeline.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.buildkite/auditbeat/auditbeat-pipeline.yml b/.buildkite/auditbeat/auditbeat-pipeline.yml index 801768c271ec..b8d95689950f 100644 --- a/.buildkite/auditbeat/auditbeat-pipeline.yml +++ b/.buildkite/auditbeat/auditbeat-pipeline.yml @@ -32,6 +32,10 @@ steps: command: | cd auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -47,6 +51,10 @@ steps: command: | cd auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9}" @@ -115,6 +123,10 @@ steps: set -euo pipefail cd auditbeat mage unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" From 13fc7b8d05ff6ee55ed4b22d933e54a0d466d75d Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Wed, 24 Apr 2024 12:16:06 +0300 Subject: [PATCH 2/7] added retries for filebeat flaky tests --- .buildkite/auditbeat/auditbeat-pipeline.yml | 28 +++++++++++++ .buildkite/filebeat/filebeat-pipeline.yml | 44 +++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/.buildkite/auditbeat/auditbeat-pipeline.yml b/.buildkite/auditbeat/auditbeat-pipeline.yml index b8d95689950f..2c5cab90e8af 100644 --- a/.buildkite/auditbeat/auditbeat-pipeline.yml +++ b/.buildkite/auditbeat/auditbeat-pipeline.yml @@ -70,6 +70,10 @@ steps: command: | Set-Location -Path auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -87,6 +91,10 @@ steps: command: | Set-Location -Path auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -145,6 +153,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd auditbeat mage unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -159,6 +171,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd auditbeat mage unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -176,6 +192,10 @@ steps: command: | Set-Location -Path auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -192,6 +212,10 @@ steps: command: | Set-Location -Path auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -208,6 +232,10 @@ steps: command: | Set-Location -Path auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" diff --git a/.buildkite/filebeat/filebeat-pipeline.yml b/.buildkite/filebeat/filebeat-pipeline.yml index 7eedd9d76fba..99b118aae329 100644 --- a/.buildkite/filebeat/filebeat-pipeline.yml +++ b/.buildkite/filebeat/filebeat-pipeline.yml @@ -30,6 +30,10 @@ steps: command: | cd filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -45,6 +49,10 @@ steps: command: | cd filebeat mage goIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -60,6 +68,10 @@ steps: command: | cd filebeat mage pythonIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: gcp image: "${IMAGE_UBUNTU_X86_64}" @@ -76,6 +88,10 @@ steps: command: | Set-Location -Path filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -94,6 +110,10 @@ steps: command: | Set-Location -Path filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -118,6 +138,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -136,6 +160,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -152,6 +180,10 @@ steps: command: | cd filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" @@ -172,6 +204,10 @@ steps: command: | Set-Location -Path filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -190,6 +226,10 @@ steps: command: | Set-Location -Path filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -208,6 +248,10 @@ steps: command: | Set-Location -Path filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" From bdbe958ac5383577e09aa1f67083a3750df912c6 Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Wed, 24 Apr 2024 16:37:34 +0300 Subject: [PATCH 3/7] added retries --- .buildkite/auditbeat/auditbeat-pipeline.yml | 4 ++ .buildkite/heartbeat/heartbeat-pipeline.yml | 48 +++++++++++++++++ .buildkite/libbeat/pipeline.libbeat.yml | 24 +++++++++ .buildkite/metricbeat/pipeline.yml | 44 ++++++++++++++++ .buildkite/packetbeat/pipeline.packetbeat.yml | 40 ++++++++++++++ .buildkite/winlogbeat/pipeline.winlogbeat.yml | 24 +++++++++ .../x-pack/pipeline.xpack.auditbeat.yml | 40 ++++++++++++++ .../x-pack/pipeline.xpack.dockerlogbeat.yml | 8 +++ .buildkite/x-pack/pipeline.xpack.filebeat.yml | 44 ++++++++++++++++ .../x-pack/pipeline.xpack.heartbeat.yml | 38 +++++++++++++- .buildkite/x-pack/pipeline.xpack.libbeat.yml | 36 +++++++++++++ .../x-pack/pipeline.xpack.metricbeat.yml | 40 ++++++++++++++ .../x-pack/pipeline.xpack.osquerybeat.yml | 36 +++++++++++++ .../x-pack/pipeline.xpack.packetbeat.yml | 52 +++++++++++++++++++ .../x-pack/pipeline.xpack.winlogbeat.yml | 24 +++++++++ 15 files changed, 501 insertions(+), 1 deletion(-) diff --git a/.buildkite/auditbeat/auditbeat-pipeline.yml b/.buildkite/auditbeat/auditbeat-pipeline.yml index 2c5cab90e8af..ef33977c7eff 100644 --- a/.buildkite/auditbeat/auditbeat-pipeline.yml +++ b/.buildkite/auditbeat/auditbeat-pipeline.yml @@ -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}" diff --git a/.buildkite/heartbeat/heartbeat-pipeline.yml b/.buildkite/heartbeat/heartbeat-pipeline.yml index 8091b2eead17..e3bf05615a49 100644 --- a/.buildkite/heartbeat/heartbeat-pipeline.yml +++ b/.buildkite/heartbeat/heartbeat-pipeline.yml @@ -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}" @@ -45,6 +49,10 @@ steps: command: | cd heartbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" diff --git a/.buildkite/libbeat/pipeline.libbeat.yml b/.buildkite/libbeat/pipeline.libbeat.yml index 040ad9b1d669..a15bdb7286c3 100644 --- a/.buildkite/libbeat/pipeline.libbeat.yml +++ b/.buildkite/libbeat/pipeline.libbeat.yml @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" diff --git a/.buildkite/metricbeat/pipeline.yml b/.buildkite/metricbeat/pipeline.yml index 1fb6bfcc2370..945405cd6b31 100644 --- a/.buildkite/metricbeat/pipeline.yml +++ b/.buildkite/metricbeat/pipeline.yml @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" @@ -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}" diff --git a/.buildkite/packetbeat/pipeline.packetbeat.yml b/.buildkite/packetbeat/pipeline.packetbeat.yml index c0f5c1e1a735..cdd28991af96 100644 --- a/.buildkite/packetbeat/pipeline.packetbeat.yml +++ b/.buildkite/packetbeat/pipeline.packetbeat.yml @@ -28,6 +28,10 @@ steps: command: | cd packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -43,6 +47,10 @@ steps: command: | cd packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9_X86_64}" @@ -58,6 +66,10 @@ steps: command: | Set-Location -Path packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -75,6 +87,10 @@ steps: command: | Set-Location -Path packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -96,6 +112,10 @@ steps: command: | Set-Location -Path packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -114,6 +134,10 @@ steps: Set-Location -Path packetbeat mage build unitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -132,6 +156,10 @@ steps: Set-Location -Path packetbeat mage build unitTest key: "extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -156,6 +184,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -174,6 +206,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -188,6 +224,10 @@ steps: key: "linux-arm64-unit-tests-extended" command: "cd packetbeat && mage build unitTest" if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/ + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" diff --git a/.buildkite/winlogbeat/pipeline.winlogbeat.yml b/.buildkite/winlogbeat/pipeline.winlogbeat.yml index c71858b45b0a..2b59299724fb 100644 --- a/.buildkite/winlogbeat/pipeline.winlogbeat.yml +++ b/.buildkite/winlogbeat/pipeline.winlogbeat.yml @@ -24,6 +24,10 @@ steps: - label: ":ubuntu: Winlogbeat Crossccompile" key: "mandatory-cross-compile" command: "make -C winlogbeat crosscompile" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -40,6 +44,10 @@ steps: Set-Location -Path winlogbeat mage build unitTest key: "mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -58,6 +66,10 @@ steps: Set-Location -Path winlogbeat mage build unitTest key: "mandatory-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -76,6 +88,10 @@ steps: Set-Location -Path winlogbeat mage build unitTest key: "mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -99,6 +115,10 @@ steps: Set-Location -Path winlogbeat mage build unitTest key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -117,6 +137,10 @@ steps: Set-Location -Path winlogbeat mage build unitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" diff --git a/.buildkite/x-pack/pipeline.xpack.auditbeat.yml b/.buildkite/x-pack/pipeline.xpack.auditbeat.yml index 36fcb9bebd99..bfce65f75797 100644 --- a/.buildkite/x-pack/pipeline.xpack.auditbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.auditbeat.yml @@ -36,6 +36,10 @@ steps: echo "~~~ Will run tests with env var MODULE=$$MODULE" cd x-pack/auditbeat mage update build test + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -52,6 +56,10 @@ steps: command: | cd x-pack/auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9_X86_64}" @@ -68,6 +76,10 @@ steps: Set-Location -Path x-pack/auditbeat mage build unitTest key: "mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -86,6 +98,10 @@ steps: Set-Location -Path x-pack/auditbeat mage build unitTest key: "mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -108,6 +124,10 @@ steps: Set-Location -Path x-pack/auditbeat mage build unitTest key: "extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -126,6 +146,10 @@ steps: Set-Location -Path x-pack/auditbeat mage build unitTest key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -144,6 +168,10 @@ steps: Set-Location -Path x-pack/auditbeat mage build unitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -167,6 +195,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd x-pack/auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -183,6 +215,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd x-pack/auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -201,6 +237,10 @@ steps: command: | cd x-pack/auditbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" diff --git a/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml b/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml index 05aee81e4d80..525b13281f1b 100644 --- a/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml @@ -28,6 +28,10 @@ steps: - label: ":ubuntu: Xpack/Dockerlogbeat Ubuntu Unit Tests" key: "mandatory-linux-unit-test" command: "cd x-pack/dockerlogbeat && mage build unitTest" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -44,6 +48,10 @@ steps: command: "cd x-pack/dockerlogbeat && mage goIntegTest" env: MODULE: $MODULE + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" diff --git a/.buildkite/x-pack/pipeline.xpack.filebeat.yml b/.buildkite/x-pack/pipeline.xpack.filebeat.yml index 795302bc2d99..39c4c8607717 100644 --- a/.buildkite/x-pack/pipeline.xpack.filebeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.filebeat.yml @@ -30,6 +30,10 @@ steps: command: | cd x-pack/filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -50,6 +54,10 @@ steps: defineModuleFromTheChangeSet x-pack/filebeat echo "~~~ Will run tests with env var MODULE=$$MODULE" cd x-pack/filebeat && mage goIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -70,6 +78,10 @@ steps: defineModuleFromTheChangeSet x-pack/filebeat echo "~~~ Running tests with env var MODULE=$$MODULE" cd x-pack/filebeat && mage pythonIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -86,6 +98,10 @@ steps: Set-Location -Path x-pack/filebeat mage build unitTest key: "x-pack-filebeat-mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -104,6 +120,10 @@ steps: Set-Location -Path x-pack/filebeat mage build unitTest key: "x-pack-filebeat-mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -122,6 +142,10 @@ steps: command: | cd x-pack/filebeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" @@ -142,6 +166,10 @@ steps: Set-Location -Path x-pack/filebeat mage build unitTest key: "x-pack-filebeat-extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -160,6 +188,10 @@ steps: Set-Location -Path x-pack/filebeat mage build unitTest key: "x-pack-filebeat-extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -178,6 +210,10 @@ steps: Set-Location -Path x-pack/filebeat mage build unitTest key: "x-pack-filebeat-extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -200,6 +236,10 @@ steps: set -euo pipefail source .buildkite/scripts/install_macos_tools.sh cd x-pack/filebeat && mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -217,6 +257,10 @@ steps: set -euo pipefail source .buildkite/scripts/install_macos_tools.sh cd x-pack/filebeat && mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.heartbeat.yml b/.buildkite/x-pack/pipeline.xpack.heartbeat.yml index 107dfa65f1b2..0065399460b2 100644 --- a/.buildkite/x-pack/pipeline.xpack.heartbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.heartbeat.yml @@ -39,6 +39,10 @@ steps: echo "~~~ Running tests" cd x-pack/heartbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -59,6 +63,10 @@ steps: echo "~~~ Running tests" cd x-pack/heartbeat mage goIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -76,6 +84,10 @@ steps: command: | Set-Location -Path x-pack/heartbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -95,6 +107,10 @@ steps: command: | Set-Location -Path x-pack/heartbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -118,6 +134,10 @@ steps: Set-Location -Path x-pack/heartbeat mage build test key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -136,6 +156,10 @@ steps: Set-Location -Path x-pack/heartbeat mage build test key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -153,6 +177,10 @@ steps: command: | Set-Location -Path x-pack/heartbeat mage build test + retry: + automatic: + - exit_status: 1 + limit: 3 key: "extended-win-2019-unit-tests" agents: provider: "gcp" @@ -166,7 +194,7 @@ steps: notify: - github_commit_status: context: "x-pack/heartbeat: Windows 2019 Unit Tests" - + - group: "x-pack/heartbeat MacOS Extended Tests" key: "x-pack-heartbeat-extended-tests-macos" if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/ @@ -179,6 +207,10 @@ steps: installNodeJsDependencies cd x-pack/heartbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -197,6 +229,10 @@ steps: installNodeJsDependencies cd x-pack/heartbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.libbeat.yml b/.buildkite/x-pack/pipeline.xpack.libbeat.yml index 14316a3ecd70..615c27d8fded 100644 --- a/.buildkite/x-pack/pipeline.xpack.libbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.libbeat.yml @@ -26,6 +26,10 @@ steps: command: | cd x-pack/libbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -42,6 +46,10 @@ steps: command: | cd x-pack/libbeat mage goIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -58,6 +66,10 @@ steps: command: | cd x-pack/libbeat mage pythonIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -74,6 +86,10 @@ steps: Set-Location -Path x-pack/libbeat mage -w reader\etw build goUnitTest key: "mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -92,6 +108,10 @@ steps: Set-Location -Path x-pack/libbeat mage -w reader\etw build goUnitTest key: "mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -114,6 +134,10 @@ steps: Set-Location -Path x-pack/libbeat mage -w reader\etw build goUnitTest key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -132,6 +156,10 @@ steps: Set-Location -Path x-pack/libbeat mage -w reader\etw build goUnitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -150,6 +178,10 @@ steps: Set-Location -Path x-pack/libbeat mage -w reader\etw build goUnitTest key: "extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -172,6 +204,10 @@ steps: command: | cd x-pack/libbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" diff --git a/.buildkite/x-pack/pipeline.xpack.metricbeat.yml b/.buildkite/x-pack/pipeline.xpack.metricbeat.yml index 317b9069c556..73974178d1e7 100644 --- a/.buildkite/x-pack/pipeline.xpack.metricbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.metricbeat.yml @@ -30,6 +30,10 @@ steps: command: | cd x-pack/metricbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -50,6 +54,10 @@ steps: defineModuleFromTheChangeSet x-pack/metricbeat echo "~~~ Will run tests with env var MODULE=$$MODULE" cd x-pack/metricbeat && mage goIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -70,6 +78,10 @@ steps: defineModuleFromTheChangeSet x-pack/metricbeat echo "~~~ Running tests with env var MODULE=$$MODULE" cd x-pack/metricbeat && mage pythonIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -86,6 +98,10 @@ steps: Set-Location -Path x-pack/metricbeat mage build unitTest key: "mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -104,6 +120,10 @@ steps: Set-Location -Path x-pack/metricbeat mage build unitTest key: "mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -126,6 +146,10 @@ steps: Set-Location -Path x-pack/metricbeat mage build unitTest key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -144,6 +168,10 @@ steps: Set-Location -Path x-pack/metricbeat mage build unitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -162,6 +190,10 @@ steps: Set-Location -Path x-pack/metricbeat mage build unitTest key: "extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -185,6 +217,10 @@ steps: set -euo pipefail source .buildkite/scripts/install_macos_tools.sh cd x-pack/metricbeat && mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -202,6 +238,10 @@ steps: set -euo pipefail source .buildkite/scripts/install_macos_tools.sh cd x-pack/metricbeat && mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml b/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml index 8c9137cb423e..a564951b3017 100644 --- a/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml @@ -30,6 +30,10 @@ steps: command: | cd x-pack/osquerybeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -46,6 +50,10 @@ steps: command: | cd x-pack/osquerybeat mage goIntegTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -62,6 +70,10 @@ steps: Set-Location -Path x-pack/osquerybeat mage build unitTest key: "mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -80,6 +92,10 @@ steps: Set-Location -Path x-pack/osquerybeat mage build unitTest key: "mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -102,6 +118,10 @@ steps: Set-Location -Path x-pack/osquerybeat mage build unitTest key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -120,6 +140,10 @@ steps: Set-Location -Path x-pack/osquerybeat mage build unitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -138,6 +162,10 @@ steps: Set-Location -Path x-pack/osquerybeat mage build unitTest key: "extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -160,6 +188,10 @@ steps: set -euo pipefail source .buildkite/scripts/install_macos_tools.sh cd x-pack/osquerybeat && mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -175,6 +207,10 @@ steps: set -euo pipefail source .buildkite/scripts/install_macos_tools.sh cd x-pack/osquerybeat && mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.packetbeat.yml b/.buildkite/x-pack/pipeline.xpack.packetbeat.yml index 77fdf2af8483..15254ff218e3 100644 --- a/.buildkite/x-pack/pipeline.xpack.packetbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.packetbeat.yml @@ -29,6 +29,10 @@ steps: command: | cd x-pack/packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -45,6 +49,10 @@ steps: command: | cd x-pack/packetbeat mage systemTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -61,6 +69,10 @@ steps: command: | cd x-pack/packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9_X86_64}" @@ -77,6 +89,10 @@ steps: Set-Location -Path x-pack/packetbeat mage build unitTest key: "mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -95,6 +111,10 @@ steps: Set-Location -Path x-pack/packetbeat mage build unitTest key: "mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -114,6 +134,10 @@ steps: command: | Set-Location -Path x-pack/packetbeat mage systemTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -136,6 +160,10 @@ steps: Set-Location -Path x-pack/packetbeat mage build unitTest key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -154,6 +182,10 @@ steps: Set-Location -Path x-pack/packetbeat mage build unitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -172,6 +204,10 @@ steps: Set-Location -Path x-pack/packetbeat mage build unitTest key: "extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -191,6 +227,10 @@ steps: command: | Set-Location -Path x-pack/packetbeat mage systemTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -214,6 +254,10 @@ steps: cd x-pack/packetbeat mage build unitTest if: build.env("GITHUB_PR_LABELS") =~ /.*arm.*/ + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" @@ -236,6 +280,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd x-pack/packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -253,6 +301,10 @@ steps: source .buildkite/scripts/install_macos_tools.sh cd x-pack/packetbeat mage build unitTest + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml b/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml index c07e537adf09..76c7ad30d87a 100644 --- a/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml @@ -29,6 +29,10 @@ steps: mage build unitTest env: MODULE: $MODULE + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -47,6 +51,10 @@ steps: Set-Location -Path x-pack/winlogbeat mage build unitTest key: "mandatory-win-2016-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -65,6 +73,10 @@ steps: Set-Location -Path x-pack/winlogbeat mage build unitTest key: "mandatory-win-2022-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -88,6 +100,10 @@ steps: Set-Location -Path x-pack/winlogbeat mage build unitTest key: "extended-win-10-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -106,6 +122,10 @@ steps: Set-Location -Path x-pack/winlogbeat mage build unitTest key: "extended-win-11-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -124,6 +144,10 @@ steps: Set-Location -Path x-pack/winlogbeat mage build unitTest key: "extended-win-2019-unit-tests" + retry: + automatic: + - exit_status: 1 + limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" From 4fd85d26f05400a6087b48e6918367bea6abd686 Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Mon, 29 Apr 2024 10:25:19 +0300 Subject: [PATCH 4/7] test exitcode --- .buildkite/auditbeat/auditbeat-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/auditbeat/auditbeat-pipeline.yml b/.buildkite/auditbeat/auditbeat-pipeline.yml index ef33977c7eff..548c084ab847 100644 --- a/.buildkite/auditbeat/auditbeat-pipeline.yml +++ b/.buildkite/auditbeat/auditbeat-pipeline.yml @@ -13,7 +13,7 @@ env: IMAGE_MACOS_ARM: "generic-13-ventura-arm" IMAGE_MACOS_X86_64: "generic-13-ventura-x64" IMAGE_RHEL9: "family/platform-ingest-beats-rhel-9" - IMAGE_UBUNTU_X86_64: "family/platform-ingest-beats-ubuntu-2204" + IMAGE_UBUNTU_X86_64: "family/platform-ingest-beats-ubuntu-2204-1" IMAGE_WIN_10: "family/platform-ingest-beats-windows-10" IMAGE_WIN_11: "family/platform-ingest-beats-windows-11" IMAGE_WIN_2016: "family/platform-ingest-beats-windows-2016" From 0f4a5579a2ca2820d7ea67a7b43c3b4f5914db72 Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Mon, 29 Apr 2024 11:15:34 +0300 Subject: [PATCH 5/7] checged exit status code for retries --- .buildkite/auditbeat/auditbeat-pipeline.yml | 35 ++++++----------- .buildkite/filebeat/filebeat-pipeline.yml | 33 ++++++---------- .buildkite/heartbeat/heartbeat-pipeline.yml | 36 ++++++----------- .buildkite/libbeat/pipeline.libbeat.yml | 18 +++------ .buildkite/metricbeat/pipeline.yml | 33 ++++++---------- .buildkite/packetbeat/pipeline.packetbeat.yml | 30 +++++--------- .buildkite/winlogbeat/pipeline.winlogbeat.yml | 18 +++------ .../x-pack/pipeline.xpack.auditbeat.yml | 30 +++++--------- .../x-pack/pipeline.xpack.dockerlogbeat.yml | 6 +-- .buildkite/x-pack/pipeline.xpack.filebeat.yml | 33 ++++++---------- .../x-pack/pipeline.xpack.heartbeat.yml | 27 +++++-------- .buildkite/x-pack/pipeline.xpack.libbeat.yml | 27 +++++-------- .../x-pack/pipeline.xpack.metricbeat.yml | 30 +++++--------- .../x-pack/pipeline.xpack.osquerybeat.yml | 27 +++++-------- .../x-pack/pipeline.xpack.packetbeat.yml | 39 +++++++------------ .../x-pack/pipeline.xpack.winlogbeat.yml | 18 +++------ 16 files changed, 147 insertions(+), 293 deletions(-) diff --git a/.buildkite/auditbeat/auditbeat-pipeline.yml b/.buildkite/auditbeat/auditbeat-pipeline.yml index 548c084ab847..ed19c7d91644 100644 --- a/.buildkite/auditbeat/auditbeat-pipeline.yml +++ b/.buildkite/auditbeat/auditbeat-pipeline.yml @@ -13,7 +13,7 @@ env: IMAGE_MACOS_ARM: "generic-13-ventura-arm" IMAGE_MACOS_X86_64: "generic-13-ventura-x64" IMAGE_RHEL9: "family/platform-ingest-beats-rhel-9" - IMAGE_UBUNTU_X86_64: "family/platform-ingest-beats-ubuntu-2204-1" + IMAGE_UBUNTU_X86_64: "family/platform-ingest-beats-ubuntu-2204" IMAGE_WIN_10: "family/platform-ingest-beats-windows-10" IMAGE_WIN_11: "family/platform-ingest-beats-windows-11" IMAGE_WIN_2016: "family/platform-ingest-beats-windows-2016" @@ -34,8 +34,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -53,8 +52,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9}" @@ -72,8 +70,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -93,8 +90,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -115,8 +111,7 @@ steps: GOX_FLAGS: "-arch amd64" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -137,8 +132,7 @@ steps: mage unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" @@ -159,8 +153,7 @@ steps: mage unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -177,8 +170,7 @@ steps: mage unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -198,8 +190,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -218,8 +209,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -238,8 +228,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" diff --git a/.buildkite/filebeat/filebeat-pipeline.yml b/.buildkite/filebeat/filebeat-pipeline.yml index 99b118aae329..053e8dbec419 100644 --- a/.buildkite/filebeat/filebeat-pipeline.yml +++ b/.buildkite/filebeat/filebeat-pipeline.yml @@ -32,8 +32,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -51,8 +50,7 @@ steps: mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -70,8 +68,7 @@ steps: mage pythonIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: gcp image: "${IMAGE_UBUNTU_X86_64}" @@ -90,8 +87,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -112,8 +108,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -140,8 +135,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -162,8 +156,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -182,8 +175,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" @@ -206,8 +198,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -228,8 +219,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -250,8 +240,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" diff --git a/.buildkite/heartbeat/heartbeat-pipeline.yml b/.buildkite/heartbeat/heartbeat-pipeline.yml index e3bf05615a49..cadbcec1eca2 100644 --- a/.buildkite/heartbeat/heartbeat-pipeline.yml +++ b/.buildkite/heartbeat/heartbeat-pipeline.yml @@ -32,8 +32,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -51,8 +50,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9}" @@ -71,8 +69,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -92,8 +89,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -112,8 +108,7 @@ steps: mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -131,8 +126,7 @@ steps: mage pythonIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -156,8 +150,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" @@ -181,8 +174,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -202,8 +194,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -226,8 +217,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -247,8 +237,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -268,8 +257,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" diff --git a/.buildkite/libbeat/pipeline.libbeat.yml b/.buildkite/libbeat/pipeline.libbeat.yml index a15bdb7286c3..bc77712c330b 100644 --- a/.buildkite/libbeat/pipeline.libbeat.yml +++ b/.buildkite/libbeat/pipeline.libbeat.yml @@ -23,8 +23,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -44,8 +43,7 @@ steps: mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -65,8 +63,7 @@ steps: mage pythonIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -86,8 +83,7 @@ steps: make crosscompile retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -107,8 +103,7 @@ steps: 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 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -130,8 +125,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" diff --git a/.buildkite/metricbeat/pipeline.yml b/.buildkite/metricbeat/pipeline.yml index 945405cd6b31..d15212d2ef32 100644 --- a/.buildkite/metricbeat/pipeline.yml +++ b/.buildkite/metricbeat/pipeline.yml @@ -34,8 +34,7 @@ steps: command: "cd metricbeat && mage build unitTest" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -68,8 +67,7 @@ steps: cd metricbeat && mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -102,8 +100,7 @@ steps: cd metricbeat && mage pythonIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -120,8 +117,7 @@ steps: command: "make -C metricbeat crosscompile" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -140,8 +136,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -162,8 +157,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -188,8 +182,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -210,8 +203,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -232,8 +224,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -259,8 +250,7 @@ steps: cd metricbeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -280,8 +270,7 @@ steps: cd metricbeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/packetbeat/pipeline.packetbeat.yml b/.buildkite/packetbeat/pipeline.packetbeat.yml index cdd28991af96..d510107a89c2 100644 --- a/.buildkite/packetbeat/pipeline.packetbeat.yml +++ b/.buildkite/packetbeat/pipeline.packetbeat.yml @@ -30,8 +30,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -49,8 +48,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9_X86_64}" @@ -68,8 +66,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -89,8 +86,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -114,8 +110,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -136,8 +131,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -158,8 +152,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -186,8 +179,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -208,8 +200,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -226,8 +217,7 @@ steps: if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/ retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}" diff --git a/.buildkite/winlogbeat/pipeline.winlogbeat.yml b/.buildkite/winlogbeat/pipeline.winlogbeat.yml index 2b59299724fb..ff3327913492 100644 --- a/.buildkite/winlogbeat/pipeline.winlogbeat.yml +++ b/.buildkite/winlogbeat/pipeline.winlogbeat.yml @@ -26,8 +26,7 @@ steps: command: "make -C winlogbeat crosscompile" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -46,8 +45,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -68,8 +66,7 @@ steps: key: "mandatory-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -90,8 +87,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -117,8 +113,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -139,8 +134,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" diff --git a/.buildkite/x-pack/pipeline.xpack.auditbeat.yml b/.buildkite/x-pack/pipeline.xpack.auditbeat.yml index bfce65f75797..80c298c725df 100644 --- a/.buildkite/x-pack/pipeline.xpack.auditbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.auditbeat.yml @@ -38,8 +38,7 @@ steps: mage update build test retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -58,8 +57,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9_X86_64}" @@ -78,8 +76,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -100,8 +97,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -126,8 +122,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -148,8 +143,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -170,8 +164,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -197,8 +190,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -217,8 +209,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" @@ -239,8 +230,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" diff --git a/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml b/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml index 525b13281f1b..a64f7851913b 100644 --- a/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml @@ -30,8 +30,7 @@ steps: command: "cd x-pack/dockerlogbeat && mage build unitTest" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -50,8 +49,7 @@ steps: MODULE: $MODULE retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" diff --git a/.buildkite/x-pack/pipeline.xpack.filebeat.yml b/.buildkite/x-pack/pipeline.xpack.filebeat.yml index 39c4c8607717..b7e71e3c3c0a 100644 --- a/.buildkite/x-pack/pipeline.xpack.filebeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.filebeat.yml @@ -32,8 +32,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -56,8 +55,7 @@ steps: cd x-pack/filebeat && mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -80,8 +78,7 @@ steps: cd x-pack/filebeat && mage pythonIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -100,8 +97,7 @@ steps: key: "x-pack-filebeat-mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -122,8 +118,7 @@ steps: key: "x-pack-filebeat-mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -144,8 +139,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" @@ -168,8 +162,7 @@ steps: key: "x-pack-filebeat-extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -190,8 +183,7 @@ steps: key: "x-pack-filebeat-extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -212,8 +204,7 @@ steps: key: "x-pack-filebeat-extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -238,8 +229,7 @@ steps: cd x-pack/filebeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -259,8 +249,7 @@ steps: cd x-pack/filebeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.heartbeat.yml b/.buildkite/x-pack/pipeline.xpack.heartbeat.yml index 0065399460b2..136706e698cc 100644 --- a/.buildkite/x-pack/pipeline.xpack.heartbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.heartbeat.yml @@ -41,8 +41,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -65,8 +64,7 @@ steps: mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -86,8 +84,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -109,8 +106,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -136,8 +132,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -158,8 +153,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -179,8 +173,7 @@ steps: mage build test retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 key: "extended-win-2019-unit-tests" agents: provider: "gcp" @@ -209,8 +202,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -231,8 +223,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.libbeat.yml b/.buildkite/x-pack/pipeline.xpack.libbeat.yml index 615c27d8fded..6bf456f6d83d 100644 --- a/.buildkite/x-pack/pipeline.xpack.libbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.libbeat.yml @@ -28,8 +28,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -48,8 +47,7 @@ steps: mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -68,8 +66,7 @@ steps: mage pythonIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -88,8 +85,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -110,8 +106,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -136,8 +131,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -158,8 +152,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -180,8 +173,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -206,8 +198,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" diff --git a/.buildkite/x-pack/pipeline.xpack.metricbeat.yml b/.buildkite/x-pack/pipeline.xpack.metricbeat.yml index 73974178d1e7..4c1c31521f92 100644 --- a/.buildkite/x-pack/pipeline.xpack.metricbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.metricbeat.yml @@ -32,8 +32,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -56,8 +55,7 @@ steps: cd x-pack/metricbeat && mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -80,8 +78,7 @@ steps: cd x-pack/metricbeat && mage pythonIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -100,8 +97,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -122,8 +118,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -148,8 +143,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -170,8 +164,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -192,8 +185,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -219,8 +211,7 @@ steps: cd x-pack/metricbeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -240,8 +231,7 @@ steps: cd x-pack/metricbeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml b/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml index a564951b3017..c8ecac79735b 100644 --- a/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml @@ -32,8 +32,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -52,8 +51,7 @@ steps: mage goIntegTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -72,8 +70,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -94,8 +91,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -120,8 +116,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -142,8 +137,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -164,8 +158,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -190,8 +183,7 @@ steps: cd x-pack/osquerybeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -209,8 +201,7 @@ steps: cd x-pack/osquerybeat && mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.packetbeat.yml b/.buildkite/x-pack/pipeline.xpack.packetbeat.yml index 15254ff218e3..1ab71c30d7df 100644 --- a/.buildkite/x-pack/pipeline.xpack.packetbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.packetbeat.yml @@ -31,8 +31,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -51,8 +50,7 @@ steps: mage systemTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -71,8 +69,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_RHEL9_X86_64}" @@ -91,8 +88,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -113,8 +109,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -136,8 +131,7 @@ steps: mage systemTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -162,8 +156,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -184,8 +177,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -206,8 +198,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -229,8 +220,7 @@ steps: mage systemTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -256,8 +246,7 @@ steps: if: build.env("GITHUB_PR_LABELS") =~ /.*arm.*/ retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" @@ -282,8 +271,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_X86_64}" @@ -303,8 +291,7 @@ steps: mage build unitTest retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "orka" imagePrefix: "${IMAGE_MACOS_ARM}" diff --git a/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml b/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml index 76c7ad30d87a..c6b5a6f59fe5 100644 --- a/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml @@ -31,8 +31,7 @@ steps: MODULE: $MODULE retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" @@ -53,8 +52,7 @@ steps: key: "mandatory-win-2016-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2016}" @@ -75,8 +73,7 @@ steps: key: "mandatory-win-2022-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2022}" @@ -102,8 +99,7 @@ steps: key: "extended-win-10-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_10}" @@ -124,8 +120,7 @@ steps: key: "extended-win-11-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_11}" @@ -146,8 +141,7 @@ steps: key: "extended-win-2019-unit-tests" retry: automatic: - - exit_status: 1 - limit: 3 + - limit: 3 agents: provider: "gcp" image: "${IMAGE_WIN_2019}" From 8a0850d49be71cb6c0fe8aff3b45580d32420146 Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Wed, 1 May 2024 17:37:12 +0300 Subject: [PATCH 6/7] set larger timeout for pytestOpts --- dev-tools/mage/pytest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/mage/pytest.go b/dev-tools/mage/pytest.go index 2506bc205c48..e96a00d00547 100644 --- a/dev-tools/mage/pytest.go +++ b/dev-tools/mage/pytest.go @@ -144,7 +144,7 @@ func PythonTest(params PythonTestArgs) error { } pytestOptions := []string{ - "--timeout=90", + "--timeout=120", "--durations=20", // Enable -x to stop at the first failing test // "-x", From 10fda653f5e5bc070651adf8db0c56dfbb50b30f Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Wed, 1 May 2024 19:51:15 +0300 Subject: [PATCH 7/7] restored timeout for pytests --- dev-tools/mage/pytest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/mage/pytest.go b/dev-tools/mage/pytest.go index e96a00d00547..2506bc205c48 100644 --- a/dev-tools/mage/pytest.go +++ b/dev-tools/mage/pytest.go @@ -144,7 +144,7 @@ func PythonTest(params PythonTestArgs) error { } pytestOptions := []string{ - "--timeout=120", + "--timeout=90", "--durations=20", // Enable -x to stop at the first failing test // "-x",