mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fix fuzzer check
This commit is contained in:
parent
bc2c5c6033
commit
cd77f26826
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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
|
||||||
|
@ -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'),
|
||||||
@ -189,15 +190,17 @@ if __name__ == "__main__":
|
|||||||
except:
|
except:
|
||||||
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['main.log']:
|
if paths['runlog.log']:
|
||||||
report_url = paths['main.log']
|
report_url = paths['runlog.log']
|
||||||
if paths['server.log']:
|
if paths['main.log']:
|
||||||
report_url = paths['server.log']
|
report_url = paths['main.log']
|
||||||
if paths['fuzzer.log']:
|
if paths['server.log']:
|
||||||
report_url = paths['fuzzer.log']
|
report_url = paths['server.log']
|
||||||
if paths['report.html']:
|
if paths['fuzzer.log']:
|
||||||
report_url = paths['report.html']
|
report_url = paths['fuzzer.log']
|
||||||
|
if paths['report.html']:
|
||||||
|
report_url = paths['report.html']
|
||||||
|
|
||||||
# Try to get status message saved by the fuzzer
|
# Try to get status message saved by the fuzzer
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user