Skip to content

Commit 6e37f93

Browse files
committed
tests/ai-conformance: set up helm early
1 parent 627c61e commit 6e37f93

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

tests/e2e/scenarios/ai-conformance/run-test.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ set -o pipefail
2121
REPO_ROOT=$(git rev-parse --show-toplevel)
2222
source "${REPO_ROOT}"/tests/e2e/scenarios/lib/common.sh
2323

24+
# Install binaries onto path: helm
25+
BIN_DIR=${REPO_ROOT}/.build/bin
26+
mkdir -p "${BIN_DIR}"
27+
PATH="${BIN_DIR}:$PATH"
28+
export PATH
29+
30+
echo "Installing Helm..."
31+
curl -fsSL -o ${BIN_DIR}/get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
32+
chmod 700 ${BIN_DIR}/get_helm.sh
33+
USE_SUDO=false HELM_INSTALL_DIR="${BIN_DIR}" ${BIN_DIR}/get_helm.sh
34+
35+
# Setup helm repos
36+
helm repo add nvidia https://helm.ngc.nvidia.com/nvidia
37+
helm repo update
38+
2439
# AI Conformance requirements:
2540
# - Kubernetes 1.35
2641
# - NVIDIA L4 Instances (g6.xlarge on AWS)
@@ -45,8 +60,6 @@ source <("${SCENARIO_ROOT}/tools/check-aws-availability/check-aws-availability"
4560
echo "ZONES=${ZONES}"
4661
export ZONES
4762

48-
rm -f "${SCENARIO_ROOT}/tools/check-aws-availability/check-aws-availability"
49-
5063

5164
kops-acquire-latest
5265

@@ -112,9 +125,6 @@ helm upgrade -i nvidia-gpu-operator --wait \
112125
--version=v25.10.1 \
113126
--wait
114127

115-
PATH="$(pwd):$PATH"
116-
export PATH
117-
118128
# NVIDIA DRA Driver
119129
# Uses the driver installed by GPU Operator at /run/nvidia/driver (the default).
120130
echo "Installing NVIDIA DRA Driver..."
@@ -139,6 +149,7 @@ helm upgrade -i nvidia-dra-driver-gpu nvidia/nvidia-dra-driver-gpu \
139149
--wait
140150

141151

152+
142153
# Kueue
143154
echo "Installing Kueue..."
144155
kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases/download/v0.14.8/manifests.yaml

0 commit comments

Comments
 (0)