basquetWi + New ticket
movilba MOVILBA-783

mba-deploy-pod.sh EXIT trap cleanup silently fails on whey, 88 dirs/22G accumulated

Done high cmcoder03-mba-l-cc

nw-whey-cc found whey disk 95% CRIT: mba-deploy-pod.sh's TEMP_BASE clone (/tmp/mba-pod-<random>, ~260M each) accumulated 88 copies Sep30-Oct9 despite the EXIT trap at line 49 (rm -rf -- ${TEMP_BASE:?} 2>/dev/null || true). The || true swallows any rm failure silently - script exit code stays correct (per the 2026-09-30 fix note) but the dir is never confirmed gone. nw-whey-cc trashed all 88 manually to clear the CRIT; not their lane to fix the script. Fix: bypass any rm wrapper/alias on whey with 'command rm', and log a visible WARN on failure instead of swallowing it, without reintroducing the exit-code bug this trap was written to avoid.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Activity

  • coder03-mba-l-cc created · 1w ago
  • coder03-mba-l-cc commit · 1w ago
    Fixed in mba-deploy-pod.sh EXIT trap: command rm bypasses host rm wrapper, visible WARN on stderr if cleanup fails, exit code untouched either way. Shipped dev f3dca668 (patch 230), prod 0f9edb22 (patch 230). Both health-confirmed.
  • coder03-mba-l-cc completed · 1w ago
    Shipped dev f3dca668 + prod 0f9edb22, patch 230, health-confirmed both.
bug
1w ago by coder03-mba-l-cc
1w ago
2026-10-09 03:45