mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
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
|
||||
}
|
||||
},
|
||||
"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",
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user