GeezerVison is showing github.com — ci(heavy): install the kind version pinned in deploy/k8s/versions.json · CortexLM/hypertrain@2ad33be
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/heavy.yml +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -141,4 +141,23 @@ jobs: |
141 | 141 | enable-cache: true |
142 | 142 | cache-dependency-glob: "uv.lock" |
143 | 143 | - run: uv sync --locked --all-extras --group dev |
| 144 | + # The runner image ships its own kind; the od relay tests and relay_kind_smoke.py |
| 145 | + # require the kind_version pinned in deploy/k8s/versions.json. |
| 146 | + - name: Install pinned kind |
| 147 | + env: |
| 148 | + KIND_SHA256_V0_31_0: eb244cbafcc157dff60cf68693c14c9a75c4e6e6fedaf9cd71c58117cb93e3fa |
| 149 | + run: | |
| 150 | + set -euo pipefail |
| 151 | + v="$(python3 -c 'import json; print(json.load(open("deploy/k8s/versions.json"))["kind_version"])')" |
| 152 | + if [ "$v" != v0.31.0 ]; then |
| 153 | + echo "kind_version $v: update KIND_SHA256 in heavy.yml" >&2 |
| 154 | + exit 1 |
| 155 | + fi |
| 156 | + mkdir -p "$RUNNER_TEMP/kind-bin" |
| 157 | + curl -fsSLo "$RUNNER_TEMP/kind-bin/kind" \ |
| 158 | + "https://github.com/kubernetes-sigs/kind/releases/download/$v/kind-linux-amd64" |
| 159 | + echo "$KIND_SHA256_V0_31_0 $RUNNER_TEMP/kind-bin/kind" | sha256sum -c - |
| 160 | + chmod 755 "$RUNNER_TEMP/kind-bin/kind" |
| 161 | + "$RUNNER_TEMP/kind-bin/kind" version | grep -q "^kind $v " |
| 162 | + echo "$RUNNER_TEMP/kind-bin" >> "$GITHUB_PATH" |
144 | 163 | - run: bash scripts/check.sh --ignore=tests/sim --ignore=tests/e2e |