Source: immutable lab5 snapshot f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071; forward the allowed diff from 64d5c67. Carry SQLAlchemy, Alembic, reliability fixes, versioned jobs, infrastructure and student tests without changing protected coursework files. Validation: make check, validate, lint; 515 student tests passed with one Linux-only skip; public smoke with telemetry enabled and repeat migration passed. Stop the owned stack and retain volumes. Preserve the existing OTel work in progress; grade implementation remains a separate phase.
19 lines
1.3 KiB
Bash
Executable File
19 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
otel=otel/opentelemetry-collector-contrib:0.163.2@sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849
|
|
prom=prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2
|
|
loki=grafana/loki:3.7.9@sha256:0db216b630ae1f348a1584c67f3cead8b4c1fc839169a39501db664744158e28
|
|
tempo=grafana/tempo:2.10.10@sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38
|
|
docker run --rm --network none -v "$PWD/infra/otel:/etc/otelcol:ro" "$otel" validate --config=/etc/otelcol/collector.yaml
|
|
echo "otelcol-contrib validate collector.yaml: OK"
|
|
docker run --rm --network none --entrypoint promtool -v "$PWD/infra/prometheus:/etc/prometheus:ro" "$prom" check config /etc/prometheus/prometheus.yml
|
|
docker run --rm --network none -v "$PWD/infra/loki/loki.yaml:/etc/loki/loki.yaml:ro" "$loki" -config.file=/etc/loki/loki.yaml -verify-config
|
|
echo "loki -verify-config: OK"
|
|
docker run --rm --network none -v "$PWD/infra/tempo/tempo.yaml:/etc/tempo/tempo.yaml:ro" "$tempo" -config.file=/etc/tempo/tempo.yaml -config.verify=true
|
|
echo "tempo -config.verify: OK"
|
|
for board in infra/grafana/dashboards/*.json; do
|
|
python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); assert d["uid"] and d["panels"]' "$board"
|
|
done
|
|
echo "grafana dashboards: valid JSON with uid and panels"
|