Skip to content

Commit 105b592

Browse files
committed
ci: Add stateful tests for cluster
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 6b81a95 commit 105b592

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/mergify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ queue_rules:
1010
- check-success~=^build_(aarch64|x86_64)_musl$
1111
- check-success=test_unit
1212
- check-success=test_metactl
13+
# stateless tests
1314
- check-success=test_stateless_standalone_linux
1415
- check-success=test_stateless_cluster_linux
16+
# stateful tests
1517
- check-success=test_stateful_standalone_linux
18+
- check-success=test_stateful_cluster_linux
19+
# sqllogic tests
1620
- check-success=test_sqllogic_base_standalone_linux
1721
- check-success=test_sqllogic_ydb_standalone_linux
1822
- check-success=test_sqllogic_base_cluster_linux

.github/workflows/dev-linux.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ jobs:
169169
- uses: actions/checkout@v3
170170
- uses: ./.github/actions/test_stateful_standalone_linux
171171

172+
test_stateful_cluster_linux:
173+
timeout-minutes: 10
174+
runs-on: [self-hosted, X64, Linux, development]
175+
needs: build_gnu
176+
steps:
177+
- uses: actions/checkout@v3
178+
- uses: ./.github/actions/test_stateful_cluster_linux
179+
172180
test_fuzz_standalone_linux:
173181
timeout-minutes: 10
174182
runs-on: [self-hosted, X64, Linux, development]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
# Copyright 2020-2021 The Databend Authors.
3+
# SPDX-License-Identifier: Apache-2.0.
4+
5+
echo "*************************************"
6+
echo "* Setting STORAGE_TYPE to S3. *"
7+
echo "* *"
8+
echo "* Please make sure that S3 backend *"
9+
echo "* is ready, and configured properly.*"
10+
echo "*************************************"
11+
export STORAGE_TYPE=s3
12+
export STORAGE_S3_BUCKET=testbucket
13+
export STORAGE_S3_ROOT=admin
14+
export STORAGE_S3_ENDPOINT_URL=http://127.0.0.1:9900
15+
export STORAGE_S3_ACCESS_KEY_ID=minioadmin
16+
export STORAGE_S3_SECRET_ACCESS_KEY=minioadmin
17+
export STORAGE_ALLOW_INSECURE=true
18+
19+
echo "Install dependence"
20+
python3 -m pip install --quiet mysql-connector-python
21+
22+
echo "calling test suite"
23+
echo "Starting Cluster databend-query"
24+
./scripts/ci/deploy/databend-query-cluster-3-nodes.sh
25+
26+
SCRIPT_PATH="$(cd "$(dirname "$0")" >/dev/null 2>&1 && pwd)"
27+
cd "$SCRIPT_PATH/../../tests" || exit
28+
29+
echo "Starting databend-test"
30+
./databend-test --mode 'cluster' --run-dir 1_stateful

0 commit comments

Comments
 (0)