Skip to content

Commit

Permalink
[7.17](backport #39870) Migrate github checks to buildkite for metric…
Browse files Browse the repository at this point in the history
…beat and x-pack/metricbeat (#39941)

* Migrate github checks to buildkite for metricbeat and x-pack/metricbeat (#39870)

* Update

* Update pipeline.xpack.metricbeat.yml

* Update version of image

(cherry picked from commit 9e70993)

# Conflicts:
#	.github/workflows/check-metricbeat.yml

* Delete check-metricbeat.yml

---------

Co-authored-by: ev1yehor <[email protected]>
  • Loading branch information
mergify[bot] and ev1yehor authored Jun 19, 2024
1 parent 77e33bd commit 429ceba
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 25 deletions.
26 changes: 26 additions & 0 deletions .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,32 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "Metricbeat Check/Update"
key: "metricbeat-check-update"
steps:
- label: "Run check/update"
command: |
make -C metricbeat check update
make check-no-changes
retry:
automatic:
- limit: 3
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
cpu: "4000m"
memory: "8Gi"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "metricbeat: 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: "metricbeat-check-update"

- group: "Metricbeat Mandatory Tests"
key: "metricbeat-mandatory-tests"
steps:
Expand Down
26 changes: 26 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,32 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "x-pack/metricbeat Check/Update"
key: "x-pack-metricbeat-check-update"
steps:
- label: "Run check/update"
command: |
make -C x-pack/metricbeat check update
make check-no-changes
retry:
automatic:
- limit: 3
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
cpu: "4000m"
memory: "8Gi"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "x-pack/metricbeat: 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: "x-pack-metricbeat-check-update"

- group: "x-pack/metricbeat Mandatory Tests"
key: "x-pack-metricbeat-mandatory-tests"
steps:
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/check-metricbeat.yml

This file was deleted.

0 comments on commit 429ceba

Please sign in to comment.