mirror of https://github.com/ByConity/ByConity
Merge pull request #15307 from ClickHouse/test_integration_tests_flaky_check
Fix flaky integration test
This commit is contained in:
commit
3086fd88cd
|
@ -441,6 +441,18 @@
|
||||||
"with_coverage": false
|
"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": {
|
"Compatibility check": {
|
||||||
"required_build_properties": {
|
"required_build_properties": {
|
||||||
"compiler": "gcc-10",
|
"compiler": "gcc-10",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from helpers.cluster import ClickHouseCluster
|
from helpers.cluster import ClickHouseCluster
|
||||||
|
@ -37,10 +38,15 @@ def cluster():
|
||||||
|
|
||||||
|
|
||||||
def check_proxy_logs(cluster, proxy_instance, http_methods={"POST", "PUT", "GET", "DELETE"}):
|
def check_proxy_logs(cluster, proxy_instance, http_methods={"POST", "PUT", "GET", "DELETE"}):
|
||||||
logs = cluster.get_container_logs(proxy_instance)
|
for i in range(10):
|
||||||
# Check that all possible interactions with Minio are present
|
logs = cluster.get_container_logs(proxy_instance)
|
||||||
for http_method in http_methods:
|
# Check with retry that all possible interactions with Minio are present
|
||||||
assert logs.find(http_method + " http://minio1") >= 0
|
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(
|
@pytest.mark.parametrize(
|
||||||
|
|
Loading…
Reference in New Issue