From 3403f15207426f247125e5f1dfe53db0d792a262 Mon Sep 17 00:00:00 2001 From: Ben Hearsum Date: Wed, 7 Feb 2018 14:50:10 -0500 Subject: [PATCH] bug 1398799: don't add depedencies when current task and upstream task don't have a matching build platform. r=aki --- taskcluster/taskgraph/transforms/release_deps.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/taskcluster/taskgraph/transforms/release_deps.py b/taskcluster/taskgraph/transforms/release_deps.py index 2c96e26ef664..bcac16b228e0 100644 --- a/taskcluster/taskgraph/transforms/release_deps.py +++ b/taskcluster/taskgraph/transforms/release_deps.py @@ -59,6 +59,11 @@ def add_dependencies(config, jobs): dep_phase = dep_task.attributes.get('shipping_phase') if dep_phase and PHASES.index(dep_phase) > PHASES.index(phase): continue + + if dep_task.attributes.get("build_platform") and \ + job.get("attributes", {}).get("build_platform"): + if dep_task.attributes["build_platform"] != job["attributes"]["build_platform"]: + continue # Add matching product tasks to deps if _get_product(dep_task.task) == product or \ dep_task.attributes.get('shipping_product') == product: