@@ -249,22 +249,18 @@ jobs:
249249 # resolves to whatever mikefarah shipped this morning, and a yq that changed
250250 # how it emits or compares a value turns a release gate into a moving one.
251251 # The version tracks packages/core/testing/images/e2e-sandbox/Dockerfile.
252- # yq is additionally pinned by content; the Flux installer is not, because
253- # it checksums the binary it fetches and the mutable part is its own
254- # bootstrap script. promote-rc.yaml's copy of this step carries the full
255- # reasoning for both.
256- - name : Set up promotion toolchain (flux, yq)
252+ # yq is additionally pinned by content; flux comes from the commit-pinned
253+ # upstream setup action, which checksums the release tarball.
254+ # promote-rc.yaml's copy of this step carries the full reasoning for both.
255+ - name : Set up flux
256+ uses : fluxcd/flux2/action@04acaec6161ac4fb1a82ffafa88901c03271d34f # v2.8.6
257+ with :
258+ version : " 2.8.6"
259+ - name : Set up promotion toolchain (yq)
257260 env :
258- FLUX_VERSION : " 2.8.6"
259261 YQ_VERSION : " 4.53.3"
260262 YQ_SHA256 : " fa52a4e758c63d38299163fbdd1edfb4c4963247918bf9c1c5d31d84789eded4"
261263 run : |
262- if ! flux version --client 2>/dev/null | grep -qx "flux: v${FLUX_VERSION}"; then
263- install_script="$(mktemp)"
264- curl -fsSL https://fluxcd.io/install.sh -o "$install_script"
265- sudo env "FLUX_VERSION=$FLUX_VERSION" bash "$install_script"
266- rm -f "$install_script"
267- fi
268264 if ! yq --version 2>/dev/null | grep -q "mikefarah.* version v${YQ_VERSION}\$"; then
269265 yq_bin="$(mktemp)"
270266 curl -fsSL -o "$yq_bin" \
@@ -313,11 +309,17 @@ jobs:
313309 with :
314310 fetch-depth : 0
315311 # Ephemeral runners don't carry the helm-unittest plugin the persistent
316- # self-hosted runner accreted. Install if absent (idempotent).
312+ # self-hosted runner accreted. The plugin embeds its own Helm, so its
313+ # version is pinned: a plugin release must not change test results.
317314 - name : Set up test toolchain
315+ env :
316+ HELM_UNITTEST_VERSION : " 1.1.2"
318317 run : |
319- helm plugin list 2>/dev/null | grep -q unittest \
320- || helm plugin install https://github.com/helm-unittest/helm-unittest
318+ installed="$(helm plugin list 2>/dev/null | awk '$1 == "unittest" { print $2 }')"
319+ if [ "$installed" != "$HELM_UNITTEST_VERSION" ]; then
320+ [ -z "$installed" ] || helm plugin uninstall unittest
321+ helm plugin install https://github.com/helm-unittest/helm-unittest --version "v${HELM_UNITTEST_VERSION}"
322+ fi
321323 # The make processes share one four-slot jobserver. Each BATS file is a
322324 # separate target, so the long tail no longer runs as one nine-minute shell
323325 # loop; Helm and Go targets share the same bounded pool. Output stays
@@ -359,17 +361,11 @@ jobs:
359361 fetch-depth : 0
360362 fetch-tags : true
361363 # installer is built in finalize, but some package image targets shell out
362- # to flux; install the pinned version when it is not already present.
363- - name : Set up build toolchain
364- env :
365- FLUX_VERSION : " 2.8.6"
366- run : |
367- if ! flux version --client 2>/dev/null | grep -Fqx "flux: v${FLUX_VERSION}"; then
368- install_script="$(mktemp)"
369- curl -fsSL https://fluxcd.io/install.sh -o "$install_script"
370- sudo env "FLUX_VERSION=$FLUX_VERSION" bash "$install_script"
371- rm -f "$install_script"
372- fi
364+ # to flux.
365+ - name : Set up flux
366+ uses : fluxcd/flux2/action@04acaec6161ac4fb1a82ffafa88901c03271d34f # v2.8.6
367+ with :
368+ version : " 2.8.6"
373369 - name : Set up Docker config
374370 run : |
375371 if [ -d ~/.docker ]; then
@@ -587,16 +583,10 @@ jobs:
587583 with :
588584 fetch-depth : 0
589585 fetch-tags : true
590- - name : Set up build toolchain
591- env :
592- FLUX_VERSION : " 2.8.6"
593- run : |
594- if ! flux version --client 2>/dev/null | grep -Fqx "flux: v${FLUX_VERSION}"; then
595- install_script="$(mktemp)"
596- curl -fsSL https://fluxcd.io/install.sh -o "$install_script"
597- sudo env "FLUX_VERSION=$FLUX_VERSION" bash "$install_script"
598- rm -f "$install_script"
599- fi
586+ - name : Set up flux
587+ uses : fluxcd/flux2/action@04acaec6161ac4fb1a82ffafa88901c03271d34f # v2.8.6
588+ with :
589+ version : " 2.8.6"
600590 - name : Download patch fragments
601591 uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
602592 with :
0 commit comments