From 699e7446174de4d293bea52a12c9f5ba2d780e92 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 10 Jun 2023 12:26:16 +0530 Subject: [PATCH] ci: restart bench in patch test also show bench output --- .github/helper/install.sh | 2 +- .github/workflows/patch-mariadb-tests.yml | 6 ++++++ .github/workflows/server-tests.yml | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/helper/install.sh b/.github/helper/install.sh index 39880e35e7..5cdcbebe1a 100644 --- a/.github/helper/install.sh +++ b/.github/helper/install.sh @@ -54,7 +54,7 @@ fi echo "Starting Bench..." -bench start &> bench_start.log & +bench start &> ~/frappe-bench/bench_start.log & if [ "$TYPE" == "server" ] then diff --git a/.github/workflows/patch-mariadb-tests.yml b/.github/workflows/patch-mariadb-tests.yml index 291c80fc3e..eac55106f2 100644 --- a/.github/workflows/patch-mariadb-tests.yml +++ b/.github/workflows/patch-mariadb-tests.yml @@ -126,8 +126,10 @@ jobs: git checkout -q -f $branch_name pip install -U frappe-bench + pgrep honcho | xargs kill rm -rf ~/frappe-bench/env bench -v setup env + bench start &> ~/frappe-bench/bench_start.log & bench --site test_site migrate } @@ -143,3 +145,7 @@ jobs: rm -rf ~/frappe-bench/env bench -v setup env bench --site test_site migrate + + - name: Show bench output + if: ${{ always() }} + run: cat ~/frappe-bench/bench_start.log || true diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index c965417928..f5eac8e380 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -136,6 +136,10 @@ jobs: BUILD_NUMBER: ${{ matrix.container }} TOTAL_BUILDS: 2 + - name: Show bench output + if: ${{ always() }} + run: cat ~/frappe-bench/bench_start.log || true + - name: Upload coverage data uses: actions/upload-artifact@v3 with: