Skip to content

The only tool you need to know what is happening and how to fix it.

Update hetzner-up.sh

ddux9037a20b90bb
diff --git a/benchmarks/scripts/hetzner-up.sh b/benchmarks/scripts/hetzner-up.sh
index 07849843..2808913c 100755
--- a/benchmarks/scripts/hetzner-up.sh
+++ b/benchmarks/scripts/hetzner-up.sh
@@ -20,6 +20,13 @@ fi
TIER="$1"
RUN_ID="$2"
LOCATION="${3:-nbg1}"
+
+# Trim leading/trailing whitespace from positional args. CI inputs and shell
+# variables occasionally arrive with a trailing space (e.g. "hil ") which then
+# fails downstream API calls with cryptic "datacenter not found" errors.
+TIER="$(printf '%s' "${TIER}" | xargs)"
+RUN_ID="$(printf '%s' "${RUN_ID}" | xargs)"
+LOCATION="$(printf '%s' "${LOCATION}" | xargs)"
IMAGE="${BENCH_IMAGE:-debian-12}"
# Loadgen tier: pick the cheapest shared-vCPU instance available in the