Fix fuzzer check

This commit is contained in:
alesapin 2021-11-02 18:37:55 +03:00
parent bc2c5c6033
commit cd77f26826
2 changed files with 14 additions and 11 deletions

View File

@ -289,7 +289,7 @@ jobs:
docker rm -f $(docker ps -a -q) ||: docker rm -f $(docker ps -a -q) ||:
sudo rm -fr $TEMP_PATH sudo rm -fr $TEMP_PATH
FinishCheck: FinishCheck:
needs: [StyleCheck, DockerHubPush, CheckLabels, BuilderReport, FastTest, FunctionalStatelessTestDebug, FunctionalStatefulTestDebug, DocsCheck, StressTestDebug] needs: [StyleCheck, DockerHubPush, CheckLabels, BuilderReport, FastTest, FunctionalStatelessTestDebug, FunctionalStatefulTestDebug, DocsCheck, StressTestDebug, ASTFuzzerTestDebug]
runs-on: [self-hosted, style-checker] runs-on: [self-hosted, style-checker]
steps: steps:
- name: Check out repository code - name: Check out repository code

View File

@ -91,7 +91,7 @@ def build_config_to_string(build_config):
def get_run_command(pr_number, sha, download_url, workspace_path, image): def get_run_command(pr_number, sha, download_url, workspace_path, image):
return f'docker run --network=host --volume={workspace_path}:/workspace ' \ return f'docker run --network=host --volume={workspace_path}:/workspace ' \
'--cap-add syslog --cap-add sys_admin ' \ '--cap-add syslog --cap-add sys_admin ' \
f'-e PR_TO_TEST={pr_number} -e SHA_TO_TEST={sha} -e BINARY_URL_TO_DOWNLOAD={download_url} '\ f'-e PR_TO_TEST={pr_number} -e SHA_TO_TEST={sha} -e BINARY_URL_TO_DOWNLOAD="{download_url}" '\
f'{image}' f'{image}'
def get_commit(gh, commit_sha): def get_commit(gh, commit_sha):
@ -176,6 +176,7 @@ if __name__ == "__main__":
check_name_lower = check_name.lower().replace('(', '').replace(')', '').replace(' ', '') check_name_lower = check_name.lower().replace('(', '').replace(')', '').replace(' ', '')
s3_prefix = f'{pr_info.number}/{pr_info.sha}/fuzzer_{check_name_lower}/' s3_prefix = f'{pr_info.number}/{pr_info.sha}/fuzzer_{check_name_lower}/'
paths = { paths = {
'runlog.log': run_log_path,
'main.log': os.path.join(workspace_path, 'workspace/main.log'), 'main.log': os.path.join(workspace_path, 'workspace/main.log'),
'server.log': os.path.join(workspace_path, 'workspace/server.log'), 'server.log': os.path.join(workspace_path, 'workspace/server.log'),
'fuzzer.log': os.path.join(workspace_path, 'workspace/fuzzer.log'), 'fuzzer.log': os.path.join(workspace_path, 'workspace/fuzzer.log'),
@ -190,6 +191,8 @@ if __name__ == "__main__":
paths[f] = '' paths[f] = ''
report_url = f"https://github.com/ClickHouse/ClickHouse/actions/runs/{os.getenv('GITHUB_RUN_ID')}" report_url = f"https://github.com/ClickHouse/ClickHouse/actions/runs/{os.getenv('GITHUB_RUN_ID')}"
if paths['runlog.log']:
report_url = paths['runlog.log']
if paths['main.log']: if paths['main.log']:
report_url = paths['main.log'] report_url = paths['main.log']
if paths['server.log']: if paths['server.log']: