mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 03:49:26 +00:00
On the live cluster ax created the Task before its Workspace in the same apply and the runner saw an empty AX_WORKSPACES_YAML. Tests now find rendered documents by kind and name, not position. ops/ax/smoke-run.sh renders a model-free repo-facts Run with the current runner digest and executes it through the reconciler. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
13 lines
803 B
Bash
Executable File
13 lines
803 B
Bash
Executable File
#!/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
|
|
KIND_GW="$(docker network inspect kind --format '{{range .IPAM.Config}}{{if .Gateway}}{{.Gateway}} {{end}}{{end}}' | tr ' ' '\n' | grep -m1 '\.')"
|
|
export OUSAST_ARTIFACT_HOST="${OUSAST_ARTIFACT_HOST:-$KIND_GW}" # sandboxes reach the host via the kind gateway
|
|
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
|