From cbd2f25232dba812d41dd129d42ff71cc2a10394 Mon Sep 17 00:00:00 2001 From: Siarhei Harbuz Date: Tue, 16 Jan 2024 17:18:40 +0200 Subject: [PATCH] full test --- .buildkite/metricbeat/pipeline.yml | 162 ++++++++++++++--------------- 1 file changed, 81 insertions(+), 81 deletions(-) diff --git a/.buildkite/metricbeat/pipeline.yml b/.buildkite/metricbeat/pipeline.yml index b47c18b413d7..a4444efecefa 100644 --- a/.buildkite/metricbeat/pipeline.yml +++ b/.buildkite/metricbeat/pipeline.yml @@ -11,96 +11,96 @@ env: steps: -# - group: "Mandatory Tests" -# key: "mandatory-tests" -# # if: define_condition_if_needed_for_group -# steps: - # TODO: Ubuntu Unit Tests have some issues, it needs to be compared with the Jenkins pipeline, but it's difficult to find it :) - # - label: ":linux: Ubuntu Unit Tests" - # key: "mandatory-linux-unit-test" - # command: ".buildkite/metricbeat/scripts/unit_tests.sh" - # agents: - # provider: "gcp" - # image: "${IMAGE_UBUNTU_X86_64}" - # machineType: "c2-standard-16" + - group: "Mandatory Tests" + key: "mandatory-tests" +# if: define_condition_if_needed_for_group + steps: +# TODO: Ubuntu Unit Tests have some issues, it needs to be compared with the Jenkins pipeline, but it's difficult to find it :) + - label: ":linux: Ubuntu Unit Tests" + key: "mandatory-linux-unit-test" + command: ".buildkite/metricbeat/scripts/unit_tests.sh" + agents: + provider: "gcp" + image: "${IMAGE_UBUNTU_X86_64}" + machineType: "c2-standard-16" - # - label: ":go: Go Intergration Tests" - # key: "mandatory-int-test" - # command: ".buildkite/metricbeat/scripts/go_int_tests.sh" - # agents: - # provider: "gcp" - # image: "${IMAGE_UBUNTU_X86_64}" - # machineType: "c2-standard-16" + - label: ":go: Go Intergration Tests" + key: "mandatory-int-test" + command: ".buildkite/metricbeat/scripts/go_int_tests.sh" + agents: + provider: "gcp" + image: "${IMAGE_UBUNTU_X86_64}" + machineType: "c2-standard-16" - # - label: ":python: Python Integration Tests" - # key: "mandatory-python-int-test" - # command: ".buildkite/metricbeat/scripts/py_int_tests.sh" - # agents: - # provider: "gcp" - # image: "${IMAGE_UBUNTU_X86_64}" - # machineType: "c2-standard-16" + - label: ":python: Python Integration Tests" + key: "mandatory-python-int-test" + command: ".buildkite/metricbeat/scripts/py_int_tests.sh" + agents: + provider: "gcp" + image: "${IMAGE_UBUNTU_X86_64}" + machineType: "c2-standard-16" - # - label: ":negative_squared_cross_mark: Cross compile" - # key: "mandatory-cross-compile" - # command: ".buildkite/metricbeat/scripts/crosscompile.sh" - # agents: - # provider: "gcp" - # image: "${IMAGE_UBUNTU_X86_64}" - # machineType: "c2-standard-16" + - label: ":negative_squared_cross_mark: Cross compile" + key: "mandatory-cross-compile" + command: ".buildkite/metricbeat/scripts/crosscompile.sh" + agents: + provider: "gcp" + image: "${IMAGE_UBUNTU_X86_64}" + machineType: "c2-standard-16" - # - label: ":windows: Windows Unit Tests - {{matrix.image}}" - # command: ".buildkite/metricbeat/scripts/win_unit_tests.ps1" - # key: "mandatory-win-unit-tests" - # agents: - # provider: "gcp" - # image: "{{matrix.image}}" - # machine_type: "n2-standard-8" - # disk_size: 200 - # disk_type: "pd-ssd" - # matrix: - # setup: - # image: - # - "${IMAGE_WIN_2016}" - # - "${IMAGE_WIN_2022}" - # artifact_paths: "metricbeat/build/*.*" + - label: ":windows: Windows Unit Tests - {{matrix.image}}" + command: ".buildkite/metricbeat/scripts/win_unit_tests.ps1" + key: "mandatory-win-unit-tests" + agents: + provider: "gcp" + image: "{{matrix.image}}" + machine_type: "n2-standard-8" + disk_size: 200 + disk_type: "pd-ssd" + matrix: + setup: + image: + - "${IMAGE_WIN_2016}" + - "${IMAGE_WIN_2022}" + artifact_paths: "metricbeat/build/*.*" -# - group: "Extended Tests" -# key: "extended-tests" -# # if: define_condition_if_needed_for_group -# steps: -# # TODO: MacOS Unit Tests have issues with the filesystem checking, it needs to compare with the Jenkins pipeline, and probably the tests have to be fixed :) -# - label: ":mac: MacOS Unit Tests" -# key: "extended-macos-unit-tests" -# # if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "/test metricbeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/ || build.env("BUILDKITE_TAG") != "" -# command: ".buildkite/metricbeat/scripts/unit_tests.sh" -# agents: -# provider: "orka" -# imagePrefix: "generic-13-ventura-x64" + - group: "Extended Tests" + key: "extended-tests" +# if: define_condition_if_needed_for_group + steps: + # TODO: MacOS Unit Tests have issues with the filesystem checking, it needs to compare with the Jenkins pipeline, and probably the tests have to be fixed :) + - label: ":mac: MacOS Unit Tests" + key: "extended-macos-unit-tests" + # if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "/test metricbeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/ || build.env("BUILDKITE_TAG") != "" + command: ".buildkite/metricbeat/scripts/unit_tests.sh" + agents: + provider: "orka" + imagePrefix: "generic-13-ventura-x64" - # - group: "Extended Windowds Tests" - # key: "extended-win-tests" - # steps: - # - label: ":windows: Win 2019 Unit Tests" - # key: "extended-win-2019-unit-tests" - # command: ".buildkite/metricbeat/scripts/win_unit_tests.ps1" - # agents: - # provider: "gcp" - # image: "${IMAGE_WIN_2019}" - # machine_type: "n2-standard-8" - # disk_size: 200 - # disk_type: "pd-ssd" - # artifact_paths: "metricbeat/build/*.*" + - group: "Extended Windowds Tests" + key: "extended-win-tests" + steps: + - label: ":windows: Win 2019 Unit Tests" + key: "extended-win-2019-unit-tests" + command: ".buildkite/metricbeat/scripts/win_unit_tests.ps1" + agents: + provider: "gcp" + image: "${IMAGE_WIN_2019}" + machine_type: "n2-standard-8" + disk_size: 200 + disk_type: "pd-ssd" + artifact_paths: "metricbeat/build/*.*" - group: "Packaging" key: "packaging" if: build.env("BUILDKITE_TAG") == "" && build.env("BUILDKITE_PULL_REQUEST") != "" - # depends_on: - # - step: "mandatory-tests" - # allow_failure: false - # - step: "extended-tests" - # allow_failure: false - # - step: "extended-win-tests" - # allow_failure: false + depends_on: + - step: "mandatory-tests" + allow_failure: false + - step: "extended-tests" + allow_failure: false + - step: "extended-win-tests" + allow_failure: false steps: - label: ":linux: Packaging Linux" key: "packaging-linux" @@ -116,7 +116,7 @@ steps: agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" - instanceType: "m7g.large" + instanceType: "t4g.xlarge" env: PLATFORMS: "linux/arm64" PACKAGES: "docker"