From 5286a5e4608bf106824abf6e5d196ddf342c2adc Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Sat, 15 Mar 2025 23:44:22 +0800 Subject: [PATCH] upload logs Signed-off-by: Ping Yu --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c86208..bd43020 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: run: | # use latest stable version ~/.tiup/bin/tiup install tikv:${{ env.TIKV_VERSION }} pd:${{ env.TIKV_VERSION }} - ~/.tiup/bin/tiup playground ${{ env.TIKV_VERSION }} --mode tikv-slim --kv 3 --without-monitor --kv.config config/tikv.toml --pd.config config/pd.toml & + ~/.tiup/bin/tiup playground ${{ env.TIKV_VERSION }} --mode tikv-slim --kv 3 --tag cluster --without-monitor --kv.config config/tikv.toml --pd.config config/pd.toml & while :; do echo "waiting cluster to be ready" [[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break @@ -84,5 +84,13 @@ jobs: done - name: Install latest nextest release uses: taiki-e/install-action@nextest - - name: integration test + - name: Integration test run: MULTI_REGION=1 make ${{ matrix.case }} + - name: Upload logs + if: failure() + uses: actions/upload-artifact@v2 + with: + name: cluster-logs + path: | + ~/.tiup/data/cluster/tikv*/*.log + ~/.tiup/data/cluster/pd*/*.log