Set raw_logs in create_ci_report

This commit is contained in:
vdimir 2023-09-08 15:39:07 +00:00
parent b0b8255c6f
commit 465d84aba7
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -298,7 +298,14 @@ def create_ci_report(pr_info: PRInfo, statuses: CommitStatuses) -> str:
log_urls = None
if status.target_url is not None:
log_urls = [status.target_url]
test_results.append(TestResult(status.context, status.state, log_urls=log_urls))
raw_logs = None
if status.description:
raw_logs = status.description
test_results.append(
TestResult(
status.context, status.state, log_urls=log_urls, raw_logs=raw_logs
)
)
return upload_results(
S3Helper(), pr_info.number, pr_info.sha, test_results, [], CI_STATUS_NAME
)