ci: fix ocassional patch test failure (#25001)

Some files in /env are touched during deletion which causes test to fail.

Hunch: running processes still not killed OR background jobs.
This commit is contained in:
Ankush Menat 2024-02-21 20:25:32 +05:30 committed by GitHub
parent ab485b2f4f
commit 4f18daba17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,6 +110,7 @@ jobs:
- name: Run Patch Tests
run: |
cd ~/frappe-bench/
sed -i 's/^worker:/# worker:/g' Procfile
wget https://frappeframework.com/files/v13-frappe.sql.gz
bench --site test_site --force restore ~/frappe-bench/v13-frappe.sql.gz
@ -126,6 +127,7 @@ jobs:
git checkout -q -f $branch_name
pgrep honcho | xargs kill
sleep 3
rm -rf ~/frappe-bench/env
bench -v setup env
bench start &>> ~/frappe-bench/bench_start.log &
@ -138,6 +140,7 @@ jobs:
echo "Updating to last commit"
pgrep honcho | xargs kill
sleep 3
rm -rf ~/frappe-bench/env
git checkout -q -f "$GITHUB_SHA"
bench -v setup env