From 1e31bbe89ebb997fac9c3c975877cc8aa4b1c867 Mon Sep 17 00:00:00 2001 From: Joel Maher Date: Tue, 5 Sep 2023 17:55:54 +0000 Subject: [PATCH] Bug 1851191 - expire variants even if they are composite variants. r=suhaib,taskgraph-reviewers,gbrown Differential Revision: https://phabricator.services.mozilla.com/D187282 --- taskcluster/gecko_taskgraph/transforms/test/variant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taskcluster/gecko_taskgraph/transforms/test/variant.py b/taskcluster/gecko_taskgraph/transforms/test/variant.py index 9f92c46ba3f6..d9e30d9d051a 100644 --- a/taskcluster/gecko_taskgraph/transforms/test/variant.py +++ b/taskcluster/gecko_taskgraph/transforms/test/variant.py @@ -72,8 +72,8 @@ def split_variants(config, tasks): def remove_expired(variants, expired): remaining_variants = [] for name in variants: - parts = [p for p in name.split("+") if p not in expired] - if len(parts) == 0: + parts = [p for p in name.split("+") if p in expired] + if len(parts) > 0: continue remaining_variants.append(name)