style fix

This commit is contained in:
Yakov Olkhovskiy 2022-07-06 00:22:50 -04:00
parent 19365597eb
commit 69d1495672
3 changed files with 20 additions and 8 deletions

View File

@ -8,14 +8,13 @@ import sys
from github import Github from github import Github
from commit_status_helper import get_commit
from env_helper import CACHES_PATH, TEMP_PATH, GITHUB_SERVER_URL, GITHUB_REPOSITORY from env_helper import CACHES_PATH, TEMP_PATH, GITHUB_SERVER_URL, GITHUB_REPOSITORY
from pr_info import FORCE_TESTS_LABEL, PRInfo, SKIP_SIMPLE_CHECK_LABEL from pr_info import FORCE_TESTS_LABEL, PRInfo, SKIP_SIMPLE_CHECK_LABEL
from s3_helper import S3Helper from s3_helper import S3Helper
from get_robot_token import get_best_robot_token from get_robot_token import get_best_robot_token
from upload_result_helper import upload_results from upload_result_helper import upload_results
from docker_pull_helper import get_image_with_version from docker_pull_helper import get_image_with_version
from commit_status_helper import post_commit_status from commit_status_helper import post_commit_status, get_commit
from clickhouse_helper import ( from clickhouse_helper import (
ClickHouseHelper, ClickHouseHelper,
mark_flaky_tests, mark_flaky_tests,
@ -227,6 +226,9 @@ if __name__ == "__main__":
) )
commit = get_commit(gh, pr_info.sha) commit = get_commit(gh, pr_info.sha)
commit.create_status( commit.create_status(
context="Simple Check", description=f"{NAME} failed", state="failed", target_url=url context="Simple Check",
description=f"{NAME} failed",
state="failed",
target_url=url
) )
sys.exit(1) sys.exit(1)

View File

@ -224,7 +224,10 @@ if __name__ == "__main__":
remove_labels(gh, pr_info, pr_labels_to_remove) remove_labels(gh, pr_info, pr_labels_to_remove)
commit.create_status( commit.create_status(
context="Simple Check", description="Skipped", state="success", target_url=GITHUB_RUN_URL context="Simple Check",
description="Skipped",
state="success",
target_url=GITHUB_RUN_URL
) )
if description_error: if description_error:

View File

@ -7,14 +7,18 @@ import sys
from github import Github from github import Github
from commit_status_helper import get_commit from env_helper import (
from env_helper import RUNNER_TEMP, GITHUB_WORKSPACE, GITHUB_REPOSITORY, GITHUB_SERVER_URL RUNNER_TEMP,
GITHUB_WORKSPACE,
GITHUB_REPOSITORY,
GITHUB_SERVER_URL
)
from s3_helper import S3Helper from s3_helper import S3Helper
from pr_info import PRInfo, SKIP_SIMPLE_CHECK_LABEL from pr_info import PRInfo, SKIP_SIMPLE_CHECK_LABEL
from get_robot_token import get_best_robot_token from get_robot_token import get_best_robot_token
from upload_result_helper import upload_results from upload_result_helper import upload_results
from docker_pull_helper import get_image_with_version from docker_pull_helper import get_image_with_version
from commit_status_helper import post_commit_status from commit_status_helper import post_commit_status, get_commit
from clickhouse_helper import ( from clickhouse_helper import (
ClickHouseHelper, ClickHouseHelper,
mark_flaky_tests, mark_flaky_tests,
@ -128,6 +132,9 @@ if __name__ == "__main__":
) )
commit = get_commit(gh, pr_info.sha) commit = get_commit(gh, pr_info.sha)
commit.create_status( commit.create_status(
context="Simple Check", description=f"{NAME} failed", state="failed", target_url=url context="Simple Check",
description=f"{NAME} failed",
state="failed",
target_url=url
) )
sys.exit(1) sys.exit(1)