Skip to content

Commit a133137

Browse files
jlind23alexsapranjulienlind
authored
Use buildkite test collector plugins for flaky tests analysis (#5385)
Use buildkite test collector plugins Add condition to only run on main --------- Signed-off-by: Alexandros Sapranidis <alexandros@elastic.co> Co-authored-by: Alexandros Sapranidis <alexandros@elastic.co> Co-authored-by: julienlind <vincent.lind@elastic.co>
1 parent 6695324 commit a133137

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.buildkite/hooks/pre-command

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ if [[ "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
5858
export API_KEY_TOKEN=$(vault kv get -field apiKey ${CI_ESS_PATH})
5959
echo ${API_KEY_TOKEN} > ./apiKey
6060
export TEST_INTEG_AUTH_ESS_APIKEY_FILE=$(realpath ./apiKey)
61+
62+
# BK analytics
63+
echo "--- Prepare BK test analytics token :vault:"
64+
BUILDKITE_ANALYTICS_TOKEN=$(vault kv get -field token kv/ci-shared/platform-ingest/buildkite_analytics_token)
65+
export BUILDKITE_ANALYTICS_TOKEN
66+
6167
fi
6268

6369
if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-binary-dra" ]]; then

.buildkite/hooks/pre-exit

100755100644
-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ if [ -n "$TEST_INTEG_AUTH_GCP_SERVICE_TOKEN_FILE" ]; then
2626
fi
2727
fi
2828

29-
source .buildkite/scripts/unset-secrets.sh
30-
3129
if command -v docker &>/dev/null; then
3230
DOCKER_REGISTRY="docker.elastic.co"
3331
docker logout $DOCKER_REGISTRY

.buildkite/integration.pipeline.yml

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ steps:
7777
notify:
7878
- github_commit_status:
7979
context: "buildkite/elastic-agent-extended-testing - Integration tests"
80+
plugins:
81+
- test-collector#v1.10.1:
82+
files: "build/TEST-*.xml"
83+
format: "junit"
84+
branches: "main"
85+
debug: true
8086

8187
- label: "Serverless Beats Tests"
8288
depends_on:
@@ -96,3 +102,5 @@ steps:
96102
notify:
97103
- github_commit_status:
98104
context: "buildkite/elastic-agent-extended-testing - Serverless Beats Tests"
105+
106+

.buildkite/scripts/unset-secrets.sh

-9
This file was deleted.

0 commit comments

Comments
 (0)