Skip to content

Commit

Permalink
[7.17](backport #39841) Migrate github checks to buildkite pipeline f…
Browse files Browse the repository at this point in the history
…or heartbeat and x-pack/heartbeat (#39943)

* Migrate github checks to buildkite pipeline for heartbeat and x-pack/heartbeat (#39841)

* Updates

* Update

* Update pipeline.xpack.filebeat.yml

* Update

(cherry picked from commit 4496e21)

# Conflicts:
#	.github/workflows/check-xpack-heartbeat.yml

* Delete check-xpack-heartbeat.yml

---------

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

steps:
- group: "Heartbeat Check/Update"
key: "heartbeat-check-update"

steps:
- label: "Run check/update"
command: |
make -C heartbeat 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: "hearbeat: 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: "heartbeat-check-update"

- group: "Heartbeat Mandatory Testing"
key: "heartbeat-mandatory-tests"

Expand Down
27 changes: 27 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,33 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "x-pack/heartbeat Check/Update"
key: "x-pack-heartbeat-check-update"

steps:
- label: "Run check/update"
command: |
make -C x-pack/heartbeat 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/heartbeat: 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-heartbeat-check-update"

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

This file was deleted.

0 comments on commit 77e33bd

Please sign in to comment.