spawn/sh/e2e/lib/cleanup.sh
Ahmed Abushagur c1e605c884
fix(e2e): increase server sizes and install timeouts (#2014)
E2E tests were failing because agent installs didn't complete within
the default 120s timeout, and small VMs ran out of memory during builds.

- INSTALL_WAIT: 120s → 300s (with per-cloud override via cloud_install_wait)
- AWS: nano_3_0 → medium_3_0 (all agents need 4GB for reliable installs)
- DigitalOcean: s-1vcpu-512mb-10gb → s-2vcpu-2gb, cap at 3 parallel
- GCP: e2-medium → e2-standard-2
- Hetzner: cap at 5 parallel (primary IP limit)
- Sprite: 300s install wait (slower exec than SSH)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
2026-02-28 00:25:36 -08:00

13 lines
467 B
Bash

#!/bin/bash
# e2e/lib/cleanup.sh — Find and destroy stale e2e-* instances (cloud-agnostic)
set -eo pipefail
# ---------------------------------------------------------------------------
# cleanup_stale_apps
#
# Delegates to the active cloud driver's stale cleanup function.
# ---------------------------------------------------------------------------
cleanup_stale_apps() {
log_header "Cleaning up stale e2e instances (${ACTIVE_CLOUD})"
cloud_cleanup_stale
}