From ed5da7cdfbf4bee9c892f87c1c1fcd29573ddff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B0=D1=81=D0=B8=D0=BB=D1=8C=D0=B5=D0=B2=20=D0=9D?= =?UTF-8?q?=D0=B8=D0=BA=D0=B8=D1=82=D0=B0?= Date: Fri, 30 Oct 2026 17:25:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=82=D0=BE=D1=87=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20?= =?UTF-8?q?=D1=81=D1=80=D0=BE=D0=BA=D0=B0=20=D1=81=D0=B5=D1=81=D1=81=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B5=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- scripts/verify_lifecycle.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c9eca4d2..4e1eb6bd 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ bootstrap: python3 scripts/bootstrap.py up: bootstrap - docker compose up -d --build --wait + VCS_REF=$$(git rev-parse HEAD) docker compose up -d --build --wait down: docker compose down diff --git a/scripts/verify_lifecycle.py b/scripts/verify_lifecycle.py index a2f88a22..1de29aa9 100644 --- a/scripts/verify_lifecycle.py +++ b/scripts/verify_lifecycle.py @@ -169,12 +169,18 @@ def main(): short_actor = short.user("expiry") start = time.monotonic() short.call("GET", "/api/v1/users/me", actor=short_actor, schema="User") - time.sleep(2.2) + time.sleep(1.0) + compose("-f", "compose.yaml", "-f", "compose.test.yaml", "restart", "api-short") + wait(short) + remaining = 2.2 - (time.monotonic() - start) + if remaining > 0: + time.sleep(remaining) short.call("GET", "/api/v1/users/me", 401, actor=short_actor) result["expiry"] = { "configured_ttl_seconds": 2, "observed_after_seconds": round(time.monotonic() - start, 4), "expired_status": 401, + "short_api_restarted_before_check": True, } c.call("DELETE", "/api/v1/auth/sessions/current", 204, actor=alice) c.call("GET", "/api/v1/users/me", 401, actor=alice)