Skip to content

Commit

Permalink
[7.17](backport #39871) Migrate github checks to buildkite for packet…
Browse files Browse the repository at this point in the history
…beat and x-pack/packetbeat (#39875)

* Migrate github checks to buildkite for packetbeat and x-pack/packetbeat (#39871)

* update

* update

(cherry picked from commit f8679db)

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

* Delete check-packetbeat.yml

---------

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

steps:
- group: "Packetbeat Check/Update"
key: "packetbeat-check-update"
steps:
- label: "Run check/update"
command: |
make -C packetbeat 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: "packetbeat: 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: "packetbeat-check-update"

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

steps:
- group: "x-pack/packetbeat Check/Update"
key: "x-pack-packetbeat-check-update"
steps:
- label: "Run check/update"
command: |
make -C x-pack/packetbeat 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/packetbeat: 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-packetbeat-check-update"

- group: "x-pack/packetbeat Mandatory Tests"
key: "x-pack-packetbeat-mandatory-tests"

Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/check-packetbeat.yml

This file was deleted.

0 comments on commit 8416710

Please sign in to comment.