Merge pull request #69181 from ClickHouse/ci_rerun_check_rollback

CI: Rerun check: do not check if manual rerun
This commit is contained in:
Max K. 2024-09-04 08:29:54 +00:00 committed by GitHub
commit a3e5a3cd10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ import upload_result_helper
from build_check import get_release_or_pr
from ci_config import CI
from ci_metadata import CiMetadata
from ci_utils import GH, Utils
from ci_utils import GH, Utils, Envs
from clickhouse_helper import (
CiLogsCredentials,
ClickHouseHelper,
@ -333,11 +333,10 @@ def _pre_action(s3, job_name, batch, indata, pr_info):
CI.JobNames.BUILD_CHECK,
): # we might want to rerun build report job
rerun_helper = RerunHelper(commit, _get_ext_check_name(job_name))
if (
rerun_helper.is_already_finished_by_status()
and not Utils.is_job_triggered_manually()
):
print("WARNING: Rerunning job with GH status ")
if rerun_helper.is_already_finished_by_status():
print(
f"WARNING: Rerunning job with GH status, rerun triggered by {Envs.GITHUB_ACTOR}"
)
status = rerun_helper.get_finished_status()
assert status
print("::group::Commit Status")