From dc2edaa2c8ab8d4928ab2e0616bc28e074ebc1b7 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Thu, 26 Aug 2021 12:38:20 +0800 Subject: [PATCH] Avoid setup two cluster (#2554) * Avoid setup two cluster. * Stop cluster when clean up * Down the cluster. --- .github/workflows/pull_request.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index f412b67474d..e889c7ad779 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -126,20 +126,26 @@ jobs: run: ctest -j $(($(nproc)/2+1)) --timeout 400 --output-on-failure working-directory: build/ timeout-minutes: 20 - - name: Pytest + - name: Setup cluster run: | make up + working-directory: tests/ + timeout-minutes: 2 + - name: Pytest + run: | make RM_DIR=false DEBUG=false J=${{ steps.cmake.outputs.j }} test - make down working-directory: tests/ timeout-minutes: 15 - name: TCK run: | - make up make RM_DIR=false DEBUG=false J=${{ steps.cmake.outputs.j }} tck - make down working-directory: tests/ timeout-minutes: 30 + - name: Down cluster + run: | + make down + working-directory: tests/ + timeout-minutes: 2 - name: Sanitizer if: ${{ always() }} run: |