From d6cbc4419a92bc75463655850d7910bb1a7b1811 Mon Sep 17 00:00:00 2001 From: Vignesh Date: Wed, 5 Aug 2026 22:37:26 +0530 Subject: [PATCH 1/2] docs: explain /tmp fallback in wait_readyz.sh Closes #297 --- scripts/wait_readyz.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/wait_readyz.sh b/scripts/wait_readyz.sh index adcf49e..1036cf2 100755 --- a/scripts/wait_readyz.sh +++ b/scripts/wait_readyz.sh @@ -16,6 +16,8 @@ while (( SECONDS < deadline )); do if [[ "$status" == "ready" ]]; then elapsed=$((SECONDS - start)) echo "readyz: status=ready in ${elapsed}s" + # Defaults to /tmp (POSIX-only); override via STATEWAVE_COLD_TIMING_FILE + # when running outside CI/Docker or on non-POSIX shells. printf '%s\n' "$elapsed" > "${STATEWAVE_COLD_TIMING_FILE:-/tmp/statewave_cold_ready_seconds}" exit 0 fi @@ -24,4 +26,4 @@ while (( SECONDS < deadline )); do done echo "readyz: did not reach status=ready within ${TIMEOUT}s (url=${BASE_URL})" >&2 -exit 1 +exit 1 \ No newline at end of file From 809455b1dd7194139f0b1a10b24f5156995099bc Mon Sep 17 00:00:00 2001 From: smaramwbc <145447586+smaramwbc@users.noreply.github.com> Date: Wed, 5 Aug 2026 22:40:16 +0100 Subject: [PATCH 2/2] Reword the timing-path comment and restore the trailing newline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script requires bash (shebang, set -euo pipefail, $SECONDS, (( )), [[ ]]), so the shell dialect isn't what motivates overriding the path — the filesystem is. Point the comment at that instead. Also restore the newline at end of file, which was dropped in the previous commit and would otherwise mark every future diff of this file. --- scripts/wait_readyz.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/wait_readyz.sh b/scripts/wait_readyz.sh index 1036cf2..85a827f 100755 --- a/scripts/wait_readyz.sh +++ b/scripts/wait_readyz.sh @@ -16,8 +16,9 @@ while (( SECONDS < deadline )); do if [[ "$status" == "ready" ]]; then elapsed=$((SECONDS - start)) echo "readyz: status=ready in ${elapsed}s" - # Defaults to /tmp (POSIX-only); override via STATEWAVE_COLD_TIMING_FILE - # when running outside CI/Docker or on non-POSIX shells. + # Timing lands in /tmp by default, which suits CI and Docker. Set + # STATEWAVE_COLD_TIMING_FILE to write elsewhere — e.g. where /tmp is + # missing or read-only, or to keep the value as a build artifact. printf '%s\n' "$elapsed" > "${STATEWAVE_COLD_TIMING_FILE:-/tmp/statewave_cold_ready_seconds}" exit 0 fi @@ -26,4 +27,4 @@ while (( SECONDS < deadline )); do done echo "readyz: did not reach status=ready within ${TIMEOUT}s (url=${BASE_URL})" >&2 -exit 1 \ No newline at end of file +exit 1