Skip to content

Commit

Permalink
Label/context fixes to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dliappis committed May 2, 2024
1 parent badd99e commit 666f532
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ steps:
- github_commit_status:
context: "auditbeat: RHEL Unit Tests"

- label: ":windows: Auditbeat Win-2016 Unit Tests"
- label: ":windows: Auditbeat Windows 2016 Unit Tests"
command: |
Set-Location -Path auditbeat
mage build unitTest
Expand All @@ -74,9 +74,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Win-2016 Unit Tests"
context: "auditbeat: Windows 2016 Unit Tests"

- label: ":windows: Auditbeat Win-2022 Unit Tests"
- label: ":windows: Auditbeat Windows 2022 Unit Tests"
command: |
Set-Location -Path auditbeat
mage build unitTest
Expand All @@ -91,11 +91,10 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Win-2022 Unit Tests"
context: "auditbeat: Windows 2022 Unit Tests"

- label: ":linux: Auditbeat Crosscompile"
command: |
set -euo pipefail
make -C auditbeat crosscompile
env:
GOX_FLAGS: "-arch amd64"
Expand Down Expand Up @@ -130,7 +129,7 @@ steps:
- github_commit_status:
context: "auditbeat: Linux Integration Tests"

- label: ":linux: Auditbeat Linux ARM Integration Tests"
- label: ":linux: Auditbeat Ubuntu arm64 Integration Tests"
key: "auditbeat-extended-arm64-integ-tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*integrations.*/
command: |
Expand All @@ -146,9 +145,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Linux ARM Integration Tests"
context: "auditbeat: Linux arm64 Integration Tests"

- label: ":linux: Auditbeat Linux ARM Unit Tests"
- label: ":linux: Auditbeat Ubuntu arm64 Unit Tests"
key: "auditbeat-extended-arm64-unit-tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
command: |
Expand All @@ -164,9 +163,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Linux ARM Unit Tests"
context: "auditbeat: Linux arm64 Unit Tests"

- label: ":mac: Auditbeat MacOS Unit Tests"
- label: ":mac: Auditbeat macOS x86_64 Unit Tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command: |
set -euo pipefail
Expand All @@ -181,9 +180,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: MacOS Unit Tests"
context: "auditbeat: macOS x86_64 Unit Tests"

- label: ":mac: Auditbeat MacOS ARM Unit Tests"
- label: ":mac: Auditbeat macOS arm64 ARM Unit Tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command: |
set -euo pipefail
Expand All @@ -198,14 +197,14 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: MacOS ARM Unit Tests"
context: "auditbeat: macOS arm64 Unit Tests"

- group: "Auditbeat Windows Extended Testing"
key: "auditbeat-extended-tests-win"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/

steps:
- label: ":windows: Auditbeat Win-2019 Unit Tests"
- label: ":windows: Auditbeat Windows 2019 Unit Tests"
key: "auditbeat-extended-win-2019-unit-tests"
command: |
Set-Location -Path auditbeat
Expand All @@ -221,9 +220,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Extended Win-2019 Unit Tests"
context: "auditbeat: Extended Windows 2019 Unit Tests"

- label: ":windows: Auditbeat Win-10 Unit Tests"
- label: ":windows: Auditbeat Windows 10 Unit Tests"
key: "auditbeat-extended-win-10-unit-tests"
command: |
Set-Location -Path auditbeat
Expand All @@ -239,9 +238,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Extended Win-10 Unit Tests"
context: "auditbeat: Extended Windows 10 Unit Tests"

- label: ":windows: Auditbeat Win 11 Unit Tests"
- label: ":windows: Auditbeat Windows 11 Unit Tests"
key: "auditbeat-extended-win-11-unit-tests"
command: |
Set-Location -Path auditbeat
Expand All @@ -257,7 +256,7 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Extended Win 11 Unit Tests"
context: "auditbeat: Extended Windows 11 Unit Tests"

- wait: ~
# with PRs, we want to run packaging only if mandatory tests succeed
Expand Down

0 comments on commit 666f532

Please sign in to comment.