def update_and_reconfig(masters_json, callback=None, username=None, ssh_key=None): fabric_helper = FabricHelper(masters_json_file=masters_json, roles=['scheduler', 'build'], subprocess=True, callback=callback, username=username, ssh_key=ssh_key, warning_interval=900) fabric_helper.update_and_reconfig()
" shipped_locales") # verify that the relBranch + revision in the release_configs # exists in hg for sr in releaseConfig['sourceRepositories'].values(): sourceRepoPath = sr.get('clonePath', sr['path']) if not verify_repo(sourceRepoPath, sr['revision'], branchConfig['hghost']): test_success = False log.error("Error verifying repos") if test_success: if not options.dryrun: if not options.skip_reconfig: fabric_helper = FabricHelper( masters_json_file=options.masters_json_file, concurrency=options.concurrency, roles=['build', 'scheduler']) fabric_helper.update_and_reconfig() sourceRepoPath = getRepoMatchingBranch( options.branch, releaseConfig['sourceRepositories'])['path'] sendchange( sourceRepoPath, "%s_RELEASE" % releaseConfig['baseTag'], options.username, args[0], products, ) else: log.info("Tests Passed! Did not run reconfig/sendchange." " Rerun without `-d`") if cleanup_configs: