Skip to content

Commit

Permalink
updated win-2016 test cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Apr 30, 2024
1 parent f6bad74 commit e17b3a0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .buildkite/x-pack/pipeline.xpack.heartbeat.yml
Expand Up @@ -2,7 +2,8 @@
name: "beats-xpack-heartbeat"

env:
AWS_ARM_INSTANCE_TYPE: "t4g.xlarge"
AWS_ARM_INSTANCE_TYPE: "m6g.xlarge"
AWS_IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64"

GCP_DEFAULT_MACHINE_TYPE: "c2d-highcpu-8"
GCP_HI_PERF_MACHINE_TYPE: "c2d-highcpu-16"
Expand All @@ -11,7 +12,6 @@ env:
IMAGE_MACOS_ARM: "generic-13-ventura-arm"
IMAGE_MACOS_X86_64: "generic-13-ventura-x64"
IMAGE_RHEL9_X86_64: "family/platform-ingest-beats-rhel-9"
IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64"
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"
Expand Down Expand Up @@ -75,7 +75,7 @@ steps:
skip: "skipping due to elastic/beats#23957 and elastic/beats#23958"
command: |
Set-Location -Path x-pack/heartbeat
mage build unitTest
mage build test
agents:
provider: "gcp"
image: "${IMAGE_WIN_2016}"
Expand All @@ -89,6 +89,7 @@ steps:
- github_commit_status:
context: "x-pack/heartbeat: Windows 2016 Unit Tests"

# Doesn't exist in Jenkins
- label: ":windows: Windows 2022 Unit Tests"
key: "mandatory-win-2022-unit-tests"
skip: "skipping due to elastic/beats#23957 and elastic/beats#23958"
Expand All @@ -112,6 +113,7 @@ steps:
key: "x-pack-heartbeat-extended-win-tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/
skip: "skipping due to elastic/beats#23957 and elastic/beats#23958"

steps:
- label: ":windows: Windows 10 Unit Tests"
command: |
Expand All @@ -131,6 +133,7 @@ steps:
- github_commit_status:
context: "x-pack/heartbeat: Windows 10 Unit Tests"

# Doesn't exist in Jenkins
- label: ":windows: Windows 11 Unit Tests"
command: |
Set-Location -Path x-pack/heartbeat
Expand Down Expand Up @@ -166,10 +169,11 @@ 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.*/

steps:
- label: ":mac: MacOS x86_64 Unit Tests"
command: |
Expand Down Expand Up @@ -208,6 +212,9 @@ steps:
context: "x-pack/heartbeat: MacOS arm64 Extended Tests"

- wait: ~
# with PRs, we want to run packaging only if mandatory tests succeed
# for other cases, e.g. merge commits, we want to run packaging (and publish) independently of other tests
# this allows building DRA artifacts even if there is flakiness in mandatory tests
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on:
- step: "x-pack-heartbeat-mandatory-tests"
Expand Down Expand Up @@ -240,7 +247,7 @@ steps:
mage package
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
instanceType: "${AWS_ARM_INSTANCE_TYPE}"
env:
PLATFORMS: "linux/arm64"
Expand Down

0 comments on commit e17b3a0

Please sign in to comment.