geometry, durable: a lab-only build tag for scale rehearsals

The swblock_lab_bigvol tag lifts the 256 GiB create cap to the format's own
limit (16 TiB - 4 KiB) and turns the local headroom refusal at create into a
warning, so the scale rehearsals can create sparse volumes larger than the
release allows and than the disk. A release build is unchanged and pins
that (TestReleaseBuildKeepsTheCreateCap). CI refuses the tag under deploy/
and in every workflow but test.yml (lab-tag-check.sh, with controls), and
tests the lab build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-30 06:11:21 -08:00
1 parent 1f536ae262
commit 1ca31ed44c
12 files changed
+142 -3

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Controls for lab-tag-check.sh: clean tree passes; the tag in a Dockerfile or
# in the publish workflow fails; in test.yml it passes.
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
t=$(mktemp -d); trap 'rm -rf -- "${t:?}"' EXIT
mkdir -p "$t/deploy/k8s" "$t/.github/workflows"
echo 'RUN go build ./cmd/blockvolume' > "$t/deploy/k8s/Dockerfile.x"
echo 'run: go build ./...' > "$t/.github/workflows/publish.yml"
echo 'run: go test -tags swblock_lab_bigvol ./core/geometry/' > "$t/.github/workflows/test.yml"
bash "$here/lab-tag-check.sh" "$t" >/dev/null || { echo "FAIL: clean tree refused"; exit 1; }
echo 'RUN go build -tags swblock_lab_bigvol ./cmd/blockvolume' > "$t/deploy/k8s/Dockerfile.x"
if bash "$here/lab-tag-check.sh" "$t" >/dev/null; then echo "FAIL: tag in a Dockerfile passed"; exit 1; fi
echo 'RUN go build ./cmd/blockvolume' > "$t/deploy/k8s/Dockerfile.x"
echo 'run: go build -tags swblock_lab_bigvol ./...' > "$t/.github/workflows/publish.yml"
if bash "$here/lab-tag-check.sh" "$t" >/dev/null; then echo "FAIL: tag in the publish workflow passed"; exit 1; fi
echo "lab-tag-check controls: OK"
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# The lab-only build tag swblock_lab_bigvol lifts the 256 GiB create cap and
# the local headroom refusal for scale rehearsals. No image or release build
# may carry it: refuse the tag anywhere under deploy/ (the image Dockerfiles)
# and in every workflow but test.yml, whose lab job only tests it.
# Usage: lab-tag-check.sh [REPO_ROOT] Exit 0: clean. Exit 1: a hit (printed).
set -euo pipefail
root=${1:-.}
tag=swblock_lab_bigvol
hits=$(grep -rln -- "$tag" "$root/deploy" "$root/.github/workflows" 2>/dev/null | grep -v -- '/\.github/workflows/test\.yml$' || true)
if [ -n "$hits" ]; then
echo "lab-tag: $tag must not be in an image or release build:"
echo "$hits"
exit 1
fi
echo "lab-tag: clean"