Skip to content

Commit

Permalink
full test
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarhei Harbuz committed Jan 16, 2024
1 parent d89b017 commit cbd2f25
Showing 1 changed file with 81 additions and 81 deletions.
162 changes: 81 additions & 81 deletions .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

0 comments on commit cbd2f25

Please sign in to comment.