|
| 1 | +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json |
| 2 | + |
| 3 | +steps: |
| 4 | + - label: ":passport_control: License check" |
| 5 | + key: "license-check" |
| 6 | + agents: |
| 7 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci" |
| 8 | + cpu: "4" |
| 9 | + memory: "6Gi" |
| 10 | + ephemeralStorage: "100Gi" |
| 11 | + command: | |
| 12 | + set -euo pipefail |
| 13 | +
|
| 14 | + source .buildkite/scripts/common/container-agent.sh |
| 15 | + export JRUBY_OPTS="-J-Xmx1g" |
| 16 | + export GRADLE_OPTS="-Xmx2g -Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info" |
| 17 | + ci/license_check.sh -m 4G |
| 18 | +
|
| 19 | + - label: ":rspec: Ruby unit tests" |
| 20 | + key: "ruby-unit-tests" |
| 21 | + agents: |
| 22 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci" |
| 23 | + cpu: "4" |
| 24 | + memory: "8Gi" |
| 25 | + ephemeralStorage: "100Gi" |
| 26 | + command: | |
| 27 | + set -euo pipefail |
| 28 | +
|
| 29 | + source .buildkite/scripts/common/container-agent.sh |
| 30 | + ci/unit_tests.sh ruby |
| 31 | +
|
| 32 | + - label: ":java: Java unit tests" |
| 33 | + key: "java-unit-tests" |
| 34 | + agents: |
| 35 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci" |
| 36 | + cpu: "8" |
| 37 | + memory: "16Gi" |
| 38 | + ephemeralStorage: "100Gi" |
| 39 | + command: | |
| 40 | + set -euo pipefail |
| 41 | +
|
| 42 | + source .buildkite/scripts/common/container-agent.sh |
| 43 | + source .buildkite/scripts/pull-requests/sonar-env.sh |
| 44 | + ci/unit_tests.sh java |
| 45 | +
|
| 46 | + - label: ":lab_coat: Integration Tests / part 1" |
| 47 | + key: "integration-tests-part-1" |
| 48 | + agents: |
| 49 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root" |
| 50 | + cpu: "8" |
| 51 | + memory: "16Gi" |
| 52 | + ephemeralStorage: "100Gi" |
| 53 | + # Run as a non-root user |
| 54 | + imageUID: "1002" |
| 55 | + command: | |
| 56 | + set -euo pipefail |
| 57 | +
|
| 58 | + source .buildkite/scripts/common/container-agent.sh |
| 59 | + ci/integration_tests.sh split 0 |
| 60 | +
|
| 61 | + - label: ":lab_coat: Integration Tests / part 2" |
| 62 | + key: "integration-tests-part-2" |
| 63 | + agents: |
| 64 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root" |
| 65 | + cpu: "8" |
| 66 | + memory: "16Gi" |
| 67 | + ephemeralStorage: "100Gi" |
| 68 | + # Run as a non-root user |
| 69 | + imageUID: "1002" |
| 70 | + command: | |
| 71 | + set -euo pipefail |
| 72 | +
|
| 73 | + source .buildkite/scripts/common/container-agent.sh |
| 74 | + ci/integration_tests.sh split 1 |
| 75 | +
|
| 76 | + - label: ":lab_coat: IT Persistent Queues / part 1" |
| 77 | + key: "integration-tests-qa-part-1" |
| 78 | + agents: |
| 79 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root" |
| 80 | + cpu: "8" |
| 81 | + memory: "16Gi" |
| 82 | + ephemeralStorage: "100Gi" |
| 83 | + # Run as non root (logstash) user. UID is hardcoded in image. |
| 84 | + imageUID: "1002" |
| 85 | + command: | |
| 86 | + set -euo pipefail |
| 87 | +
|
| 88 | + source .buildkite/scripts/common/container-agent.sh |
| 89 | + export FEATURE_FLAG=persistent_queues |
| 90 | + ci/integration_tests.sh split 0 |
| 91 | +
|
| 92 | + - label: ":lab_coat: IT Persistent Queues / part 2" |
| 93 | + key: "integration-tests-qa-part-2" |
| 94 | + agents: |
| 95 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root" |
| 96 | + cpu: "8" |
| 97 | + memory: "16Gi" |
| 98 | + ephemeralStorage: "100Gi" |
| 99 | + # Run as non root (logstash) user. UID is hardcoded in image. |
| 100 | + imageUID: "1002" |
| 101 | + command: | |
| 102 | + set -euo pipefail |
| 103 | +
|
| 104 | + source .buildkite/scripts/common/container-agent.sh |
| 105 | + export FEATURE_FLAG=persistent_queues |
| 106 | + ci/integration_tests.sh split 1 |
| 107 | +
|
| 108 | + - label: ":lab_coat: x-pack unit tests" |
| 109 | + key: "x-pack-unit-tests" |
| 110 | + agents: |
| 111 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root" |
| 112 | + cpu: "8" |
| 113 | + memory: "16Gi" |
| 114 | + ephemeralStorage: "100Gi" |
| 115 | + # Run as non root (logstash) user. UID is hardcoded in image. |
| 116 | + imageUID: "1002" |
| 117 | + command: | |
| 118 | + set -euo pipefail |
| 119 | +
|
| 120 | + source .buildkite/scripts/common/container-agent.sh |
| 121 | + x-pack/ci/unit_tests.sh |
| 122 | +
|
| 123 | + - label: ":lab_coat: x-pack integration" |
| 124 | + key: "integration-tests-x-pack" |
| 125 | + agents: |
| 126 | + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root" |
| 127 | + cpu: "8" |
| 128 | + memory: "16Gi" |
| 129 | + ephemeralStorage: "100Gi" |
| 130 | + # Run as non root (logstash) user. UID is hardcoded in image. |
| 131 | + imageUID: "1002" |
| 132 | + command: | |
| 133 | + set -euo pipefail |
| 134 | +
|
| 135 | + source .buildkite/scripts/common/container-agent.sh |
| 136 | + x-pack/ci/integration_tests.sh |
0 commit comments