From aebe93c299b2d40bdad5d66248ccc5eb1306cc1f Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Sat, 30 May 2026 14:30:34 +0100 Subject: [PATCH] =?UTF-8?q?fix(2):=20=5Fload=5Fmeta=20whitelist=20UPGRADE?= =?UTF-8?q?=5FBASE=5FVERSION=20(override=20was=20silently=20dropped=20?= =?UTF-8?q?=E2=86=92=20base=20fell=20back=20to=20[-2])?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The override added in a750937 had no effect: _load_meta only copies a fixed key whitelist into the meta dict, and UPGRADE_BASE_VERSION wasn't in it, so meta.get(...) returned None and the upgrade base fell back to previous_version() = recipe_versions[-2] (0.6.3+3.1.2). Add it to the whitelist so discourse's honest 0.7.0 base is selected. Co-Authored-By: Claude Opus 4.8 (1M context) --- runner/run_recipe_ci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/run_recipe_ci.py b/runner/run_recipe_ci.py index 97e5fb4..5f821c1 100644 --- a/runner/run_recipe_ci.py +++ b/runner/run_recipe_ci.py @@ -194,7 +194,7 @@ def _load_meta(recipe: str) -> dict: ns: dict = {} with open(path) as fh: exec(compile(fh.read(), path, "exec"), ns) # noqa: S102 (trusted, in-repo) - for k in list(meta) + ["BACKUP_CAPABLE", "SKIP_GENERIC", "OIDC_AT_INSTALL", "READY_PROBE"]: + for k in list(meta) + ["BACKUP_CAPABLE", "SKIP_GENERIC", "OIDC_AT_INSTALL", "READY_PROBE", "UPGRADE_BASE_VERSION"]: if k in ns: meta[k] = ns[k] return meta