From 0f330b10f1749dab25871b432e8e94ba7e93821c Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 29 Nov 2025 16:48:38 +0300 Subject: [PATCH] Add kv-stress test to CI --- .gitea/workflows/test.yml | 18 ++++++++++++++++++ tests/run_tests.sh | 2 ++ tests/test_kv_stress.sh | 9 +++++++++ 3 files changed, 29 insertions(+) create mode 100755 tests/test_kv_stress.sh diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index e8a0db00..4f07d940 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -540,6 +540,24 @@ jobs: echo "" done + test_kv_stress: + runs-on: ubuntu-latest + needs: build + container: ${{env.TEST_IMAGE}}:${{github.sha}} + steps: + - name: Run test + id: test + timeout-minutes: 3 + run: /root/vitastor/tests/test_kv_stress.sh + - name: Print logs + if: always() && steps.test.outcome == 'failure' + run: | + for i in /root/vitastor/testdata/*.log /root/vitastor/testdata/*.txt; do + echo "-------- $i --------" + cat $i + echo "" + done + test_splitbrain: runs-on: ubuntu-latest needs: build diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 76a5afe3..86009d23 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -48,6 +48,8 @@ SCHEME=ec ./test_snapshot_chain.sh ./test_snapshot_down.sh SCHEME=ec ./test_snapshot_down.sh +./test_kv_stress.sh + ./test_splitbrain.sh ./test_rebalance_verify.sh diff --git a/tests/test_kv_stress.sh b/tests/test_kv_stress.sh new file mode 100755 index 00000000..8d23afc4 --- /dev/null +++ b/tests/test_kv_stress.sh @@ -0,0 +1,9 @@ +#!/bin/bash -ex + +IMMEDIATE_COMMIT=1 +PG_COUNT=16 +. `dirname $0`/run_3osds.sh + +build/src/kv/vitastor-kv-stress --etcd_address $ETCD_URL --pool_id 1 --inode_id 1 --runtime 30 + +format_green OK