Exemple #1
0
def parse_log(project, job_guid, job_log, _priority):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    post_log_artifacts(project,
                       job_guid,
                       job_log,
                       parse_log)
Exemple #2
0
def parse_log(job_log, priority):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    post_log_artifacts(job_log)
    crossreference_error_lines.apply_async(
        args=[job_log.job.id, priority],
        routing_key="crossreference_error_lines.%s" % priority)
Exemple #3
0
def parse_log(job_log, priority):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    post_log_artifacts(job_log)
    crossreference_error_lines.apply_async(
        args=[job_log.job.id, priority],
        routing_key="crossreference_error_lines.%s" % priority)
Exemple #4
0
def parse_log(job_log, priority):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    post_log_artifacts(job_log)
    logger.debug("Scheduling crossreference for job %i from parse_log" % job_log.job.id)
    crossreference_error_lines.apply_async(
        args=[job_log.job.id, priority],
        routing_key="crossreference_error_lines.%s" % priority)
Exemple #5
0
def parse_log(job_log, priority):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    post_log_artifacts(job_log)
    logger.debug("Scheduling crossreference for job %i from parse_log" %
                 job_log.job.id)
    crossreference_error_lines.apply_async(
        args=[job_log.job.id, priority],
        routing_key="crossreference_error_lines.%s" % priority)
Exemple #6
0
def parse_log(project, job_guid, job_log_url, _priority):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    logger.debug("Running parse_log for job %s" % job_guid)
    post_log_artifacts(project,
                       job_guid,
                       job_log_url,
                       parse_log,
                       extract_text_log_artifacts)
Exemple #7
0
def parse_log(project, job_log_url, job_guid, check_errors=False):
    """
    Call ArtifactBuilderCollection on the given job.
    """

    # don't parse a log if it's already been parsed
    if is_parsed(job_log_url):
        return

    post_log_artifacts(project, job_guid, job_log_url, parse_log,
                       extract_text_log_artifacts, check_errors)
Exemple #8
0
def parse_log(project, job_log_url, job_guid):
    """
    Call ArtifactBuilderCollection on the given job.
    """

    # don't parse a log if it's already been parsed
    if is_parsed(job_log_url):
        return

    post_log_artifacts(project,
                       job_guid,
                       job_log_url,
                       parse_log,
                       extract_text_log_artifacts,
                       )
Exemple #9
0
def parse_json_log(project, job_log_url, job_guid, check_errors=False):
    """
    Apply the Structured Log Fault Formatter to the structured log for a job.
    """
    # The parse-json-log task has suddenly started taking 80x longer that it used to,
    # which is causing a backlog in normal log parsing tasks too. The output of this
    # task is not being used yet, so skip parsing until this is resolved.
    # See bug 1152681.
    return

    # don't parse a log if it's already been parsed
    if is_parsed(job_log_url):
        return

    post_log_artifacts(project, job_guid, job_log_url, parse_json_log,
                       extract_json_log_artifacts, check_errors)
Exemple #10
0
def parse_json_log(project, job_log_url, job_guid):
    """
    Apply the Structured Log Fault Formatter to the structured log for a job.
    """
    # The parse-json-log task has suddenly started taking 80x longer that it used to,
    # which is causing a backlog in normal log parsing tasks too. The output of this
    # task is not being used yet, so skip parsing until this is resolved.
    # See bug 1152681.
    return

    # don't parse a log if it's already been parsed
    if is_parsed(job_log_url):
        return

    post_log_artifacts(project,
                       job_guid,
                       job_log_url,
                       parse_json_log,
                       extract_json_log_artifacts,
                       )
Exemple #11
0
def parse_log(project, job_guid, job_log, _priority):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    post_log_artifacts(project, job_guid, job_log.url, parse_log,
                       extract_text_log_artifacts)
Exemple #12
0
def parse_unstructured_log(job_log):
    """
    Call ArtifactBuilderCollection on the given job.
    """
    logger.debug('Running parse_unstructured_log for job %s', job_log.job.id)
    post_log_artifacts(job_log)