Skip to content

Commit

Permalink
updated commads and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Mar 26, 2024
1 parent 3fc6565 commit ba46375
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 114 deletions.
20 changes: 10 additions & 10 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: "cd ${BEATS_PROJECT_NAME} && mage 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: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Auditbeat: rhel/Unit Tests"
Expand All @@ -51,7 +51,7 @@ steps:

- label: ":windows:-2016 Unit Tests"
key: "windows-2016"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: windows-2016/Unit Tests"
Expand All @@ -67,7 +67,7 @@ steps:

- label: ":windows:-2022 Unit Tests"
key: "windows-2022"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: windows-2022/Unit Tests"
Expand Down Expand Up @@ -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: "cd ${BEATS_PROJECT_NAME} && mage 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: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Auditbeat: MacOS Unit Tests"
Expand All @@ -127,7 +127,7 @@ steps:
- label: ":mac: MacOS ARM Unit Tests"
key: "macos-extended-arm"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "auditbeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Auditbeat: MacOS ARM Unit Tests"
Expand All @@ -143,7 +143,7 @@ steps:
steps:
- label: ":windows:-2019 Unit Tests"
key: "windows-extended-2019"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: Win-2019 Unit Tests"
Expand All @@ -159,7 +159,7 @@ steps:

- label: ":windows:-11 Unit Tests"
key: "windows-extended-11"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: Win-11 Unit Tests"
Expand All @@ -175,7 +175,7 @@ steps:

- label: ":windows:-10 Unit Tests"
key: "windows-extended-10"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Auditbeat: Win-10 Unit Tests"
Expand Down
6 changes: 0 additions & 6 deletions .buildkite/auditbeat/scripts/crosscompile.sh

This file was deleted.

9 changes: 0 additions & 9 deletions .buildkite/auditbeat/scripts/unit-tests.sh

This file was deleted.

22 changes: 11 additions & 11 deletions .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:

steps:
- label: ":ubuntu: Unit Tests"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Filebeat: linux/Unit Tests"
Expand All @@ -36,7 +36,7 @@ steps:
- "filebeat/build/*.json"

- label: ":ubuntu: Go Integration Tests"
command: "mage -d ${BEATS_PROJECT_NAME} goIntegTest"
command: "cd ${BEATS_PROJECT_NAME} && mage goIntegTest"
notify:
- github_commit_status:
context: "Filebeat: Go Integration Tests"
Expand All @@ -49,7 +49,7 @@ steps:
- "filebeat/build/*.json"

- label: ":ubuntu: Python Integration Tests"
command: "mage -d ${BEATS_PROJECT_NAME} pythonIntegTest"
command: "cd ${BEATS_PROJECT_NAME} && mage pythonIntegTest"
notify:
- github_commit_status:
context: "Filebeat: Python Integration Tests"
Expand All @@ -63,7 +63,7 @@ steps:

- label: ":windows:-2016 Unit Tests"
key: "windows-2016"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: windows-2016/Unit Tests"
Expand All @@ -79,7 +79,7 @@ steps:

- label: ":windows:-2022 Unit Tests"
key: "windows-2022"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: windows-2022/Unit Tests"
Expand All @@ -101,7 +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: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Filebeat: Unit Tests ARM"
Expand All @@ -114,7 +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: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Filebeat: MacOS Unit Tests"
Expand All @@ -126,7 +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: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Filebeat: MacOS ARM Unit Tests"
Expand All @@ -142,7 +142,7 @@ steps:
steps:
- label: ":windows: Win 2019 Unit Tests"
key: "windows-extended-2019"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: Win-2019 Unit Tests"
Expand All @@ -158,7 +158,7 @@ steps:

- label: ":windows:-11 Unit Tests"
key: "windows-extended-11"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: Win-11 Unit Tests"
Expand All @@ -174,7 +174,7 @@ steps:

- label: ":windows:-10 Unit Tests"
key: "windows-extended-10"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Filebeat: Win-10 Unit Tests"
Expand Down
10 changes: 0 additions & 10 deletions .buildkite/filebeat/scripts/integration-gotests.sh

This file was deleted.

10 changes: 0 additions & 10 deletions .buildkite/filebeat/scripts/integration-pytests.sh

This file was deleted.

9 changes: 0 additions & 9 deletions .buildkite/filebeat/scripts/unit-tests.sh

This file was deleted.

24 changes: 12 additions & 12 deletions .buildkite/heartbeat/heartbeat-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: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Heartbeat: ubuntu/Unit Tests"
Expand All @@ -37,7 +37,7 @@ steps:
- "heartbeat/build/*.json"

- label: ":rhel:-9 Unit Tests"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Heartbeat: rhel-9/Unit Tests"
Expand All @@ -51,7 +51,7 @@ steps:

- label: ":windows:-2016 Unit Test"
key: "windows-2016"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: windows-2016/Unit Tests"
Expand All @@ -66,7 +66,7 @@ steps:

- label: ":windows:-2022 Unit Test"
key: "windows-2022"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: windows-2022/Unit Tests"
Expand All @@ -80,7 +80,7 @@ steps:
- "heartbeat/build/*.json"

- label: ":ubuntu: Go Integration Tests"
command: "mage -d ${BEATS_PROJECT_NAME} goIntegTest"
command: "cd ${BEATS_PROJECT_NAME} && mage goIntegTest"
notify:
- github_commit_status:
context: "Heartbeat: Go Integration Tests"
Expand All @@ -93,7 +93,7 @@ steps:
- "heartbeat/build/*.json"

- label: ":ubuntu: Python Integration Tests"
command: "mage -d ${BEATS_PROJECT_NAME} pythonIntegTest"
command: "cd ${BEATS_PROJECT_NAME} && mage pythonIntegTest"
notify:
- github_commit_status:
context: "Heartbeat: Python Integration Tests"
Expand All @@ -113,7 +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: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Heartbeat: Unit Tests ARM"
Expand All @@ -126,7 +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: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Heartbeat: MacOS Unit Tests"
Expand All @@ -138,7 +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: "mage -d ${BEATS_PROJECT_NAME} unitTest"
command: "cd ${BEATS_PROJECT_NAME} && mage unitTest"
notify:
- github_commit_status:
context: "Heartbeat: MacOS ARM Unit Tests"
Expand All @@ -154,7 +154,7 @@ steps:
steps:
- label: ":windows:-2019 Unit Tests"
key: "windows-extended-2019"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: Win-2019 Unit Tests"
Expand All @@ -169,7 +169,7 @@ steps:

- label: ":windows:-11 Unit Tests"
key: "windows-extended-11"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: Win-11 Unit Tests"
Expand All @@ -184,7 +184,7 @@ steps:

- label: ":windows:-10 Unit Tests"
key: "windows-extended-10"
command: "mage -d ${BEATS_PROJECT_NAME} build unitTest"
command: "mage -d ${BEATS_PROJECT_NAME} unitTest"
notify:
- github_commit_status:
context: "Heartbeat: Win-10 Unit Tests"
Expand Down
12 changes: 0 additions & 12 deletions .buildkite/heartbeat/scripts/integration-gotests.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .buildkite/heartbeat/scripts/integration-pytests.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .buildkite/heartbeat/scripts/unit-tests.sh

This file was deleted.

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: ${ES_BEATS}/filebeat/input/redis/_meta
build: ${PWD}/input/redis/_meta
ports:
- 6379:6379

0 comments on commit ba46375

Please sign in to comment.