CD/CD consolidation
This commit is contained in:
15
devops/tools/signals-scripts/build.sh
Normal file
15
devops/tools/signals-scripts/build.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
# Build Signals image and export a tarball for offline use.
|
||||
|
||||
ROOT=${ROOT:-$(git rev-parse --show-toplevel)}
|
||||
OUT_DIR=${OUT_DIR:-$ROOT/out/signals}
|
||||
IMAGE_TAG=${IMAGE_TAG:-stellaops/signals:local}
|
||||
DOCKERFILE=${DOCKERFILE:-ops/devops/signals/Dockerfile}
|
||||
|
||||
mkdir -p "$OUT_DIR"
|
||||
|
||||
docker build -f "$DOCKERFILE" -t "$IMAGE_TAG" "$ROOT"
|
||||
docker save "$IMAGE_TAG" -o "$OUT_DIR/signals-image.tar"
|
||||
|
||||
printf "Image %s saved to %s/signals-image.tar\n" "$IMAGE_TAG" "$OUT_DIR"
|
||||
13
devops/tools/signals-scripts/reachability-smoke.sh
Executable file
13
devops/tools/signals-scripts/reachability-smoke.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Lightweight smoke for SIGNALS-24-004/005: run reachability scoring + cache/event tests.
|
||||
# Uses existing unit tests as fixtures; intended for CI and local preflight.
|
||||
|
||||
ROOT="${1:-src/Signals/__Tests/StellaOps.Signals.Tests/StellaOps.Signals.Tests.csproj}"
|
||||
FILTER="${FILTER:-ReachabilityScoringServiceTests|RuntimeFactsIngestionServiceTests.IngestAsync_AggregatesHits_AndRecomputesReachability|InMemoryEventsPublisherTests}"
|
||||
|
||||
echo "[info] Running reachability smoke against ${ROOT}"
|
||||
dotnet test "${ROOT}" -c Release --no-build --filter "${FILTER}" --logger "console;verbosity=normal"
|
||||
|
||||
echo "[info] Reachability smoke succeeded."
|
||||
7
devops/tools/signals-scripts/run-spansink.sh
Normal file
7
devops/tools/signals-scripts/run-spansink.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
# Run the OTLP span sink for Excititor traces (DEVOPS-SPANSINK-31-003).
|
||||
ROOT=${ROOT:-$(git rev-parse --show-toplevel)}
|
||||
COMPOSE_FILE=${COMPOSE_FILE:-$ROOT/ops/devops/signals/docker-compose.spansink.yml}
|
||||
export COMPOSE_FILE
|
||||
exec docker compose up -d
|
||||
Reference in New Issue
Block a user