From 886d4b8bc2c279ee6a5b1061e86383edc3af7e7b Mon Sep 17 00:00:00 2001 From: Artyom Date: Fri, 6 Nov 2026 09:50:51 +0300 Subject: [PATCH] Await terminal state of reordered pipeline versions --- scripts/pipeline_suite.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/pipeline_suite.py b/scripts/pipeline_suite.py index e01bbbea..33b4d561 100644 --- a/scripts/pipeline_suite.py +++ b/scripts/pipeline_suite.py @@ -822,6 +822,14 @@ class Suite: self.published(ident, 2) before = self.snapshot(ident) self.stack.launch(self.args.relay) + poll( + lambda: ( + {j["pipeline_version"]: j["status"] for j in self.stack.sql("jobs", id=ident)} + == {1: "superseded", 2: "done"} + ), + self.args.recovery_timeout, + "old version superseded", + ) poll(lambda: all(r["published"] for r in self.stack.sql("outbox", id=ident)), 30, "outbox") self.drained() final = self.snapshot(ident)