Bug 1286358 - Use Treeherder's SETA
MozReview-Commit-ID: KfPFbWySxzl
--- a/buildfarm/maintenance/update_seta.py
+++ b/buildfarm/maintenance/update_seta.py
@@ -37,17 +37,17 @@ def wfetch(url, retries=5):
log.warning("Retrying")
time.sleep(60)
def update_seta_data(branch, configs_path):
# For offline work
if os.environ.get('DISABLE_SETA'):
return []
- url = "http://alertmanager.allizom.org/data/setadetails/?date=" + today + "&buildbot=1&branch=" + branch + "&inactive=1"
+ url = "https://treeherder.mozilla.org/api/project/" + branch + "/seta/job-priorities/?build_system_type=buildbot&priority=5&format=json"
data = wfetch(url)
if data:
temp_file = configs_path + branch + "-seta.json.new"
existing_file = configs_path + branch + "-seta.json"
# need to create temp file
with open(temp_file, 'wt') as f:
json.dump(data, f, indent=4)