Skip to content

Commit

Permalink
Centralised pipeline xpack/dockerlogbeat fixes (#38862)
Browse files Browse the repository at this point in the history
* test - added empty file

* removed test dummy file

* restored snapshot packaging step

* dummy file to test packaging

* pr fixes

* fixing packaging step

* fixing packaging step

* moved xpack dockerlogbeat to main pipeline

* added fixes from dockerlogbeat pr

* updated packaging step

* restored winlogbeat pipeline
  • Loading branch information
oakrizan authored Apr 11, 2024
1 parent 60b3774 commit aff4f8d
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
name: "beats-xpack-dockerlogbeat"

env:
BEATS_PROJECT_NAME: "x-pack/dockerlogbeat"

ASDF_MAGE_VERSION: 1.15.0

AWS_ARM_INSTANCE_TYPE: "m6g.xlarge"
Expand All @@ -23,58 +21,58 @@ env:
IMAGE_WIN_2019: "family/platform-ingest-beats-windows-2019"
IMAGE_WIN_2022: "family/platform-ingest-beats-windows-2022"

#Packaging
PACKAGING_ARM_PLATFORMS: "linux/arm64"
PACKAGING_PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64"

steps:

- group: "Xpack/Dockerlogbeat Mandatory Tests"
key: "xpack-dockerlogbeat-mandatory-tests"
steps:
- label: ":ubuntu: Xpack/Dockerlogbeat Ubuntu Unit Tests"
key: "mandatory-linux-unit-test"
command: "cd $BEATS_PROJECT_NAME && mage build unitTest"
command: "cd x-pack/dockerlogbeat && mage build unitTest"
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_DEFAULT_MACHINE_TYPE}"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
- "x-pack/dockerlogbeat/build/*.xml"
- "x-pack/dockerlogbeat/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Ubuntu Unit Tests"
context: "x-pack/dockerlogbeat: Ubuntu Unit Tests"

- label: ":ubuntu: Xpack/Dockerlogbeat Go Integration Tests"
key: "mandatory-int-test"
command: "cd $BEATS_PROJECT_NAME && mage goIntegTest"
command: "cd x-pack/dockerlogbeat && mage goIntegTest"
env:
MODULE: $MODULE
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_DEFAULT_MACHINE_TYPE}"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
- "x-pack/dockerlogbeat/build/*.xml"
- "x-pack/dockerlogbeat/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Go Integration Tests"
context: "x-pack/dockerlogbeat: Go Integration Tests"

- group: "Xpack/Dockerlogbeat Packaging"
key: "xpack-dockerlogbeat-packaging"
- 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:
- "xpack-dockerlogbeat-mandatory-tests"

- group: "Xpack/Dockerlogbeat Packaging"
key: "xpack-dockerlogbeat-packaging"

steps:
- label: ":ubuntu: Xpack/Dockerlogbeat Packaging Linux X86"
key: "auditbeat-package-linux-x86"
env:
PLATFORMS: "${PACKAGING_PLATFORMS}"
PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64"
SNAPSHOT: true
command: "cd $BEATS_PROJECT_NAME && mage package"
command: "cd x-pack/dockerlogbeat && mage package"
agents:
provider: gcp
image: "${IMAGE_UBUNTU_X86_64}"
Expand All @@ -83,10 +81,10 @@ steps:
- label: ":linux: Xpack/Dockerlogbeat Packaging Linux ARM"
key: "auditbeat-package-linux-arm"
env:
PLATFORMS: "${PACKAGING_ARM_PLATFORMS}"
PLATFORMS: "linux/arm64"
PACKAGES: "docker"
SNAPSHOT: true
command: "cd $BEATS_PROJECT_NAME && mage package"
command: "cd x-pack/dockerlogbeat && mage package"
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
Expand Down

0 comments on commit aff4f8d

Please sign in to comment.