Fail build_report jobs on non-success statuses

This commit is contained in:
Mikhail f. Shiryaev 2024-04-19 14:27:10 +02:00
parent eb23de3561
commit c9e41251a6
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 2 additions and 3 deletions

View File

@ -139,7 +139,8 @@ def main():
additional_files=[report_path],
).dump()
if summary_status == ERROR:
# We should fail the report job to rerun it in the following attempts
if summary_status != SUCCESS:
sys.exit(1)

View File

@ -2121,8 +2121,6 @@ def main() -> int:
pr_info,
dump_to_file=True,
)
if job_report.status != SUCCESS:
exit_code = 1
if not pr_info.is_merge_queue:
# in the merge queue mergeable status must be set only in FinishCheck (last job in wf)
update_mergeable_check(