2021-12-24 12:56:03 +00:00
|
|
|
name: JepsenWorkflow
|
|
|
|
env:
|
|
|
|
# Force the stdout and stderr streams to be unbuffered
|
|
|
|
PYTHONUNBUFFERED: 1
|
|
|
|
concurrency:
|
|
|
|
group: jepsen
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
|
|
schedule:
|
|
|
|
- cron: '0 */6 * * *'
|
|
|
|
workflow_dispatch:
|
2022-05-27 12:37:11 +00:00
|
|
|
workflow_call:
|
2021-12-24 12:56:03 +00:00
|
|
|
jobs:
|
2022-11-07 09:50:39 +00:00
|
|
|
KeeperJepsenRelease:
|
|
|
|
runs-on: [self-hosted, style-checker]
|
|
|
|
steps:
|
|
|
|
- name: Set envs
|
|
|
|
run: |
|
|
|
|
cat >> "$GITHUB_ENV" << 'EOF'
|
|
|
|
TEMP_PATH=${{runner.temp}}/keeper_jepsen
|
|
|
|
REPO_COPY=${{runner.temp}}/keeper_jepsen/ClickHouse
|
|
|
|
EOF
|
|
|
|
- name: Check out repository code
|
2022-12-23 16:54:19 +00:00
|
|
|
uses: ClickHouse/checkout@v1
|
2022-11-07 09:50:39 +00:00
|
|
|
with:
|
2022-12-20 00:06:11 +00:00
|
|
|
clear-repository: true
|
2022-11-07 09:50:39 +00:00
|
|
|
fetch-depth: 0
|
2023-10-17 17:21:08 +00:00
|
|
|
filter: tree:0
|
2022-11-07 09:50:39 +00:00
|
|
|
- name: Jepsen Test
|
|
|
|
run: |
|
|
|
|
sudo rm -fr "$TEMP_PATH"
|
|
|
|
mkdir -p "$TEMP_PATH"
|
|
|
|
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
|
|
|
|
cd "$REPO_COPY/tests/ci"
|
|
|
|
python3 jepsen_check.py keeper
|
|
|
|
- name: Cleanup
|
|
|
|
if: always()
|
|
|
|
run: |
|
|
|
|
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
|
|
|
|
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
|
|
|
|
sudo rm -fr "$TEMP_PATH"
|
2022-11-09 08:45:32 +00:00
|
|
|
# ServerJepsenRelease:
|
|
|
|
# runs-on: [self-hosted, style-checker]
|
|
|
|
# if: ${{ always() }}
|
|
|
|
# needs: [KeeperJepsenRelease]
|
|
|
|
# steps:
|
|
|
|
# - name: Set envs
|
|
|
|
# run: |
|
|
|
|
# cat >> "$GITHUB_ENV" << 'EOF'
|
|
|
|
# TEMP_PATH=${{runner.temp}}/server_jepsen
|
|
|
|
# REPO_COPY=${{runner.temp}}/server_jepsen/ClickHouse
|
|
|
|
# EOF
|
|
|
|
# - name: Check out repository code
|
2022-12-23 16:54:19 +00:00
|
|
|
# uses: ClickHouse/checkout@v1
|
2022-11-09 08:45:32 +00:00
|
|
|
# with:
|
2022-12-20 00:06:11 +00:00
|
|
|
# clear-repository: true
|
2022-11-09 08:45:32 +00:00
|
|
|
# fetch-depth: 0
|
2023-10-17 17:21:08 +00:00
|
|
|
# filter: tree:0
|
2022-11-09 08:45:32 +00:00
|
|
|
# - name: Jepsen Test
|
|
|
|
# run: |
|
|
|
|
# sudo rm -fr "$TEMP_PATH"
|
|
|
|
# mkdir -p "$TEMP_PATH"
|
|
|
|
# cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
|
|
|
|
# cd "$REPO_COPY/tests/ci"
|
|
|
|
# python3 jepsen_check.py server
|
|
|
|
# - name: Cleanup
|
|
|
|
# if: always()
|
|
|
|
# run: |
|
|
|
|
# docker ps --quiet | xargs --no-run-if-empty docker kill ||:
|
|
|
|
# docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
|
|
|
|
# sudo rm -fr "$TEMP_PATH"
|