Skip to content

Commit

Permalink
[ci] Add PR it-tests (part 1+2) to Buildkite (#15438)
Browse files Browse the repository at this point in the history
This commit adds integration tests to the
Buildkite PR pipeline.

Relates:

- #15437
- elastic/ingest-dev#1721
- #15279
  • Loading branch information
dliappis authored Oct 13, 2023
1 parent e285425 commit 816d7e6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .buildkite/pull_request_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,33 @@ steps:
source .buildkite/scripts/common/container-agent.sh
source .buildkite/scripts/pull-requests/sonar-env.sh
ci/unit_tests.sh java
- label: ":lab_coat: Integration Tests / part 1"
key: "integration-tests-part-1"
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
cpu: "8"
memory: "16Gi"
ephemeralStorage: "100Gi"
# Run as a non-root user
imageUID: "1002"
command: |
set -euo pipefail
source .buildkite/scripts/common/container-agent.sh
ci/integration_tests.sh split 0
- label: ":lab_coat: Integration Tests / part 2"
key: "integration-tests-part-2"
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci-no-root"
cpu: "8"
memory: "16Gi"
ephemeralStorage: "100Gi"
# Run as a non-root user
imageUID: "1002"
command: |
set -euo pipefail
source .buildkite/scripts/common/container-agent.sh
ci/integration_tests.sh split 1
10 changes: 8 additions & 2 deletions .buildkite/scripts/common/container-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@

set -euo pipefail

export PATH="/usr/local/rbenv/bin:$PATH"
eval "$(rbenv init -)"
if [[ $(whoami) == "logstash" ]]
then
export PATH="/home/logstash/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
else
export PATH="/usr/local/rbenv/bin:$PATH"
eval "$(rbenv init -)"
fi

0 comments on commit 816d7e6

Please sign in to comment.