Bug 1342264 - Fix case of backfilling with no previous builds r=dustin
authorBrian Stack <bstack@mozilla.com>
Thu, 23 Feb 2017 15:13:07 -0800
changeset 344527 d04e4c6d8f46dfd1d37682721fb6fceb3be032b7
parent 344526 a730992ccec6c6dafd5d0b60438d791dc46109f4
child 344528 2c2c93735e70ece5858734fdbc9e49bf3bd3ac8d
push id37880
push userdmitchell@mozilla.com
push dateThu, 23 Feb 2017 23:24:57 +0000
treeherderautoland@d04e4c6d8f46 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1342264
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1342264 - Fix case of backfilling with no previous builds r=dustin MozReview-Commit-ID: FXF7EW8Nygl
taskcluster/taskgraph/action.py
--- a/taskcluster/taskgraph/action.py
+++ b/taskcluster/taskgraph/action.py
@@ -130,17 +130,17 @@ def load_decisions(s, project, resultset
         while True:
             params = {"push_id": resultset, "count": jobs_per_call, "offset": offset}
             results = s.get(url=project_url, params=params).json()["results"]
             unfiltered += results
             if (len(results) < jobs_per_call):
                 break
             offset += jobs_per_call
         filtered = [j for j in unfiltered if all([j[k] == filters[k] for k in filters])]
-        if all([j["result"] == "success" for j in filtered]):
+        if filtered and all([j["result"] == "success" for j in filtered]):
             logger.info("Push found with all green jobs for this type. Continuing.")
             break
         decisions += [t for t in unfiltered if t["job_type_name"] == "Gecko Decision Task"]
 
     for decision in decisions:
         params = {"job_guid": decision["job_guid"]}
         details = s.get(url=decision_url, params=params).json()["results"]
         inspect = [detail["url"] for detail in details if detail["value"] == "Inspect Task"][0]