mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
style fixes
This commit is contained in:
parent
1e6edbd4ae
commit
f7dfa21bff
3
.github/workflows/reusable_test.yml
vendored
3
.github/workflows/reusable_test.yml
vendored
@ -102,7 +102,8 @@ jobs:
|
||||
--job-name '${{inputs.test_name}}' \
|
||||
--run \
|
||||
--run-command '''${{inputs.run_command}}'''
|
||||
if [ "$?" != 0 ]; then
|
||||
exit_code = "$?"
|
||||
if [ "$exit_code" != 0 ]; then
|
||||
echo JOB_EXIT_CODE="$?" >> "$GITHUB_ENV"
|
||||
fi
|
||||
- name: Post run
|
||||
|
@ -1284,7 +1284,7 @@ def main() -> int:
|
||||
print("WARNING: OOM while job execution")
|
||||
error = f"Out Of Memory, exit_code {job_report.exit_code}, after {int(job_report.duration)}s"
|
||||
else:
|
||||
error = f"Unknown, exit_code {job_report.exit_code}, after {job_report.duration}s"
|
||||
error = f"Unknown, exit_code {job_report.exit_code}, after {int(job_report.duration)}s"
|
||||
CIBuddy().post_error(error, job_name=_get_ext_check_name(args.job_name))
|
||||
if CI.is_test_job(args.job_name):
|
||||
gh = GitHub(get_best_robot_token(), per_page=100)
|
||||
|
@ -71,7 +71,9 @@ class CIBuddy:
|
||||
line_ghr = f" *Runner:* `{instance_type}`, `{instance_id}`\n"
|
||||
line_job = f" *Job:* `{job_name}`\n"
|
||||
line_pr_ = f" *PR:* <https://github.com/{self.repo}/pull/{self.pr_number}|#{self.pr_number}>, <{self.commit_url}|{self.sha}>\n"
|
||||
line_br_ = f" *Branch:* `{self.head_ref}`, <{self.commit_url}|{self.sha}>\n"
|
||||
line_br_ = (
|
||||
f" *Branch:* `{self.head_ref}`, <{self.commit_url}|{self.sha}>\n"
|
||||
)
|
||||
message = line_err
|
||||
message += line_job
|
||||
if with_instance_info:
|
||||
@ -86,4 +88,4 @@ class CIBuddy:
|
||||
if __name__ == "__main__":
|
||||
# test
|
||||
buddy = CIBuddy(dry_run=True)
|
||||
buddy.post_error("Out of memory")
|
||||
buddy.post_error("TEst")
|
||||
|
Loading…
Reference in New Issue
Block a user