From f1c626cc67771fe20791d0f34120f5d48771143a Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Fri, 29 May 2026 06:21:42 +0100 Subject: [PATCH] =?UTF-8?q?fix(2):=20lasuite-drive=20setup=5Fcustom=5Ftest?= =?UTF-8?q?s=20=E2=80=94=20docker=20service=20scale=20--detach=20for=20the?= =?UTF-8?q?=20run-once=20minio-createbuckets=20job=20(blocking=20scale=20h?= =?UTF-8?q?ung=20the=20custom=20tier=20forever;=20--detach=20submits=20+?= =?UTF-8?q?=20returns,=20bucket-poll=20confirms)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/lasuite-drive/setup_custom_tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/lasuite-drive/setup_custom_tests.sh b/tests/lasuite-drive/setup_custom_tests.sh index 2b7623d..c1f62aa 100644 --- a/tests/lasuite-drive/setup_custom_tests.sh +++ b/tests/lasuite-drive/setup_custom_tests.sh @@ -37,9 +37,16 @@ echo " lasuite-drive setup_custom_tests: wiring OIDC against keycloak dep ${KC_ # (deterministic) rather than the README's finicky `abra app restart` (which it notes "will appear # to fail"). (DB `backend migrate` is the README's other documented step; not run here because # neither current test needs a migrated DB — add it when an upload-via-app test does.) +# +# `--detach` is REQUIRED: minio-createbuckets is a run-once job (restart_policy: none) that creates +# the bucket then EXITS 0, so the service never holds a steady 1/1 replica. A blocking +# `docker service scale ...=1` (the default) therefore waits forever for a convergence that can't +# happen and hangs the whole run (`|| true` does NOT help — the command hangs, it doesn't fail). +# With `--detach` the scale just submits the one-run and returns; the bucket-poll loop below +# confirms the bucket was actually created. STACK=$(printf '%s' "$CCCI_APP_DOMAIN" | tr '.' '_') echo " setup: creating MinIO bucket via the minio-createbuckets one-shot (scale 0->1)" -docker service scale "${STACK}_minio-createbuckets=1" >/dev/null 2>&1 || true +docker service scale --detach "${STACK}_minio-createbuckets=1" >/dev/null 2>&1 || true # Wait up to 90s for the one-shot to create the bucket (mc mb drive/drive-media-storage; exit 0). # Poll by checking the bucket directly from the running minio replica container. for i in $(seq 1 30); do