From 8e0636f6a33ac156bb7376ff9129367d9ad59051 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Wed, 1 Apr 2026 14:52:14 +0000 Subject: [PATCH] Keep stack verification idempotent under node auth. Use a unique machine ID for each stack verification run so repeated checks against a persisted control-plane state keep exercising the bootstrap flow without failing on node-scoped re-registration auth. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- scripts/integration/verify-stack | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/integration/verify-stack b/scripts/integration/verify-stack index 241fbbd..7a3ece3 100755 --- a/scripts/integration/verify-stack +++ b/scripts/integration/verify-stack @@ -9,6 +9,9 @@ source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../lib/runtime-env.sh" "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/verify-webdav" control_health="$(curl -fsS "http://localhost:${BETTERNAS_CONTROL_PLANE_PORT}/health")" +verify_run_id="$(date +%s)-$$" +node_machine_id="${BETTERNAS_CLONE_NAME}-machine-${verify_run_id}" + echo "$control_health" | jq -e '.service == "control-plane" and .status == "ok"' >/dev/null register_headers="$(mktemp)" @@ -23,7 +26,7 @@ curl -fsS \ -H "Authorization: Bearer ${BETTERNAS_CONTROL_PLANE_NODE_BOOTSTRAP_TOKEN}" \ -d @- \ "http://localhost:${BETTERNAS_CONTROL_PLANE_PORT}/api/v1/nodes/register" <