Пример #1
0
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()
Пример #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')
Пример #3
0
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()
Пример #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)
Пример #5
0
 def handle(self, *args, **options):
     job = Job.objects.select_related("repository").get(
         id=options['job_id'])
     match_errors(job)
Пример #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)
Пример #7
0
 def handle(self, *args, **options):
     job = Job.objects.select_related("repository").get(id=options['job_id'])
     match_errors(job)
Пример #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)