Skip to content

Commit

Permalink
updated namings
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jun 19, 2024
1 parent 2f10d08 commit 637f4df
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 141 deletions.
64 changes: 32 additions & 32 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "Auditbeat Check/Update"
- group: "Check/Update"
key: "auditbeat-check-update"

steps:
- label: "Run check/update"
- label: "Auditbeat: Run check/update"
command: |
make -C auditbeat check update
make check-no-changes
Expand All @@ -46,19 +46,19 @@ steps:
notify:
- github_commit_status:
context: "auditbeat: check/update"

- wait: ~
# with PRs, we want to run mandatory tests only if check/update step succeed
# for other cases, e.g. merge commits, we want to run mundatory test (and publish) independently of other tests
# this allows building DRA artifacts even if there is flakiness in check/update step
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on: "auditbeat-check-update"

- group: "Auditbeat Mandatory Testing"
- group: "Mandatory Testing"
key: "auditbeat-mandatory-tests"

steps:
- label: ":ubuntu: Auditbeat Unit Tests"
- label: ":ubuntu: Auditbeat: Ubuntu x86_64 Unit Tests"
command: |
set -euo pipefail
cd auditbeat
Expand All @@ -75,9 +75,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Ubuntu Unit Tests"
context: "auditbeat: Ubuntu x86_64 Unit Tests"

- label: ":rhel: Auditbeat Unit Tests"
- label: ":rhel: Auditbeat: RHEL9 Unit Tests"
command: |
set -euo pipefail
cd auditbeat
Expand All @@ -94,9 +94,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: RHEL Unit Tests"
context: "auditbeat: RHEL9 Unit Tests"

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

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

- label: ":linux: Auditbeat Crosscompile"
- label: ":ubuntu: Auditbeat: Crosscompile"
command: |
make -C auditbeat crosscompile
env:
Expand All @@ -152,12 +152,12 @@ steps:
- github_commit_status:
context: "auditbeat: Crosscompile"

- group: "Auditbeat Extended Tests"
- group: "Extended Tests"
key: "auditbeat-extended-tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*(macOS|arm|integrations).*/

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

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

- label: ":linux: Auditbeat Ubuntu arm64 Unit Tests"
- label: ":ubuntu: 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 @@ -218,9 +218,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Linux arm64 Unit Tests"
context: "auditbeat: Ubuntu arm64 Unit Tests"

- label: ":mac: Auditbeat macOS x86_64 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 @@ -240,7 +240,7 @@ steps:
- github_commit_status:
context: "auditbeat: macOS x86_64 Unit Tests"

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

- group: "Auditbeat Windows Extended Testing"
- group: "Extended Windows Tests"
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: Win 2019 Unit Tests"
key: "auditbeat-extended-win-2019-unit-tests"
command: |
Set-Location -Path auditbeat
Expand All @@ -284,9 +284,9 @@ steps:
- "auditbeat/build/*.json"
notify:
- github_commit_status:
context: "auditbeat: Extended Windows 2019 Unit Tests"
context: "auditbeat: Win 2019 Unit Tests"

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

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

- wait: ~
# with PRs, we want to run packaging only if mandatory tests succeed
Expand All @@ -335,10 +335,10 @@ steps:
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on: "auditbeat-mandatory-tests"

- group: "Auditbeat Packaging"
- group: "Packaging"
key: "auditbeat-packaging"
steps:
- label: ":ubuntu: Auditbeat/Packaging Linux"
- label: ":ubuntu: Auditbeat: Packaging Linux"
key: "auditbeat-package-linux-x86"
env:
PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64"
Expand All @@ -359,7 +359,7 @@ steps:
- github_commit_status:
context: "auditbeat: Packaging Linux"

- label: ":linux: Auditbeat/Packaging Linux arm64"
- label: ":ubuntu: Auditbeat: Packaging Linux arm64"
key: "auditbeat-package-linux-arm64"
env:
PLATFORMS: "linux/arm64"
Expand Down
Loading

0 comments on commit 637f4df

Please sign in to comment.