Skip to content

Commit

Permalink
Migrate github checks to buildkite for metricbeat and x-pack/metricbe…
Browse files Browse the repository at this point in the history
…at (#39870) (#39942)

* Update

* Update pipeline.xpack.metricbeat.yml

* Update version of image

(cherry picked from commit 9e70993)

Co-authored-by: ev1yehor <[email protected]>
  • Loading branch information
mergify[bot] and ev1yehor authored Jun 19, 2024
1 parent 1cf65b8 commit b1518d0
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 28 deletions.
26 changes: 26 additions & 0 deletions .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,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"

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
28 changes: 0 additions & 28 deletions .github/workflows/check-metricbeat.yml

This file was deleted.

0 comments on commit b1518d0

Please sign in to comment.