Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
runner: [ubuntu-latest-16-cores]
db-version: [{pg: 15, mysql: 'mysql-gtid', mongo: '6.0'}, {pg: 16, mysql: 'mysql-pos', mongo: '7.0'}, {pg: 17, mysql: 'maria', mongo: '8.0'}]
db-version: [{pg: 15, mysql: 'mysql-gtid', mongo: '6.0', ch: '24.12.6.70'}, {pg: 16, mysql: 'mysql-pos', mongo: '7.0', ch: '25.3.3.42'}, {pg: 17, mysql: 'maria', mongo: '8.0', ch: 'latest'}]
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
services:
Expand Down Expand Up @@ -193,12 +193,19 @@ jobs:
id: cache-clickhouse
with:
path: ./clickhouse
key: ${{ runner.os }}-clickhouse
key: ${{ runner.os }}-clickhouse-${{ matrix.db-version.ch }}

- name: Install ClickHouse
if: steps.cache-clickhouse.outputs.cache-hit != 'true'
run: |
curl https://clickhouse.com | sh
if test "${{ matrix.db-version.ch }}" = latest
then curl https://clickhouse.com | sh
else
curl "https://packages.clickhouse.com/tgz/stable/clickhouse-common-static-${{ matrix.db-version.ch }}-amd64.tgz" -o clickhouse.tgz
mkdir -p chdir
tar xzf clickhouse.tgz -C ./chdir --strip-components=1
mv ./chdir/usr/bin/clickhouse .
fi

- name: Run ClickHouse
run: |
Expand Down Expand Up @@ -330,15 +337,12 @@ jobs:
</clickhouse>
EOF
mkdir chkeep ch1 ch2
(cd chkeep && ../clickhouse keeper -C ../config-keeper.xml) &
while true; do
if echo "ruok" | nc -w 3 127.0.0.1 2181 2>/dev/null | grep -q "imok"; then
break
fi
(cd chkeep && ../clickhouse keeper -C ../config-keeper.xml)
until echo "ruok" | nc -w 3 127.0.0.1 2181 2>/dev/null | grep -q "imok"; do
echo "Waiting for keeper..."
sleep 1
done
sleep 5
sleep 1
(cd ch1 && ../clickhouse server -C ../config1.xml) &
(cd ch2 && ../clickhouse server -C ../config2.xml) &

Expand Down
Loading