mirror of
https://github.com/cozystack/cozystack.git
synced 2026-10-30 16:47:20 +09:00
## What this PR does Reduces flakiness in E2E tests by addressing the most common failure modes. ### Kubernetes tenant tests (`run-kubernetes.sh`) - Increase node Ready timeout from 2m to 5m — CI runners are shared and resource-constrained - Fail fast when nodes are not Ready — saves ~7 minutes per failed attempt by not running LB/NFS tests that will also fail - Delete stale Kubernetes resources at test start — retries provision from scratch instead of patching stuck state - Wait for port-forward to be ready before using it (fixes race condition) - Reduce version check polling interval from 5s to 1s ### All app tests (postgres, redis, kafka, clickhouse, mariadb, mongodb, qdrant, foundationdb, openbao, vminstance, bucket) - Add pre-cleanup of stale resources from previous failed retries so each attempt starts clean ### Test runner (`cozytest.sh`) - Clean up temp directory on test failure (was only cleaned on success, leaking `/tmp` dirs) ### Release note ```release-note NONE ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Improved e2e robustness by deleting stale resources before creation (ignore-if-missing, bounded time) and killing leftover port-forwards. * Added an exit cleanup to consistently remove temporary artifacts and teardown port-forwards on any exit. * Added readiness polling for forwarded endpoints (curl with timeout); made API/version retries more responsive. * Extended node readiness wait (2m → 5m), dump debug info and fail fast if unready. * Made load‑balancer reachability checking explicit and more reliable. <!-- end of auto-generated comment: release notes by coderabbit.ai -->