From 4bc8ba094a35bdd645dc928dc9bb17e1fc30c985 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sun, 22 Nov 2026 01:03:01 -0800 Subject: [PATCH] ci: run the planned hand-over tests against a pinned SeaweedFS release A step after the default pass runs the documented standalone planned hand-over and its refused clean move without the ACK (cmd/blockvolume TestStandalone*, build tags subprocess and chunkstore_integration) with weed 4.53 linux_amd64 from the SeaweedFS release, checked against its sha256 before every use, also from the runner's tool cache. A mismatch fails the step. It follows the job's rules: pushes, train PRs and non-Draft PRs. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/.github/workflows/test.yml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/seaweed-block/.github/workflows/test.yml b/seaweed-block/.github/workflows/test.yml index 4b32f0a04b..917fb011f1 100644 --- a/seaweed-block/.github/workflows/test.yml +++ b/seaweed-block/.github/workflows/test.yml @@ -83,3 +83,30 @@ jobs: done fi go test -p=1 -short -count=1 -timeout 10m $pkgs + + - name: Test planned hand-over (real binaries) + # The documented standalone planned hand-over and its refused clean + # move without the ACK (cmd/blockvolume TestStandalone*, build tags + # subprocess and chunkstore_integration, so the default pass above is + # unchanged) run real blockmaster, blockvolume and sw-block against a + # pinned SeaweedFS release. The release archive is checked against its sha256 before + # every use, also when taken from the runner's cache; a mismatch fails + # the step. Nothing else is fetched. + env: + WEED_VERSION: "4.53" + WEED_SHA256: d1a7dec9f48d8b33895a0ea8951971defc2dc5312906dcc76fa5a5f74a6ee90d + run: | + set -euo pipefail + cache="${RUNNER_TOOL_CACHE:-$RUNNER_TEMP}/seaweedfs-weed/$WEED_VERSION" + tgz="$cache/linux_amd64.tar.gz" + mkdir -p "$cache" + if ! echo "$WEED_SHA256 $tgz" | sha256sum -c --status - 2>/dev/null; then + part="$tgz.$$.part" + curl -fsSL --retry 3 -o "$part" "https://github.com/seaweedfs/seaweedfs/releases/download/$WEED_VERSION/linux_amd64.tar.gz" + echo "$WEED_SHA256 $part" | sha256sum -c - || { rm -f "$part"; exit 1; } + mv -f "$part" "$tgz" + fi + bin="$RUNNER_TEMP/weed-$WEED_VERSION" + mkdir -p "$bin" + tar -xzf "$tgz" -C "$bin" weed + CHUNKSTORE_WEED="$bin/weed" go test -tags 'subprocess chunkstore_integration' -count=1 -timeout 10m -run '^TestStandalone(PlannedHandoffToTheSameHost|CleanMoveWithoutTheACKIsRefused)$' ./cmd/blockvolume/