2026-09-29 20:26:30 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# Render the end-to-end smoke Run with the current runner digest and execute it through the reconciler on ax.
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
export PATH="$HOME/go/bin:$HOME/.local/bin:$PATH"
|
|
|
|
|
SRC="${OUSAST_AX_SRC:-$HOME/.cache/ousast/ax-src}"
|
|
|
|
|
RUNNER_IMAGE="$(cat "$SRC/runner-image")"; export RUNNER_IMAGE
|
2026-09-29 20:51:21 +02:00
|
|
|
# Actors reach the receiver by its Service name through the egress gateway (ops/ax/receiver-service.yaml.tmpl,
|
|
|
|
|
# applied by up.sh, endpoint this host at OUSAST_ARTIFACT_PORT): the runner dials the Service's ClusterIP on port
|
|
|
|
|
# 80 with that name as Host; the reconciler looks the ClusterIP up unless OUSAST_ARTIFACT_DIAL is set.
|
|
|
|
|
export OUSAST_ARTIFACT_PORT="${OUSAST_ARTIFACT_PORT:-18090}"
|
2026-09-29 20:26:30 +02:00
|
|
|
envsubst < "$(dirname "$0")/smoke-run.yaml.tmpl" > "$SRC/smoke-run.yaml"
|
|
|
|
|
REPO="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
|
|
|
"$REPO/.venv/bin/ousast" plane run "$SRC/smoke-run.yaml" "$@"
|
|
|
|
|
"$REPO/.venv/bin/ousast" plane status ax-e2e-smoke
|