Bug 1851191 - expire variants even if they are composite variants. r=suhaib,taskgraph-reviewers,gbrown

Differential Revision: https://phabricator.services.mozilla.com/D187282
This commit is contained in:
Joel Maher 2023-09-05 17:55:54 +00:00
parent 7c4347ed32
commit 1e31bbe89e

View File

@ -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)