Skip to content

Commit

Permalink
fixed issues in heartbeat pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Apr 18, 2024
1 parent 397aba0 commit befd3ef
Showing 1 changed file with 40 additions and 14 deletions.
54 changes: 40 additions & 14 deletions .buildkite/heartbeat/heartbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ env:
steps:
- group: "Heartbeat Mandatory Testing"
key: "heartbeat-mandatory-tests"

steps:
- label: ":ubuntu: Unit Tests"
command: "cd heartbeat && mage build unitTest"
command: |
cd heartbeat
mage build unitTest
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -36,7 +39,9 @@ steps:
- "heartbeat/build/*.json"

- label: ":rhel: Heartbeat Rhel9 Unit Tests"
command: "cd heartbeat && mage build unitTest"
command: |
cd heartbeat
mage build unitTest
agents:
provider: "gcp"
image: "${IMAGE_RHEL9}"
Expand Down Expand Up @@ -74,7 +79,9 @@ steps:
- "heartbeat/build/*.json"

- label: ":ubuntu: Heartbeat Go Integration Tests"
command: "cd heartbeat && mage goIntegTest"
command: |
cd heartbeat
mage goIntegTest
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -84,7 +91,9 @@ steps:
- "heartbeat/build/*.json"

- label: ":ubuntu: Heartbeat Python Integration Tests"
command: "cd heartbeat && mage pythonIntegTest"
command: |
cd heartbeat
mage pythonIntegTest
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -96,11 +105,13 @@ steps:
- group: "Heartbeat ARM Tests"
key: "heartbeat-extended-tests-arm"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/

steps:
- label: ":linux: Heartbeat ARM64 Unit Tests"
key: "arm-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "heartbeat for arm" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
command: "cd heartbeat && mage build unitTest"
command: |
cd heartbeat
mage build unitTest
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand All @@ -110,11 +121,13 @@ steps:
- group: "Heartbeat Extended Testing MacOS"
key: "heartbeat-extended-tests-macos"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/

steps:
- label: ":mac: Heartbeat MacOS Unit Tests"
key: "macos-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "heartbeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command: "cd ${BEATS_PROJECT_NAME} && mage build unitTest"
command: |
cd heartbeat
mage build unitTest
agents:
provider: "orka"
imagePrefix: "${IMAGE_MACOS_X86_64}"
Expand All @@ -127,7 +140,9 @@ steps:
steps:
- label: ":windows: Heartbeat Win-2019 Unit Tests"
key: "heartbeat-win-extended-2019"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: |
Set-Location -Path heartbeat
mage build unitTest
agents:
provider: "gcp"
image: "${IMAGE_WIN_2019}"
Expand Down Expand Up @@ -165,31 +180,42 @@ steps:
- "heartbeat/build/*.xml"
- "heartbeat/build/*.json"

- wait: ~
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on: "heartbeat-mandatory-tests"

- group: "Heartbeat Packaging"
key: "heartbeat-packaging"
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on:
- "heartbeat-mandatory-tests"
steps:
- label: ":ubuntu: Heartbeat Packaging Linux X86"
key: "heartbeat-package-linux-x86"
env:
PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64"
SNAPSHOT: true
command: "cd heartbeat && mage package"
command: |
cd heartbeat
mage package
agents:
provider: gcp
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_HI_PERF_MACHINE_TYPE}"
notify:
- github_commit_status:
context: "Heartbeat: Packaging Ubuntu x86_64"

- label: ":linux: Heartbeat Packaging Linux ARM"
key: "heartbeat-package-linux-arm"
env:
PLATFORMS: "linux/arm64"
PACKAGES: "docker"
SNAPSHOT: true
command: "cd heartbeat && mage package"
command: |
cd heartbeat
mage package
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
instanceType: "${AWS_ARM_INSTANCE_TYPE}"
notify:
- github_commit_status:
context: "Heartbeat: Packaging Ubuntu ARM"

0 comments on commit befd3ef

Please sign in to comment.