Simplify checks list in style-check image

This commit is contained in:
Mikhail f. Shiryaev 2022-11-29 14:08:04 +01:00
parent 0f2704703f
commit e46f615176
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 12 additions and 11 deletions

View File

@ -11,17 +11,18 @@ def process_result(result_folder):
description = "" description = ""
test_results = [] test_results = []
checks = ( checks = (
("header duplicates", "duplicate_output.txt"), "header duplicates",
("shellcheck", "shellcheck_output.txt"), "shellcheck",
("style", "style_output.txt"), "style",
("black", "black_output.txt"), "black",
("typos", "typos_output.txt"), "typos",
("whitespaces", "whitespaces_output.txt"), "whitespaces",
("workflows", "workflows_output.txt"), "workflows",
("doc typos", "doc_spell_output.txt"), "doc typos",
) )
for name, out_file in checks: for name in checks:
out_file = name.replace(" ", "_") + "_output.txt"
full_path = os.path.join(result_folder, out_file) full_path = os.path.join(result_folder, out_file)
if not os.path.exists(full_path): if not os.path.exists(full_path):
logging.info("No %s check log on path %s", name, full_path) logging.info("No %s check log on path %s", name, full_path)

View File

@ -4,7 +4,7 @@
cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv
echo "Check duplicates" | ts echo "Check duplicates" | ts
./check-duplicate-includes.sh |& tee /test_output/duplicate_output.txt ./check-duplicate-includes.sh |& tee /test_output/header_duplicates_output.txt
echo "Check style" | ts echo "Check style" | ts
./check-style -n |& tee /test_output/style_output.txt ./check-style -n |& tee /test_output/style_output.txt
echo "Check python formatting with black" | ts echo "Check python formatting with black" | ts
@ -12,7 +12,7 @@ echo "Check python formatting with black" | ts
echo "Check typos" | ts echo "Check typos" | ts
./check-typos |& tee /test_output/typos_output.txt ./check-typos |& tee /test_output/typos_output.txt
echo "Check docs spelling" | ts echo "Check docs spelling" | ts
./check-doc-aspell |& tee /test_output/doc_spell_output.txt ./check-doc-aspell |& tee /test_output/doc_typos_output.txt
echo "Check whitespaces" | ts echo "Check whitespaces" | ts
./check-whitespaces -n |& tee /test_output/whitespaces_output.txt ./check-whitespaces -n |& tee /test_output/whitespaces_output.txt
echo "Check workflows" | ts echo "Check workflows" | ts