示例#1
0
    def __init__(self, buildername=None, platform=None, build_type=None, 
        job_type=None, starttime=None, endtime=None, detail_level=4):
        """If platform, build_type or job_type are not specified, they will be 
        parsed out of the buildername.
        """
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime

        self.platform = platform or get_platform(buildername)
        self.build_type = build_type or get_build_type(buildername) # opt / debug
        self.job_type = job_type or get_job_type(buildername) # build / unittest / talos
        self.buildername = buildername

        self.detail_level = detail_level

        self.build_requests = []

        self._d_min = None
        self._d_max = 0
        self._d_sum = 0
        self._total_br_results = {
            NO_RESULT: 0,
            SUCCESS: 0,
            WARNINGS: 0,
            FAILURE: 0,
            SKIPPED: 0,
            EXCEPTION: 0,
            RETRY: 0,
        }
        self._total_br = 0
示例#2
0
    def __init__(self, starttime, endtime, branch_name):
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime
        self.branch_name = branch_name

        self._init_report()
示例#3
0
    def __init__(self, starttime, endtime, branch_name):
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime
        self.branch_name = branch_name

        self._init_report() 
示例#4
0
    def __init__(self, starttime, endtime, branch_name, detail_level=4):
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime
        self.branch_name = branch_name

        self.filters = dict(platform=[], build_type=[], job_type=[], 
            buildername=[])
        self._filter_names = ('platform', 'build_type', 'job_type', 
            'buildername')
        self.detail_level = detail_level

        # builders tree
        self.builders = Node(self.branch_name, 
            info=BuilderTypeReport(detail_level=0))
示例#5
0
    def __init__(self, starttime, endtime, branch_name, detail_level=4):
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime
        self.branch_name = branch_name

        self.filters = dict(platform=[],
                            build_type=[],
                            job_type=[],
                            buildername=[])
        self._filter_names = ('platform', 'build_type', 'job_type',
                              'buildername')
        self.detail_level = detail_level

        # builders tree
        self.builders = Node(self.branch_name,
                             info=BuilderTypeReport(detail_level=0))
示例#6
0
    def __init__(self,
                 buildername=None,
                 platform=None,
                 build_type=None,
                 job_type=None,
                 starttime=None,
                 endtime=None,
                 detail_level=4):
        """If platform, build_type or job_type are not specified, they will be 
        parsed out of the buildername.
        """
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime

        self.platform = platform or get_platform(buildername)
        self.build_type = build_type or get_build_type(
            buildername)  # opt / debug
        self.job_type = job_type or get_job_type(
            buildername)  # build / unittest / talos
        self.buildername = buildername

        self.detail_level = detail_level

        self.build_requests = []

        self._d_min = None
        self._d_max = 0
        self._d_sum = 0
        self._total_br_results = {
            NO_RESULT: 0,
            SUCCESS: 0,
            WARNINGS: 0,
            FAILURE: 0,
            SKIPPED: 0,
            EXCEPTION: 0,
            RETRY: 0,
        }
        self._total_br = 0
示例#7
0
    def __init__(self, revision, branch_name):
        Report.__init__(self)

        self.revision = revision
        self.branch_name = branch_name
        self.changes_revision = set()
        self.authors = set()

        self.build_requests = []

        self.lst_change_time = 0
        self.gst_finish_time = 0
        self.gst_complete_at_time = 0

        self._total_br = 0  # total build requests
        self._u_total_br = 0  # unique total build request ids

        self.complete = 0
        self.running = 0
        self.pending = 0
        self.cancelled = 0
        self.interrupted = 0
        self.misc = 0
        self.rebuilds = 0
        self.forcebuilds = 0

        self.unittests = 0
        self.talos = 0
        self.builds = 0

        self.results_success = 0
        self.results_warnings = 0
        self.results_failure = 0
        self.results_other = 0
        self.results = NO_RESULT

        # incomplete flag (if true, BuildRun is incomplete)
        self.f_incomplete = False
        self.pending_changes = []
示例#8
0
    def __init__(self, revision, branch_name):
        Report.__init__(self)

        self.revision = revision
        self.branch_name = branch_name
        self.changes_revision = set()
        self.authors = set()

        self.build_requests = []

        self.lst_change_time = 0
        self.gst_finish_time = 0
        self.gst_complete_at_time = 0

        self._total_br = 0     # total build requests
        self._u_total_br = 0   # unique total build request ids

        self.complete = 0
        self.running = 0
        self.pending = 0
        self.cancelled = 0
        self.interrupted = 0
        self.misc = 0
        self.rebuilds = 0
        self.forcebuilds = 0

        self.unittests = 0
        self.talos = 0
        self.builds = 0

        self.results_success = 0
        self.results_warnings = 0
        self.results_failure = 0
        self.results_other = 0
        self.results = NO_RESULT

        # incomplete flag (if true, BuildRun is incomplete)
        self.f_incomplete = False
        self.pending_changes = []
示例#9
0
    def __init__(self, starttime, endtime, name=None, summary=False):
        Report.__init__(self)

        self.name = name
        self.starttime = starttime
        self.endtime = endtime
        self.summary = summary

        self.slaves = {}

        # sum of all durations
        self._d_sum = 0
        # results
        self.total = 0
        self.results = {
            NO_RESULT: 0,
            SUCCESS: 0,
            WARNINGS: 0,
            FAILURE: 0,
            SKIPPED: 0,
            EXCEPTION: 0,
            RETRY: 0,
        }
示例#10
0
    def __init__(self, starttime, endtime, name=None, summary=False):
        Report.__init__(self)

        self.name = name
        self.starttime = starttime
        self.endtime = endtime
        self.summary = summary

        self.slaves = {}

        # sum of all durations
        self._d_sum = 0
        # results
        self.total = 0
        self.results = {
            NO_RESULT: 0,
            SUCCESS: 0,
            WARNINGS: 0,
            FAILURE: 0,
            SKIPPED: 0,
            EXCEPTION: 0,
            RETRY: 0,
        }
示例#11
0
    def __init__(self, starttime, endtime):
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime
        self.builders = {}
示例#12
0
    def __init__(self, starttime, endtime):
        Report.__init__(self)

        self.starttime = starttime
        self.endtime = endtime
        self.builders = {}