logstash/.buildkite/aarch64_pipeline.yml
github-actions[bot] faa0c144d0
[ci] aarch64 Buildkite pipeline part 2 (#15473) (#15505)
This commit is the follow up PR after #15466, which migrates away
the remaining aarch64 acceptance test Jenkins jobs to Buildkite.

Relates:

- #15466
- https://github.com/elastic/ingest-dev/issues/1724

(cherry picked from commit c384190718)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-26 09:38:38 +03:00

109 lines
3.2 KiB
YAML

agents:
provider: aws
imagePrefix: platform-ingest-logstash-ubuntu-2204-aarch64
instanceType: "m6g.4xlarge"
diskSizeGb: 200
steps:
- group: "Testing Phase"
key: "testing-phase"
steps:
- label: ":rspec: Ruby unit tests"
key: "ruby-unit-tests"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
ci/unit_tests.sh ruby
- label: ":java: Java unit tests"
key: "java-unit-tests"
env:
# https://github.com/elastic/logstash/pull/15486 for background
ENABLE_SONARQUBE: "false"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
ci/unit_tests.sh java
- label: ":lab_coat: Integration Tests / part 1"
key: "integration-tests-part-1"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
ci/integration_tests.sh split 0
- label: ":lab_coat: Integration Tests / part 2"
key: "integration-tests-part-2"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
ci/integration_tests.sh split 1
- label: ":lab_coat: IT Persistent Queues / part 1"
key: "integration-tests-qa-part-1"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
export FEATURE_FLAG=persistent_queues
ci/integration_tests.sh split 0
- label: ":lab_coat: IT Persistent Queues / part 2"
key: "integration-tests-qa-part-2"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
export FEATURE_FLAG=persistent_queues
ci/integration_tests.sh split 1
- label: ":lab_coat: x-pack unit tests"
key: "x-pack-unit-tests"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
x-pack/ci/unit_tests.sh
- label: ":lab_coat: x-pack integration"
key: "integration-tests-x-pack"
command: |
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh
x-pack/ci/integration_tests.sh
- group: "Acceptance Phase"
depends_on: "testing-phase"
key: "acceptance-phase"
steps:
- label: "Docker [{{matrix}}] flavor acceptance"
command:
set -euo pipefail
source .buildkite/scripts/common/vm-agent.sh && ci/docker_acceptance_tests.sh {{matrix}}
matrix:
- "full"
- "oss"
# *** TODO: enable after clarifying if acceptance tests really need vagrant on aarch64
# - label: "Acceptance tests on {{matrix.distribution}}"
# agents:
# provider: aws
# imagePrefix: platform-ingest-logstash-{{matrix.distribution}}-aarch64
# instanceType: "m6g.4xlarge"
# diskSizeGb: 200
# command:
# set -euo pipefail
# source .buildkite/scripts/common/vm-agent.sh && ci/acceptance_tests.sh {{matrix.suite}}
# matrix:
# setup:
# suite:
# - "debian"
# distribution:
# - "ubuntu-2204"