2026-09-29 20:26:30 +02:00
|
|
|
#!/usr/bin/env bash
|
2026-10-02 20:43:40 +02:00
|
|
|
# Render the end-to-end smoke Run with the profile's runner digest and execute it through the reconciler on ax.
|
|
|
|
|
# The profile (OUSAST_PLANE_PROFILE, default kind; ops/k8s/profiles/) names the images file up.sh wrote.
|
2026-09-29 20:26:30 +02:00
|
|
|
set -euo pipefail
|
|
|
|
|
export PATH="$HOME/go/bin:$HOME/.local/bin:$PATH"
|
|
|
|
|
SRC="${OUSAST_AX_SRC:-$HOME/.cache/ousast/ax-src}"
|
2026-10-02 20:43:40 +02:00
|
|
|
REPO="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
|
|
|
PY="${OUSAST_PYTHON:-$REPO/.venv/bin/python}"
|
|
|
|
|
RUNNER_IMAGE="$(PYTHONPATH="$REPO/src" "$PY" -m openultrasast.plane.profile --profile "${OUSAST_PLANE_PROFILE:-kind}" --print images.runner)"
|
|
|
|
|
export RUNNER_IMAGE
|
2026-09-29 20:26:30 +02:00
|
|
|
envsubst < "$(dirname "$0")/smoke-run.yaml.tmpl" > "$SRC/smoke-run.yaml"
|
2026-10-02 20:43:40 +02:00
|
|
|
ousast() { PYTHONPATH="$REPO/src" "$PY" -m openultrasast.cli "$@"; } # this checkout's code, whatever python runs it
|
|
|
|
|
ousast plane run "$SRC/smoke-run.yaml" "$@"
|
|
|
|
|
ousast plane status ax-e2e-smoke
|