Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.17](backport #38862) Centralised pipeline xpack/dockerlogbeat fixes #38863

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 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,57 +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"

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"
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 @@ -82,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
Loading