Пример #1
0
 def add_jobs(job_list):
     for job in job_list:
         result_status.add(job.result)
         if job.job_type.name in jobs:
             jobs[job.job_type.name].append(job_to_dict(job))
         else:
             jobs[job.job_type.name] = [job_to_dict(job)]
Пример #2
0
 def add_jobs(job_list):
     for item in job_list:
         result_status.add(item['result'])
         if item['job_type__name'] in jobs:
             jobs[item['job_type__name']].append(job_to_dict(item))
         else:
             jobs[item['job_type__name']] = [job_to_dict(item)]
Пример #3
0
def get_perf_failures(push):
    perf_groups = JobGroup.objects.filter(name__contains='performance')
    perf_failures = Job.objects.filter(
        push=push, tier__lte=2, result='testfailed',
        job_group__in=perf_groups).select_related('machine_platform',
                                                  'taskcluster_metadata')

    return [job_to_dict(job) for job in perf_failures]
Пример #4
0
def get_build_failures(push, parent_push=None):
    build_failures = Job.objects.filter(
        push=push,
        tier__lte=2,
        result='busted',
    ).select_related('machine_platform', 'taskcluster_metadata')

    failures = [job_to_dict(job) for job in build_failures]

    if parent_push:
        mark_failed_in_parent(failures, get_build_failures(parent_push))

    return failures
Пример #5
0
def get_lint_failures(push, parent_push=None):
    lint_failures = Job.objects.filter(
        Q(machine_platform__platform='lint') | Q(job_type__symbol='mozlint'),
        push=push,
        tier__lte=2,
        result='testfailed',
    ).select_related('machine_platform', 'taskcluster_metadata')

    failures = [job_to_dict(job) for job in lint_failures]

    if parent_push:
        mark_failed_in_parent(failures, get_lint_failures(parent_push))

    return failures
Пример #6
0
 def add_jobs(job_list):
     for job in job_list:
         if job.job_type.name in jobs:
             jobs[job.job_type.name].append(job_to_dict(job))
         else:
             jobs[job.job_type.name] = [job_to_dict(job)]