Exemple #1
0
def text_summary_lines(test_job, failure_lines, text_log_error_lines):
    from treeherder.model.models import TextLogSummary, TextLogSummaryLine

    summary = TextLogSummary(job_guid=test_job.guid,
                             repository=test_job.repository)
    summary.save()

    summary_lines = []
    for line in failure_lines:
        summary_line = TextLogSummaryLine(summary=summary,
                                          line_number=line.line,
                                          failure_line=line)
        summary_line.save()
        summary_lines.append(summary_line)

    return summary_lines
Exemple #2
0
def text_summary_lines(test_job, failure_lines, text_log_error_lines):
    from treeherder.model.models import TextLogSummary, TextLogSummaryLine

    summary = TextLogSummary(
        job_guid=test_job.guid,
        repository=test_job.repository
    )
    summary.save()

    summary_lines = []
    for line in failure_lines:
        summary_line = TextLogSummaryLine(
            summary=summary,
            line_number=line.line,
            failure_line=line)
        summary_line.save()
        summary_lines.append(summary_line)

    return summary_lines
Exemple #3
0
def text_summary_lines(jm, failure_lines, test_repository, artifacts):
    from treeherder.model.models import TextLogSummary, TextLogSummaryLine
    job = jm.get_job(1)[0]

    summary = TextLogSummary(job_guid=job["job_guid"],
                             repository=test_repository,
                             text_log_summary_artifact_id=artifacts[0]["id"],
                             bug_suggestions_artifact_id=artifacts[1]["id"])
    summary.save()

    summary_lines = []
    for line in failure_lines:
        summary_line = TextLogSummaryLine(summary=summary,
                                          line_number=line.line,
                                          failure_line=line)
        summary_line.save()
        summary_lines.append(summary_line)

    return summary_lines
Exemple #4
0
def text_summary_lines(jm, failure_lines, test_repository, artifacts):
    from treeherder.model.models import TextLogSummary, TextLogSummaryLine
    job = jm.get_job(1)[0]

    summary = TextLogSummary(
        job_guid=job["job_guid"],
        repository=test_repository,
        text_log_summary_artifact_id=artifacts[0]["id"],
        bug_suggestions_artifact_id=artifacts[1]["id"]
    )
    summary.save()

    summary_lines = []
    for line in failure_lines:
        summary_line = TextLogSummaryLine(
            summary=summary,
            line_number=line.line,
            failure_line=line)
        summary_line.save()
        summary_lines.append(summary_line)

    return summary_lines