bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def build_status_html(myself, build): rawstatus = build.status() status = html_build_status(rawstatus) return build_link(myself, build.tree, build.host, build.compiler, build.revision, status) | def build_status_html(myself, build): status = html_build_status(build.status()) return build_link(myself, build.tree, build.host, build.compiler, build.revision, status) | 444,600 |
def show_oldrevs(self, myself, tree, host, compiler): """show the available old revisions, if any""" revs = self.buildfarm.builds.get_old_revs(tree, host, compiler) | def show_oldrevs(self, myself, tree, host, compiler): """show the available old revisions, if any""" revs = self.buildfarm.builds.get_old_revs(tree, host, compiler) | 444,601 |
def show_oldrevs(self, myself, tree, host, compiler): """show the available old revisions, if any""" revs = self.buildfarm.builds.get_old_revs(tree, host, compiler) | def show_oldrevs(self, myself, tree, host, compiler): """show the available old revisions, if any""" revs = self.buildfarm.builds.get_old_revs(tree, host, compiler) | 444,602 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them #assert host in self.buildfarm.hostdb, "unknown host %s" % host assert compiler in self.buildfarm.compilers, "unknown compiler %s" % compiler assert tree in self.buildfar... | defself.buildfarm.hostdb.host(host) render(self,self.buildfarm.hostdb.host(host) myself,self.buildfarm.hostdb.host(host) tree,self.buildfarm.hostdb.host(host) host,self.buildfarm.hostdb.host(host) compiler,self.buildfarm.hostdb.host(host) rev,self.buildfarm.hostdb.host(host) plain_logs=False):self.buildfarm.hostdb.host... | 444,603 |
def _pretty_print(self, m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = "".join(print_log_cc_checker(output)) | def _pretty_print(self, m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = "".join(print_log_cc_checker(output)) | 444,604 |
def _pretty_print(self, m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = "".join(print_log_cc_checker(output)) | def _pretty_print(self, m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = "".join(print_log_cc_checker(output)) | 444,605 |
def _format_stage(self, m): self.indice += 1 return "".join(make_collapsible_html('test', m.group(1), m.group(2), self.indice, m.group(3))) | def _format_stage(self, m): self.indice += 1 return "".join(make_collapsible_html('test', m.group(1), m.group(2), self.indice, m.group(3))) | 444,606 |
def _format_skip_testsuite(self, m): self.indice += 1 return "".join(make_collapsible_html('test', m.group(1), '', self.indice, 'skipped')) | def _format_skip_testsuite(self, m): self.indice += 1 return "".join(make_collapsible_html('test', m.group(1), '', self.indice, 'skipped')) | 444,607 |
def _format_testsuite(self, m): testName = m.group(1) content = m.group(2) status = subunit_to_buildfarm_result(m.group(3)) if m.group(4): errorReason = format_subunit_reason(m.group(4)) else: errorReason = "" self.indice += 1 return "".join(make_collapsible_html('test', testName, content+errorReason, self.indice, stat... | def _format_testsuite(self, m): testName = m.group(1) content = m.group(2) status = subunit_to_buildfarm_result(m.group(3)) if m.group(4): errorReason = format_subunit_reason(m.group(4)) else: errorReason = "" self.indice += 1 return "".join(make_collapsible_html('test', testName, content+errorReason, self.indice, stat... | 444,608 |
def _format_test(self, m): self.indice += 1 return "".join(make_collapsible_html('test', m.group(1), m.group(2)+format_subunit_reason(m.group(4)), self.indice, subunit_to_buildfarm_result(m.group(3)))) | def _format_test(self, m): self.indice += 1 return "".join(make_collapsible_html('test', m.group(1), m.group(2)+format_subunit_reason(m.group(4)), self.indice, subunit_to_buildfarm_result(m.group(3)))) | 444,609 |
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | 444,610 |
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | 444,611 |
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | 444,612 |
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | 444,613 |
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): yield "here" # yield input return content = "" inEntry = False title = None status = None for line in input.splitlines(): # for e... | 444,614 |
def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | 444,615 |
def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | 444,616 |
def web_paths(t, paths): """change the given source paths into links""" if t.scm == "git": for path in paths: yield " <a href=\"%s/?p=%s;a=history;f=%s%s;h=%s;hb=%s\">%s</a>" % (GITWEB_BASE, t.repo, t.subdir, path, t.branch, t.branch, path) else: raise Exception("Unknown scm %s" % t.scm) | def web_paths(t, paths): """change the given source paths into links""" if t.scm == "git": for path in paths: ret += " <a href=\"%s/?p=%s;a=history;f=%s%s;h=%s;hb=%s\">%s</a>" % (GITWEB_BASE, t.repo, t.subdir, path, t.branch, t.branch, path) return ret else: raise Exception("Unknown scm %s" % t.scm) | 444,617 |
def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | 444,618 |
def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | 444,619 |
def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | 444,620 |
def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", " ") yield """ | 444,621 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,622 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,623 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,624 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,625 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,626 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,627 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,628 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,629 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,630 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,631 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,632 |
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" | 444,633 |
def render(self, myself, tree, sort_by): """Draw the "recent builds" view""" last_host = "" all_builds = [] | def render(self, myself, tree, sort_by): """Draw the "recent builds" view""" last_host = "" all_builds = [] | 444,634 |
def render(self, myself, tree, sort_by): """Draw the "recent builds" view""" last_host = "" all_builds = [] | def render(self, myself, tree, sort_by): """Draw the "recent builds" view""" last_host = "" all_builds = [] | 444,635 |
def render(self, myself, tree, sort_by): """Draw the "recent builds" view""" last_host = "" all_builds = [] | def render(self, myself, tree, sort_by): """Draw the "recent builds" view""" last_host = "" all_builds = [] | 444,636 |
def _render_build_list_header(self, host): yield "<div class='host summary'>\n" yield "<a id='host' name='host'/>\n" yield "<h3>%s - %s</h3>\n" % (host, self.buildfarm.hostdb.host(host).platform.encode("utf-8")) yield "<table class='real'>\n" yield "<thead><tr><th>Target</th><th>Build<br/>Revision</th><th>Build<br />Ag... | def _render_build_list_header(self, host): yield "<div class='host summary'>\n" yield "<a id='host' name='host'/>\n" yield "<h3>%s - %s</h3>\n" % (host, self.buildfarm.hostdb.host(host).platform.encode("utf-8")) yield "<table class='real'>\n" yield "<thead><tr><th>Target</th><th>Build<br/>Revision</th><th>Build<br />Ag... | 444,637 |
def _render_build_html(self, myself, build): try: (revision, revision_time) = build.revision_details() except data.MissingRevisionInfo: revision = None warnings = build.err_count() status = build_status_html(myself, build) yield "<tr>\n" yield "<td><span class='tree'>%s</span>/%s</td>\n" % (self.tree_link(myself, build... | def _render_build_html(self, myself, build): try: (revision, revision_time) = build.revision_details() except data.MissingRevisionInfo: revision = None warnings = build.err_count() status = build_status_html(myself, build) yield "<tr>\n" yield "<td><span class='tree'>%s</span>/%s</td>\n" % (self.tree_link(myself, build... | 444,638 |
def render_html(self, myself, *requested_hosts): yield "<div class='build-section' id='build-summary'>\n" yield '<h2>Host summary:</h2>\n' for host in requested_hosts: builds = list(self.buildfarm.get_host_builds(host)) if len(builds) > 0: yield "".join(self._render_build_list_header(host)) for build in builds: yield "... | def render_html(self, myself, *requested_hosts): yield "<div class='build-section' id='build-summary'>" yield '<h2>Host summary:</h2>' for host in requested_hosts: builds = list(self.buildfarm.get_host_builds(host)) if len(builds) > 0: yield "".join(self._render_build_list_header(host)) for build in builds: yield "".jo... | 444,639 |
def render_html(self, myself, *requested_hosts): yield "<div class='build-section' id='build-summary'>\n" yield '<h2>Host summary:</h2>\n' for host in requested_hosts: builds = list(self.buildfarm.get_host_builds(host)) if len(builds) > 0: yield "".join(self._render_build_list_header(host)) for build in builds: yield "... | def render_html(self, myself, *requested_hosts): yield "<div class='build-section' id='build-summary'>\n" yield '<h2>Host summary:</h2>\n' for host in requested_hosts: builds = list(self.buildfarm.get_host_builds(host)) if len(builds) > 0: yield "".join(self._render_build_list_header(host)) for build in builds: yield "... | 444,640 |
def render_html(self, myself, *requested_hosts): yield "<div class='build-section' id='build-summary'>\n" yield '<h2>Host summary:</h2>\n' for host in requested_hosts: builds = list(self.buildfarm.get_host_builds(host)) if len(builds) > 0: yield "".join(self._render_build_list_header(host)) for build in builds: yield "... | def render_html(self, myself, *requested_hosts): yield "<div class='build-section' id='build-summary'>\n" yield '<h2>Host summary:</h2>\n' for host in requested_hosts: builds = list(self.buildfarm.get_host_builds(host)) if len(builds) > 0: yield "".join(self._render_build_list_header(host)) for build in builds: yield "... | 444,641 |
def draw_dead_hosts(self, *deadhosts): """Draw the "dead hosts" table""" | def draw_dead_hosts(self, *deadhosts): """Draw the "dead hosts" table""" | 444,642 |
def draw_dead_hosts(self, *deadhosts): """Draw the "dead hosts" table""" | def draw_dead_hosts(self, *deadhosts): """Draw the "dead hosts" table""" | 444,643 |
def draw_dead_hosts(self, *deadhosts): """Draw the "dead hosts" table""" | def draw_dead_hosts(self, *deadhosts): """Draw the "dead hosts" table""" | 444,644 |
def render_html(self, myself): """view build summary""" | def render_html(self, myself): """view build summary""" | 444,645 |
def render_html(self, myself): """view build summary""" | def render_html(self, myself): """view build summary""" | 444,646 |
def render_html(self, myself): """view build summary""" | def render_html(self, myself): """view build summary""" | 444,647 |
def render_html(self, myself): """view build summary""" | def render_html(self, myself): """view build summary""" | 444,648 |
def render_html(self, myself): """view build summary""" | def render_html(self, myself): """view build summary""" | 444,649 |
def render_html(self, myself): """view build summary""" | def render_html(self, myself): """view build summary""" | 444,650 |
def render_html(self, myself): """view build summary""" | def render_html(self, myself): """view build summary""" | 444,651 |
def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() re_author = re.compile("^(.*) <(.*)>$") for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL"... | def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() re_author = re.compile("^(.*) <(.*)>$") for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL"... | 444,652 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,653 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,654 |
def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose: print "th... | def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose >= 1: prin... | 444,655 |
def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose: print "th... | def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose: print "th... | 444,656 |
def history_row_html(self, myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) | def history_row_html(self, myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) | 444,657 |
def render(self, myself, build, plain_logs=False): """view one build in detail""" | def render(self, myself, build, plain_logs=False): """view one build in detail""" | 444,658 |
def render(self, myself, build, plain_logs=False): """view one build in detail""" | def render(self, myself, build, plain_logs=False): """view one build in detail""" | 444,659 |
def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose >= 3: prin... | def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose >= 3: prin... | 444,660 |
def check_and_send_mails(cur, old): t = buildfarm.trees[cur.tree] cur_rev = cur.revision_details() cur_status = cur.status() old_rev = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose >= 3: print "... hasn't regressed since %s: %s" % (old_rev, old_status... | def check_and_send_mails(cur, old): t = buildfarm.trees[cur.tree] cur_rev = cur.revision_details() cur_status = cur.status() old_rev = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose >= 3: print "... hasn't regressed since %s: %s" % (old_rev, old_status... | 444,661 |
def red_age(self, age): """show an age as a string""" if age > self.buildfarm.OLDAGE: return "<span clsas='old'>%s</span>" % util.dhm_time(age) return util.dhm_time(age) | def red_age(self, age): """show an age as a string""" if age > self.buildfarm.OLDAGE: return "<span class='old'>%s</span>" % util.dhm_time(age) return util.dhm_time(age) | 444,662 |
def test_revision_details(self): self.create_mock_logfile("tdb", "charis", "cc", contents=""" | def test_revision_details(self): self.create_mock_logfile("tdb", "charis", "cc", contents=""" | 444,663 |
def test_revision_details_no_timestamp(self): self.create_mock_logfile("tdb", "charis", "cc", contents=""" | def test_revision_details_no_timestamp(self): self.create_mock_logfile("tdb", "charis", "cc", contents=""" | 444,664 |
def test_nothing(self): s = data.build_status_from_logs("", "") self.assertEquals((None, None, None, None, None), s.stages) self.assertEquals(set(), s.other_failures) | def test_nothing(self): s = data.build_status_from_logs("", "") self.assertEquals((None, None, None, None), s.stages) self.assertEquals(set(), s.other_failures) | 444,665 |
def _render_build_html(self, myself, build): try: (revision, revision_time) = build.revision_details() except data.MissingRevisionInfo: revision = None warnings = build.err_count() yield "<tr>" yield "<td><span class='tree'>" + self.tree_link(myself, build.tree) +"</span>/" + build.compiler + "</td>" yield "<td>" + rev... | def _render_build_html(self, myself, build): warnings = build.err_count() yield "<tr>" yield "<td><span class='tree'>" + self.tree_link(myself, build.tree) +"</span>/" + build.compiler + "</td>" yield "<td>" + revision_link(myself, revision, build.tree) + "</td>" yield "<td><div class='age'>" + self.red_age(build.age) ... | 444,666 |
def _render_build_html(self, myself, build): try: (revision, revision_time) = build.revision_details() except data.MissingRevisionInfo: revision = None warnings = build.err_count() yield "<tr>" yield "<td><span class='tree'>" + self.tree_link(myself, build.tree) +"</span>/" + build.compiler + "</td>" yield "<td>" + rev... | def _render_build_html(self, myself, build): try: (revision, revision_time) = build.revision_details() except data.MissingRevisionInfo: revision = None warnings = build.err_count() yield "<tr>" yield "<td><span class='tree'>" + self.tree_link(myself, build.tree) +"</span>/" + build.compiler + "</td>" yield "<td>" + rev... | 444,667 |
def regressed_since(self, older): """Check if this build has regressed since another build.""" if "disk full" in self.other_failures: return False if "timeout" in self.other_failures and "timeout" in older.other_failures: # When the timeout happens exactly can differ slightly, so it's okay # if the numbers are a bit di... | def regressed_since(self, older): """Check if this build has regressed since another build.""" if "disk full" in self.other_failures: return False if "timeout" in self.other_failures and "timeout" in older.other_failures: # When the timeout happens exactly can differ slightly, so it's okay # if the numbers are a bit di... | 444,668 |
def regressed_since(self, older): """Check if this build has regressed since another build.""" if "disk full" in self.other_failures: return False if "timeout" in self.other_failures and "timeout" in older.other_failures: # When the timeout happens exactly can differ slightly, so it's okay # if the numbers are a bit di... | def regressed_since(self, older): """Check if this build has regressed since another build.""" if "disk full" in self.other_failures: return False if "timeout" in self.other_failures and "timeout" in older.other_failures: # When the timeout happens exactly can differ slightly, so it's okay # if the numbers are a bit di... | 444,669 |
def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() re_author = re.compile("^(.*) <(.*)>$") for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL"... | def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() re_author = re.compile("^(.*) <(.*)>$") for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL"... | 444,670 |
def main_menu(self): """main page""" | def main_menu(self, tree, host, compiler): """main page""" | 444,671 |
def main_menu(self): """main page""" | def main_menu(self): """main page""" | 444,672 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,673 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,674 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,675 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,676 |
def view_recent_builds(myself, tree, sort_by): """Draw the "recent builds" view""" i = 0 cols = 2 broken = 0 last_host = "" all_builds = [] cmp_funcs = { "revision": lambda a, b: cmp(a[7], b[7]), "age": lambda a, b: cmp(a[0], b[0]), "host": lambda a, b: cmp(a[2], b[2]), "platform": lambda a, b: cmp(a[1], b[1]), "compi... | def view_recent_builds(myself, tree, sort_by): """Draw the "recent builds" view""" i = 0 cols = 2 broken = 0 last_host = "" all_builds = [] cmp_funcs = { "revision": lambda a, b: cmp(a[7], b[7]), "age": lambda a, b: cmp(a[0], b[0]), "host": lambda a, b: cmp(a[2], b[2]), "platform": lambda a, b: cmp(a[1], b[1]), "compi... | 444,677 |
def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = set(["ALL"]) branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): authors.add(entry.author) if author in ("ALL", "", entry.author): interesting.append(entry) | def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): authors.add(entry.author) if author in ("ALL", "", entry.author): interesting.append(entry) | 444,678 |
def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = set(["ALL"]) branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): authors.add(entry.author) if author in ("ALL", "", entry.author): interesting.append(entry) | def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = set(["ALL"]) branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL", "", m.group(2)): interesting.append(entr... | 444,679 |
def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = set(["ALL"]) branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): authors.add(entry.author) if author in ("ALL", "", entry.author): interesting.append(entry) | def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = set(["ALL"]) branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): authors.add(entry.author) if author in ("ALL", "", entry.author): interesting.append(entry) | 444,680 |
def __contains__(self, build): return (self._get_by_checksum(build) is not None) | def __contains__(self, build): return (self._get_by_checksum(build) is not None) | 444,681 |
def _get_by_checksum(self, build): result = self.store.find(StormBuild, Cast(StormBuild.checksum, "TEXT") == build.log_checksum()) return result.one() | def _get_by_checksum(self, build): result = self.store.find(StormBuild, Cast(StormBuild.checksum, "TEXT") == build.log_checksum()) return result.one() | 444,682 |
def upload_build(self, build): existing_build = self._get_by_checksum(build) if existing_build is not None: # Already present assert build.tree == existing_build.tree assert build.host == existing_build.host assert build.compiler == existing_build.compiler return existing_build rev = build.revision_details() super(Stor... | def upload_build(self, build): existing_build = self.store.find(StormBuild, Cast(StormBuild.checksum, "TEXT") == build.log_checksum()).order_by(StormBuild.upload_time).first() if existing_build is not None: # Already present assert build.tree == existing_build.tree assert build.host == existing_build.host assert build.... | 444,683 |
def _pretty_print(self, m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = print_log_cc_checker(output) | def _pretty_print(self, m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = print_log_cc_checker(output) | 444,684 |
def _format_stage(self, m): self.indice += 1 return make_collapsible_html('test', m.group(1), m.group(2), self.indice, m.group(3)) | def _format_stage(self, m): self.indice += 1 return make_collapsible_html('test', m.group(1), m.group(2), self.indice, m.group(3)) | 444,685 |
def _format_skip_testsuite(self, m): self.indice += 1 return make_collapsible_html('test', m.group(1), '', self.indice, 'skipped') | def _format_skip_testsuite(self, m): self.indice += 1 return make_collapsible_html('test', m.group(1), '', self.indice, 'skipped') | 444,686 |
def _format_testsuite(self, m): testName = m.group(1) content = m.group(2) status = subunit_to_buildfarm_result(m.group(3)) if m.group(4): errorReason = format_subunit_reason(m.group(4)) else: errorReason = "" self.indice += 1 return make_collapsible_html('test', testName, content+errorReason, self.indice, status) | def _format_testsuite(self, m): testName = m.group(1) content = m.group(2) status = subunit_to_buildfarm_result(m.group(3)) if m.group(4): errorReason = format_subunit_reason(m.group(4)) else: errorReason = "" self.indice += 1 return make_collapsible_html('test', testName, content+errorReason, self.indice, status) | 444,687 |
def _format_test(self, m): self.indice += 1 return make_collapsible_html('test', m.group(1), m.group(2)+format_subunit_reason(m.group(4)), self.indice, subunit_to_buildfarm_result(m.group(3))) | def _format_test(self, m): self.indice += 1 return make_collapsible_html('test', m.group(1), m.group(2)+format_subunit_reason(m.group(4)), self.indice, subunit_to_buildfarm_result(m.group(3))) | 444,688 |
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools output = "" # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): return "here" return input content = "" inEntry = False title = None status = None for line in input.splitlines(): #... | def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools output = "" # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): return "here" return input content = "" inEntry = False title = None status = None for line in input.splitlines(): #... | 444,689 |
def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools output = "" # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): return "here" return input content = "" inEntry = False title = None status = None for line in input.splitlines(): #... | def print_log_cc_checker(input): # generate pretty-printed html for static analysis tools output = "" # for now, we only handle the IBM Checker's output style if not re.search("^BEAM_VERSION", input): return "here" return input content = "" inEntry = False title = None status = None for line in input.splitlines(): #... | 444,690 |
def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if status.lower() in ("", "failed"): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.png' # trim lea... | 444,691 |
def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | 444,692 |
def render(self, myself, tree, host, compiler, rev, checksum=None, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, checksum=None, plain_logs=False): """view one build in detail""" | 444,693 |
def render(self, myself, tree, host, compiler, rev, checksum=None, plain_logs=False): """view one build in detail""" | def render(self, myself, tree, host, compiler, rev, checksum=None, plain_logs=False): """view one build in detail""" | 444,694 |
def render_text(self, myself): | defrender_text(self,myself): | 444,695 |
def render_text(self, myself): | defrender_text(self,myself): | 444,696 |
def history_row_html(self, myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) | defhistory_row_html(self,myself,entry,tree,changes):"""showonerowofhistorytable"""msg=cgi.escape(entry.message)t=time.asctime(time.gmtime(entry.date))age=util.dhm_time(time.time()-entry.date) | 444,697 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,698 |
def __init__(self, name, owner=None, owner_email=None, password=None, platform=None, ssh_access=False, last_update=None, fqdn=None, join_time=None, permission=None): self.name = name if owner: self.owner = (owner, owner_email) else: self.owner = None if join_time is None: self.join_time = time.time() else: self.join_ti... | def __init__(self, name, owner=None, owner_email=None, password=None, platform=None, ssh_access=False, last_update=None, fqdn=None, join_time=None, permission=None): self.name = name if owner: self.owner = (owner, owner_email) else: self.owner = None if join_time is None: self.join_time = time.time() else: self.join_ti... | 444,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.