Improve E2E launch diagnostics and failure alerts

This commit is contained in:
Samuel Newman
2026-07-17 14:24:02 +03:00
parent ce9ccef515
commit 97515487e5
4 changed files with 82 additions and 6 deletions
+7
View File
@@ -60,6 +60,7 @@ stop_pid_file() {
# shellcheck disable=SC2329 # Invoked by the EXIT/INT/TERM trap below.
cleanup() {
set +e
stop_pid_file "$artifact_dir/logcat.pid"
stop_pid_file "$artifact_dir/metro.pid"
stop_pid_file "$artifact_dir/mock-server.pid"
@@ -81,6 +82,12 @@ cleanup() {
trap cleanup EXIT INT TERM
if [[ "$platform" == "android" ]]; then
adb -s "$device_id" logcat -c
adb -s "$device_id" logcat -v threadtime >"$artifact_dir/logcat.log" 2>&1 &
printf '%s\n' "$!" >"$artifact_dir/logcat.pid"
fi
phase "Starting PostgreSQL, Redis, and mock server"
if [[ "$platform" == "ios" ]]; then
brew install postgresql@14 2>&1 | tee "$artifact_dir/native-dependencies.log"