def do_autoclassify(job, test_failure_lines, matchers, status="testfailed"):

    job.result = status
    job.save()

    match_errors(job, matchers)

    for item in test_failure_lines:
        item.refresh_from_db()
Exemple #2
0
def autoclassify(job_id):
    newrelic.agent.add_custom_parameter("job_id", job_id)
    logger.info('Running autoclassify')
    job = Job.objects.select_related("repository").get(id=job_id)
    match_errors(job)
    if settings.DETECT_INTERMITTENTS:
        celery_app.send_task('detect-intermittents',
                             [job_id],
                             routing_key='detect_intermittents')
def do_autoclassify(job, test_failure_lines, matchers, status="testfailed"):

    job.result = status
    job.save()

    match_errors(job, matchers)

    for item in test_failure_lines:
        item.refresh_from_db()
Exemple #4
0
    def handle(self, *args, **options):

        if len(args) != 1:
            raise CommandError('1 argument required, %s given' % len(args))

        job_id, = args

        job = Job.objects.select_related("repository").get(id=job_id)
        match_errors(job)
Exemple #5
0
 def handle(self, *args, **options):
     job = Job.objects.select_related("repository").get(
         id=options['job_id'])
     match_errors(job)
Exemple #6
0
def autoclassify(job_id):
    newrelic.agent.add_custom_parameter("job_id", str(job_id))
    logger.info('Running autoclassify')
    job = Job.objects.select_related("repository").get(id=job_id)
    match_errors(job)
Exemple #7
0
 def handle(self, *args, **options):
     job = Job.objects.select_related("repository").get(id=options['job_id'])
     match_errors(job)
Exemple #8
0
def autoclassify(job_id):
    newrelic.agent.add_custom_parameter("job_id", job_id)
    logger.info('Running autoclassify')
    job = Job.objects.select_related("repository").get(id=job_id)
    match_errors(job)