monitoring: boxed badges + area.group test IDs
This commit is contained in:
parent
f8affeb651
commit
e1cc6d7141
10 changed files with 286 additions and 225 deletions
|
|
@ -29,7 +29,10 @@ ROOT=$(cd "$(dirname "$0")" && pwd)
|
|||
# shellcheck source=lib.sh
|
||||
source "$ROOT/lib.sh"
|
||||
|
||||
# Area ladder.* — GOA withdraw/pay ladder
|
||||
# Groups: ladder.plan / ladder.load / ladder.withdraw / ladder.pay / ladder.report
|
||||
set_area ladder
|
||||
set_group plan
|
||||
SECTION_T0=$(date +%s)
|
||||
now_ms() { python3 -c 'import time; print(int(time.time()*1000))'; }
|
||||
elapsed_ms() {
|
||||
|
|
@ -261,6 +264,7 @@ info "steps" "${LADDER_STEPS} (0 + random≥${LADDER_MIN_AMOUNT} + max-1=${CUR}:
|
|||
info "withdraw_scale" "${LADDER_WITHDRAW_SCALE}× pay mids (fund pay ladder)"
|
||||
info "pay_phase" "$([ "${LADDER_PAY}" = "1" ] && echo enabled || echo disabled)"
|
||||
|
||||
set_group load
|
||||
section "ladder · load snapshot (before withdraws)"
|
||||
metrics_report_load "$LOAD_BEFORE" "ladder-start" || true
|
||||
# Fresh wallet per rung — baseline empty (or last-rung DB if re-used later)
|
||||
|
|
@ -344,6 +348,7 @@ STOP_REASON=""
|
|||
STOP_AMOUNT=""
|
||||
declare -a RUNG_JSON=()
|
||||
|
||||
set_group withdraw
|
||||
section "ladder · phase A · withdraw (${LADDER_N} rungs)"
|
||||
rung=0
|
||||
for AMT in "$@"; do
|
||||
|
|
@ -787,6 +792,7 @@ done
|
|||
PAY_OK_N=0
|
||||
PAY_FAIL_N=0
|
||||
if [ "${LADDER_PAY}" = "1" ] && [ -n "${PAY_LIST:-}" ] && [ "$FAIL_N_L" -eq 0 ]; then
|
||||
set_group pay
|
||||
section "ladder · phase B · pay"
|
||||
metrics_report_coins "before-pay-ladder" || true
|
||||
# Merchant secret (same as e2e)
|
||||
|
|
@ -1024,6 +1030,7 @@ fi
|
|||
ms_phase=$(python3 -c 'import sys,time; print(int((time.time()-float(sys.argv[1]))*1000))' "$SECTION_T0")
|
||||
|
||||
# --- report ---
|
||||
set_group report
|
||||
section "ladder · report"
|
||||
info "auto-account" "$ACCT_USER"
|
||||
info "ok_rungs" "$OK_N"
|
||||
|
|
@ -1128,6 +1135,7 @@ PY
|
|||
|
||||
wcli balance 2>&1 | tee "$REPORT_DIR/balance-final.out" | tail -20 || true
|
||||
|
||||
set_group load
|
||||
section "ladder · load snapshot (after withdraws)"
|
||||
metrics_report_load "$LOAD_AFTER" "ladder-end" || true
|
||||
if [ -f "$LOAD_BEFORE" ] && [ -f "$LOAD_AFTER" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue