mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Post critical errors from cherry_pick.py
This commit is contained in:
parent
bcab2d51aa
commit
0bdf4402fe
@ -34,8 +34,9 @@ from typing import List, Optional
|
||||
|
||||
import __main__
|
||||
|
||||
from ci_buddy import CIBuddy
|
||||
from ci_config import Labels
|
||||
from env_helper import TEMP_PATH
|
||||
from env_helper import IS_CI, TEMP_PATH
|
||||
from get_robot_token import get_best_robot_token
|
||||
from git_helper import GIT_PREFIX, git_runner, is_shallow
|
||||
from github_helper import GitHub, PullRequest, PullRequests, Repository
|
||||
@ -653,6 +654,14 @@ def main():
|
||||
bp.process_backports()
|
||||
if bp.error is not None:
|
||||
logging.error("Finished successfully, but errors occurred!")
|
||||
if IS_CI:
|
||||
ci_buddy = CIBuddy()
|
||||
ci_buddy.post_job_error(
|
||||
f"The cherry-pick finished with errors: {bp.error}",
|
||||
with_instance_info=True,
|
||||
with_wf_link=True,
|
||||
critical=True,
|
||||
)
|
||||
raise bp.error
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user