summaryrefslogtreecommitdiff
path: root/bin/android-launch-check
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-09-21 19:22:54 +0000
committerClaude <noreply@anthropic.com>2026-09-21 19:22:54 +0000
commit35fd5e07e4a2554f62ed350b9d193a255901ce02 (patch)
tree40a36a4edacf705e98efe03bcb5db7fec9e2f7e3 /bin/android-launch-check
parent97e9b5e6f18705666b9d622b9eab0b31836321ba (diff)
publish-apk: cap the backups it creates
Four publishes in one evening left 448MB of .bak copies of a 112MB APK, in a public web directory. A backup policy with no retention becomes the problem it was guarding against. Keeps the two most recent, configurable with --keep. Prunes before copying, so a failed publish doesn't skip the pruning as well. The first version of the test gave all four fixture backups the same mtime, so 'ls -t' ordered them arbitrarily and 'keeps the most recent' proved nothing -- it only failed because the arbitrary order happened to go the wrong way. Worth recording: a test that passes for the wrong reason is the same class of problem as the dead code these guards exist to catch. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018AwnALZL6bD4VBtATDVv3B
Diffstat (limited to 'bin/android-launch-check')
0 files changed, 0 insertions, 0 deletions