release 1.13.9: suppress mid-run SUMMARY and progress standings

Multi-phase runs no longer print intermediate progress bars, numbered
checks, or SUMMARY boxes after each phase (e.g. 34/52 after urls).
Only the last phase (or a solo check_*.sh) may full-summary; global
progress_finish still ends the run.
This commit is contained in:
Hernâni Marques 2026-07-19 04:05:09 +02:00
parent c0d0b62a94
commit 80638ddea0
No known key found for this signature in database
4 changed files with 48 additions and 24 deletions

View file

@ -570,6 +570,12 @@ chmod +x "$ROOT"/check_*.sh 2>/dev/null || true
ec=0
_phase_idx=0
_n_phases=${#PHASES[@]}
# Suppress mid-run SUMMARY / progress standings when more than one phase
if [ "$_n_phases" -gt 1 ]; then
export TALER_MON_MULTI_PHASE=1
else
export TALER_MON_MULTI_PHASE=0
fi
while [ "$_phase_idx" -lt "$_n_phases" ]; do
p="${PHASES[$_phase_idx]}"
if [ "$RUN_TIMED_OUT" = "1" ]; then
@ -585,6 +591,12 @@ while [ "$_phase_idx" -lt "$_n_phases" ]; do
_phase_idx=$((_phase_idx + 1))
continue
fi
# Only last phase may print full SUMMARY + progress standings
if [ "$((_phase_idx + 1))" -ge "$_n_phases" ]; then
export PROGRESS_FINAL=1
else
export PROGRESS_FINAL=0
fi
case "$p" in
urls) run_phase urls "$ROOT/check_urls.sh" || ec=1 ;;
inside) run_phase inside "$ROOT/check_inside.sh" || ec=1 ;;
@ -618,6 +630,7 @@ while [ "$_phase_idx" -lt "$_n_phases" ]; do
_phase_idx=$((_phase_idx + 1))
done
unset _phase_idx _n_phases
unset PROGRESS_FINAL TALER_MON_MULTI_PHASE 2>/dev/null || true
# Extraordinary run-budget failure: always report at end; HTML links top → here.
if [ "$RUN_TIMED_OUT" = "1" ]; then