Skip to content

Commit 8b422fb

Browse files
donoghucyaauie
andauthored
Add a smoke test for observability SRE container (#17298)
* Add a smoke test for observability SRE container Add a CI cell to ensure the observability contater is building successfully. In order to show success run a quick smoke test to point out any glaring issues. This adds some general, low risk plugins for doing quick testing. This will help developers in debugging as we work on this image. * Show what is happening when rake fails * Debug deeper in the stack Show the stdout/stderr when shelling out fails. * Debug layers of build tooling Open3 is not capturing stdout for some reason. Capture it and print to see what is wrong in CI. * Actually run ls command in docker container 🤦 * Update safe_system based on code review suggestion * Dynamically generate version for container invocation Co-authored-by: Ry Biesemeyer <[email protected]> * Refactor smoke test setup to script Avoid interpolation backflips with buildkite by extracting to a script. * Split out message surfacing improvment to separate PR. Moved to: #17310 * Extract version qualifier into standalone script * Wait for version-qualifier.sh script to land upstream Use #17311 once it lands and gets backported to 8.x. For now just hard code version. --------- Co-authored-by: Ry Biesemeyer <[email protected]>
1 parent 48a599a commit 8b422fb

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.buildkite/pull_request_pipeline.yml

+20
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,26 @@ steps:
123123
manual:
124124
allowed: true
125125

126+
- label: "Observability SRE container smoke test"
127+
key: "observability-sre-container-smoke-test"
128+
agents:
129+
provider: gcp
130+
imageProject: elastic-images-prod
131+
image: family/platform-ingest-logstash-ubuntu-2204
132+
machineType: "n2-standard-4"
133+
diskSizeGb: 64
134+
retry:
135+
automatic:
136+
- limit: 3
137+
command: |
138+
set -euo pipefail
139+
source .buildkite/scripts/common/vm-agent.sh
140+
# TODO: Use https://github.com/elastic/logstash/pull/17311 to compute QUALIFIED_VERSION once merged
141+
QUALIFIED_VERSION="8.19.0-SNAPSHOT"
142+
./gradlew --stacktrace artifactDockerObservabilitySRE
143+
docker run docker.elastic.co/logstash/logstash-observability-sre:$${QUALIFIED_VERSION} \
144+
logstash -e 'input { generator { count => 3 } } output { stdout { codec => rubydebug } }'
145+
126146
- label: ":lab_coat: Integration Tests - FIPS mode / part 1"
127147
key: "integration-tests-fips-part-1"
128148
agents:

x-pack/distributions/internal/observabilitySRE/plugin-allow-list.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
logstash-codec-json
22
logstash-codec-multiline
33
logstash-codec-plain
4+
logstash-codec-rubydebug
45
logstash-filter-age
56
logstash-filter-date
67
logstash-filter-drop
@@ -9,7 +10,9 @@ logstash-filter-grok
910
logstash-filter-json
1011
logstash-filter-mutate
1112
logstash-input-beats
13+
logstash-input-generator
1214
logstash-input-pipeline
1315
logstash-output-elasticsearch
1416
logstash-output-pipeline
17+
logstash-output-stdout
1518
logstash-patterns-core

0 commit comments

Comments
 (0)