print "BBS> [stage9] STARTING stage9 at %s..." % time.asctime() BBSreportutils.data_source = BBScorevars.getenv('BBS_PUBLISHED_REPORT_URL') notify_nodes = BBScorevars.getenv('BBS_NOTIFY_NODES') argc = len(sys.argv) if argc > 1: arg1 = sys.argv[1] else: arg1 = "" if arg1 != "": bbs.email.mode = "do-it" if arg1 != "do-it": bbs.email.redirect_to_addr = arg1 BBSreportutils.set_NODES(notify_nodes) if len(BBSreportutils.NODES) != 1: main_page_title = 'Multiple platform build/check report' else: main_page_title = 'Build/check report' allpkgs = BBSreportutils.get_pkgs_from_meat_index() print "BBS> [stage9] Notifying package maintainers for nodes: %s" % notify_nodes if BBScorevars.mode in ["bioc", "biocLite", "data-experiment"]: send_BioC_notifications(allpkgs) else: # "cran" mode send_CRAN_notifications(allpkgs) print "BBS> [stage9] DONE at %s." % time.asctime()
sys.stdout.flush() out = open(BBSreportutils.BUILD_STATUS_DB_file, 'w') for pkg in pkgs: _write_pkg_results_to_BUILD_STATUS_DB(pkg, out) out.close() print('OK') return ############################################################################## ### MAIN SECTION ############################################################################## if __name__ == "__main__": print() if not os.path.isdir('products-in'): print('mmh.. I don\'t see the \'products-in\' subdirectory ' + \ 'in the current directory!') print('Make sure to be in \'%s/\' ' % BBSvars.Central_rdir.path) print('before running the BBS-make-BUILD_STATUS_DB.py script.') sys.exit('=> EXIT.') print( 'BBS> ==============================================================') print('BBS> [stage6a] STARTING stage6a on %s...' % time.asctime()) sys.stdout.flush() report_nodes = BBSutils.getenv('BBS_REPORT_NODES') BBSreportutils.set_NODES(report_nodes) pkgs = bbs.parse.get_meat_packages(BBSutils.meat_index_file) make_BUILD_STATUS_DB(pkgs) print('BBS> [stage6a] DONE on %s.' % time.asctime())
if BBSreportutils.is_doing_buildbin(node): stage = 'buildbin' if skipped_is_OK: status = "skipped" else: status = get_status_from_summary_file(pkg, node.id, stage) out.write('%s#%s#%s: %s\n' % (pkg, node.id, stage, status)) out.close() print "BBS> [make_STATUS_DB] END" return ############################################################################## ### MAIN SECTION ############################################################################## print "BBS> [stage7a] STARTING stage7a at %s..." % time.asctime() central_rdir_path = BBScorevars.Central_rdir.path if central_rdir_path != None: print "BBS> [stage7a] cd %s/" % central_rdir_path os.chdir(central_rdir_path) report_nodes = BBScorevars.getenv('BBS_REPORT_NODES') BBSreportutils.set_NODES(report_nodes) allpkgs = BBSreportutils.get_pkgs_from_meat_index() make_STATUS_DB(allpkgs) print "BBS> [stage7a] DONE at %s." % time.asctime()