Fix UPC token-only variant selection

This commit is contained in:
2026-10-06 10:36:02 +05:30
parent f0496b3d67
commit 4218f8572d
2 changed files with 39 additions and 1 deletions
+4 -1
View File
@@ -46,7 +46,10 @@ def get_setup_configs(mode, config=None):
variants = product.get("session_variants")
if variants is not None:
resolved = get_product_config(name, config)
if not resolved["setup"].get("run_session", True):
# Expand variants when either session or token execution is
# enabled. Token-only UPC runs must still reach their variants.
setup = resolved.get("setup", {})
if not setup.get("run_session", True) and not setup.get("run_token", True):
continue
variant_config = deepcopy(config)
variant_config["products"] = {}