Skip to content

Commit

Permalink
updated step commands
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Mar 26, 2024
1 parent 1d999d2 commit 3fc6565
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 59 deletions.
10 changes: 5 additions & 5 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:

steps:
- label: ":ubuntu: Unit Tests"
command: mage -d "${BEATS_PROJECT_NAME}" unitTest
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: linux/Unit Tests"
Expand All @@ -37,7 +37,7 @@ steps:
- "auditbeat/build/*.json"

- label: ":rhel: Unit Tests"
command: mage -d "${BEATS_PROJECT_NAME}" unitTest
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: rhel/Unit Tests"
Expand Down Expand Up @@ -83,7 +83,7 @@ steps:

- label: ":linux: Crosscompile"
command:
- ".buildkite/auditbeat/scripts/crosscompile.sh"
- "make -C auditbeat crosscompile"
env:
GOX_FLAGS: "-arch amd64"
notify:
Expand All @@ -102,7 +102,7 @@ steps:
- label: ":linux: ARM64 Unit Tests"
key: "arm-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "auditbeat for arm" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
command: mage -d "${BEATS_PROJECT_NAME}" unitTest
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: Unit Tests ARM"
Expand All @@ -115,7 +115,7 @@ steps:
- label: ":mac: MacOS Unit Tests"
key: "macos-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "auditbeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command: mage -d "${BEATS_PROJECT_NAME}" unitTest
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: MacOS Unit Tests"
Expand Down
22 changes: 8 additions & 14 deletions .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ steps:

steps:
- label: ":ubuntu: Unit Tests"
command:
- ".buildkite/filebeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: linux/Unit Tests"
Expand All @@ -37,8 +36,7 @@ steps:
- "filebeat/build/*.json"

- label: ":ubuntu: Go Integration Tests"
command:
- ".buildkite/filebeat/scripts/integration-gotests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} goIntegTest"
notify:
- github_commit_status:
context: "Filebeat: Go Integration Tests"
Expand All @@ -51,8 +49,7 @@ steps:
- "filebeat/build/*.json"

- label: ":ubuntu: Python Integration Tests"
command:
- ".buildkite/filebeat/scripts/integration-pytests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} pythonIntegTest"
notify:
- github_commit_status:
context: "Filebeat: Python Integration Tests"
Expand Down Expand Up @@ -104,8 +101,7 @@ steps:
- label: ":linux: ARM64 Unit Tests"
key: "arm-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "filebeat for arm" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
command:
- ".buildkite/filebeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: Unit Tests ARM"
Expand All @@ -118,8 +114,7 @@ steps:
- label: ":mac: MacOS Unit Tests"
key: "macos-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "filebeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command:
- ".buildkite/filebeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: MacOS Unit Tests"
Expand All @@ -131,8 +126,7 @@ steps:
- label: ":mac: MacOS ARM Unit Tests"
key: "macos-extended-arm"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "filebeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command:
- ".buildkite/filebeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: MacOS ARM Unit Tests"
Expand All @@ -151,7 +145,7 @@ steps:
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
notify:
- github_commit_status:
context: "Filebea: Win-2019 Unit Tests"
context: "Filebeat: Win-2019 Unit Tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_2019}"
Expand Down Expand Up @@ -183,7 +177,7 @@ steps:
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
notify:
- github_commit_status:
context: "Filebea: Win-10 Unit Tests"
context: "Filebeat: Win-10 Unit Tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_10}"
Expand Down
21 changes: 7 additions & 14 deletions .buildkite/heartbeat/heartbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ steps:

steps:
- label: ":ubuntu: Unit Tests"
command:
- ".buildkite/heartbeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: ubuntu/Unit Tests"
Expand All @@ -38,8 +37,7 @@ steps:
- "heartbeat/build/*.json"

- label: ":rhel:-9 Unit Tests"
command:
- ".buildkite/heartbeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: rhel-9/Unit Tests"
Expand Down Expand Up @@ -82,8 +80,7 @@ steps:
- "heartbeat/build/*.json"

- label: ":ubuntu: Go Integration Tests"
command:
- ".buildkite/heartbeat/scripts/integration-gotests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} goIntegTest"
notify:
- github_commit_status:
context: "Heartbeat: Go Integration Tests"
Expand All @@ -96,8 +93,7 @@ steps:
- "heartbeat/build/*.json"

- label: ":ubuntu: Python Integration Tests"
command:
- ".buildkite/heartbeat/scripts/integration-pytests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} pythonIntegTest"
notify:
- github_commit_status:
context: "Heartbeat: Python Integration Tests"
Expand All @@ -117,8 +113,7 @@ steps:
- label: ":linux: ARM64 Unit Tests"
key: "arm-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "heartbeat for arm" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
command:
- ".buildkite/heartbeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: Unit Tests ARM"
Expand All @@ -131,8 +126,7 @@ steps:
- label: ":mac: MacOS Unit Tests"
key: "macos-extended"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "heartbeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command:
- ".buildkite/heartbeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: MacOS Unit Tests"
Expand All @@ -144,8 +138,7 @@ steps:
- label: ":mac: MacOS ARM Unit Tests"
key: "macos-extended-arm"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "heartbeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command:
- ".buildkite/heartbeat/scripts/unit-tests.sh"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: MacOS ARM Unit Tests"
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" ==
git reset --quiet --hard
fi

# Images with prefix "platform-ingest-beats-*" has Go pre-setup.
# Image itself takes care of Go version download/installation based on .go-version file
if [[ "$BUILDKITE_STEP_KEY" == macos* ]]; then
if [[ -z "${GO_VERSION-""}" ]]; then
GO_VERSION=$(cat "${WORKSPACE}/.go-version")
Expand Down
21 changes: 0 additions & 21 deletions .buildkite/scripts/win-tests.ps1

This file was deleted.

4 changes: 0 additions & 4 deletions auditbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ package main

import (
"fmt"
"log"
"os"
"time"

"github.com/magefile/mage/mg"
Expand Down Expand Up @@ -97,8 +95,6 @@ func Package() {
start := time.Now()
defer func() { fmt.Println("package ran for", time.Since(start)) }()

log.SetOutput(os.Stdout)

devtools.UseElasticBeatOSSPackaging()
devtools.PackageKibanaDashboardsFromBuildDir()
auditbeat.CustomizePackaging(auditbeat.OSSPackaging)
Expand Down
2 changes: 1 addition & 1 deletion filebeat/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ services:
- 1883:1883

redis:
build: ${PWD}/input/redis/_meta
build: ${ES_BEATS}/filebeat/input/redis/_meta
ports:
- 6379:6379

0 comments on commit 3fc6565

Please sign in to comment.