Duplicate writes when using travis_retry on non-idempotent shell commands
When using the travis_retry helper to handle transient failures, the goal is to retry a failing shell command without causing duplicate side effects from non‑idempotent operations such as database writes, file appends, or external API calls. The helper retries the entire process but does not wrap the command in a transaction, roll back partial changes, or pr