Bug 1176784 - reconfigs should not rely on seta server r=kmoir
authorKim Moir <kmoir@mozilla.com>
Thu, 01 Dec 2016 11:30:13 -0500
changeset 7188 cca3e54cc9848f8fca36c57011d81e9967b67bcc
parent 7187 dce0e0a53fa25020469e5c01862cb6bfcefe3d99
child 7189 93bf2ed7b806284e8696cbacc8d42c50304d2c85
push id5358
push userkmoir@mozilla.com
push dateThu, 01 Dec 2016 16:30:17 +0000
reviewerskmoir
bugs1176784
Bug 1176784 - reconfigs should not rely on seta server r=kmoir
buildfarm/maintenance/update_seta.py
--- a/buildfarm/maintenance/update_seta.py
+++ b/buildfarm/maintenance/update_seta.py
@@ -9,17 +9,17 @@ import sys
 from sys import path
 sys.path.append(os.path.join(os.path.dirname(__file__), "../../lib/python"))
 
 import logging
 log = logging.getLogger(__name__)
 
 from util.hg import mercurial, clone, commit, run_cmd
 
-seta_branches = ['mozilla-inbound', 'autoland']
+seta_branches = ['mozilla-inbound', 'autoland', 'graphics']
 
 def wfetch(url, retries=5):
     while True:
         try:
             response = urllib2.urlopen(url, timeout=30)
             return json.loads(response.read())
         except urllib2.HTTPError, e:
             log.warning("Failed to fetch '%s': %s" % (url, str(e)))
@@ -80,17 +80,17 @@ if __name__ == '__main__':
     ssh_key = "/home/cltbld/.ssh/ffxbld_rsa"
     ssh_username = "ffxbld"
     revision = "default"
     localrepo = "/tmp/buildbot-configs"
     configs_path = localrepo + "/mozilla-tests/"
     msg = "updating seta data for " + today
 
     if os.path.exists(localrepo):
-        oshutil.rmtree(localrepo)
+        shutil.rmtree(localrepo)
     os.mkdir(localrepo)
     clone(remote, localrepo, revision)
     #assume data could not be fetched
     status = False
     for branch in seta_branches:
         status = update_seta_data(branch, configs_path)
     if not status:
         log.warning("Could not fetch seta data")