Add no-distributed-cache tag

This commit is contained in:
kssenii 2024-07-29 12:57:36 +02:00
parent a05312c654
commit 161e794618
3 changed files with 15 additions and 1 deletions

View File

@ -212,6 +212,10 @@ function run_tests()
ADDITIONAL_OPTIONS+=('--shared-catalog') ADDITIONAL_OPTIONS+=('--shared-catalog')
fi fi
if [[ "$USE_DISTRIBUTED_CACHE" -eq 1 ]]; then
ADDITIONAL_OPTIONS+=('--distributed-cache')
fi
if [[ "$USE_DATABASE_REPLICATED" -eq 1 ]]; then if [[ "$USE_DATABASE_REPLICATED" -eq 1 ]]; then
ADDITIONAL_OPTIONS+=('--replicated-database') ADDITIONAL_OPTIONS+=('--replicated-database')
# Too many tests fail for DatabaseReplicated in parallel. # Too many tests fail for DatabaseReplicated in parallel.

View File

@ -681,6 +681,7 @@ class FailureReason(enum.Enum):
BUILD = "not running for current build" BUILD = "not running for current build"
NO_PARALLEL_REPLICAS = "smth in not supported with parallel replicas" NO_PARALLEL_REPLICAS = "smth in not supported with parallel replicas"
SHARED_MERGE_TREE = "no-shared-merge-tree" SHARED_MERGE_TREE = "no-shared-merge-tree"
DISTRIBUTED_CACHE = "distributed-cache"
# UNKNOWN reasons # UNKNOWN reasons
NO_REFERENCE = "no reference file" NO_REFERENCE = "no reference file"
@ -1191,6 +1192,9 @@ class TestCase:
elif tags and ("no-replicated-database" in tags) and args.replicated_database: elif tags and ("no-replicated-database" in tags) and args.replicated_database:
return FailureReason.REPLICATED_DB return FailureReason.REPLICATED_DB
elif tags and ("no-distributed-cache" in tags) and args.distributed_cache:
return FailureReason.DISTRIBUTED_CACHE
elif ( elif (
tags tags
and ("atomic-database" in tags) and ("atomic-database" in tags)
@ -3204,6 +3208,12 @@ def parse_args():
default=False, default=False,
help="Run tests over s3 storage", help="Run tests over s3 storage",
) )
parser.add_argument(
"--distributed-cache",
action="store_true",
default=False,
help="Run tests with enabled distributed cache",
)
parser.add_argument( parser.add_argument(
"--azure-blob-storage", "--azure-blob-storage",
action="store_true", action="store_true",

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Tags: long, no-debug, no-asan, no-tsan, no-msan, no-ubsan, no-sanitize-coverage # Tags: long, no-debug, no-asan, no-tsan, no-msan, no-ubsan, no-sanitize-coverage, no-distributed-cache
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh # shellcheck source=../shell_config.sh