Merge pull request #15307 from ClickHouse/test_integration_tests_flaky_check

Fix flaky integration test
This commit is contained in:
alesapin 2020-09-26 17:08:23 +03:00 committed by GitHub
commit 3086fd88cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 4 deletions

View File

@ -441,6 +441,18 @@
"with_coverage": false
}
},
"Integration tests flaky check (asan)": {
"required_build_properties": {
"compiler": "clang-11",
"package_type": "deb",
"build_type": "relwithdebuginfo",
"sanitizer": "address",
"bundled": "bundled",
"splitted": "unsplitted",
"clang-tidy": "disable",
"with_coverage": false
}
},
"Compatibility check": {
"required_build_properties": {
"compiler": "gcc-10",

View File

@ -1,5 +1,6 @@
import logging
import os
import time
import pytest
from helpers.cluster import ClickHouseCluster
@ -37,10 +38,15 @@ def cluster():
def check_proxy_logs(cluster, proxy_instance, http_methods={"POST", "PUT", "GET", "DELETE"}):
logs = cluster.get_container_logs(proxy_instance)
# Check that all possible interactions with Minio are present
for http_method in http_methods:
assert logs.find(http_method + " http://minio1") >= 0
for i in range(10):
logs = cluster.get_container_logs(proxy_instance)
# Check with retry that all possible interactions with Minio are present
for http_method in http_methods:
if logs.find(http_method + " http://minio1") >= 0:
return
time.sleep(1)
else:
assert False, "http method not found in logs"
@pytest.mark.parametrize(