From 6d88dc40bf72484f2d1cc56dbdb7c4230ed733f8 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 1 Aug 2026 03:49:47 -0700 Subject: [PATCH] test: record phase174 NVMe source commit --- .../qa-assignments/phase174-d2-nvme-tcp-fixed-work-qa.md | 1 + .../scripts/run-phase174-nvme-tcp-fixed-work-gate.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/seaweed-block/internal/docs/qa-assignments/phase174-d2-nvme-tcp-fixed-work-qa.md b/seaweed-block/internal/docs/qa-assignments/phase174-d2-nvme-tcp-fixed-work-qa.md index 6227558619..68d5e5778a 100644 --- a/seaweed-block/internal/docs/qa-assignments/phase174-d2-nvme-tcp-fixed-work-qa.md +++ b/seaweed-block/internal/docs/qa-assignments/phase174-d2-nvme-tcp-fixed-work-qa.md @@ -27,6 +27,7 @@ test-only reset or benchmark behavior. ```bash SW_BLOCK_ARTIFACT_DIR=/tmp/ \ SW_BLOCK_PHASE174_NVME_STORE_DIR=/data/nvme/block/-stores \ +SW_BLOCK_PHASE174_SOURCE_COMMIT= \ bash scripts/run-phase174-nvme-tcp-fixed-work-gate.sh "$PWD" ``` diff --git a/seaweed-block/scripts/run-phase174-nvme-tcp-fixed-work-gate.sh b/seaweed-block/scripts/run-phase174-nvme-tcp-fixed-work-gate.sh index 6068c3fc73..1426e2284f 100644 --- a/seaweed-block/scripts/run-phase174-nvme-tcp-fixed-work-gate.sh +++ b/seaweed-block/scripts/run-phase174-nvme-tcp-fixed-work-gate.sh @@ -11,6 +11,7 @@ RUNS=5 MAX_RANGE="1.25" CPUSET="${SW_BLOCK_PHASE174_CPUSET:-0,2,4,6}" GOMAXPROCS_VALUE="${SW_BLOCK_PHASE174_GOMAXPROCS:-4}" +SOURCE_COMMIT="${SW_BLOCK_PHASE174_SOURCE_COMMIT:-$(git -C "${ROOT}" rev-parse HEAD 2>/dev/null || true)}" WRITERS_FORWARD=(1 4 8) WRITERS_REVERSE=(8 4 1) @@ -41,6 +42,10 @@ for command in go python3 taskset findmnt; do exit 2 } done +if [[ -z "${SOURCE_COMMIT}" ]]; then + echo "phase174 source commit is required" >&2 + exit 2 +fi store_source="$(findmnt -n -o SOURCE -T "${STORE_DIR}")" store_filesystem="$(findmnt -n -o FSTYPE -T "${STORE_DIR}")" @@ -52,6 +57,7 @@ fi write_summary "phase174_nvme_tcp_fixed_work_status=running" write_summary "contract=phase174-fixed-work-v1" +write_summary "source_commit=${SOURCE_COMMIT}" write_summary "layer=nvme_tcp_rf1" write_summary "scope=nvme_tcp_target_durable_adapter" write_summary "ack_profile=local_durable"