cozystack/hack/e2e-apps
Myasnikov Daniil 428868a3b2
test(e2e-apps): fix vminstance delete-recreate race + bump VM IP/ready timeouts
Two reliability fixes in `hack/e2e-apps/vminstance.bats`:

1. Delete-recreate race. Both @test blocks deleted the prior VMInstance/VMDisk
   with `kubectl ... --timeout=2m || true`. The `|| true` silently swallowed
   timeout errors, letting the test continue with the resource still in
   finalizer-drain. The next `kubectl apply` then no-ops with
   "Detected changes to resource ... which is currently being deleted",
   producing a NotFound on the downstream HR wait. Bumped the delete
   timeout to 3m and removed `|| true` so true delete failures surface
   loudly. End-of-test cleanup deletes also got the explicit timeout.

2. VM IP and VM ready timeouts. The 20s timeout for the VMI to acquire an
   IP was unrealistic for nested KubeVirt under runner load — virt-launcher
   + libvirt + cloud-init DHCP routinely takes 30-60s. Bumped to 120s with
   a 2s poll interval (60 polls instead of 4). VM ready timeout bumped from
   20s to 60s for the same reason.

Both surfaced as recurring first-attempt failures in the past 30 successful
PR runs (7/17 analysable runs in each case) — masked by the 3x retry on
`Run E2E tests`.

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-04-28 12:13:55 +05:00
..
backup.bats.disabled [backups] Add templating of velero backups 2026-01-04 13:31:15 +03:00
bucket.bats [tests] Fix port-forward leak and LB retry off-by-one 2026-03-23 17:33:27 +03:00
clickhouse.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
external-dns.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
foundationdb.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
harbor.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
kafka.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
kubernetes-latest.bats [ci] Refactor testing logic 2025-07-23 14:00:24 +03:00
kubernetes-previous.bats [ci] Refactor testing logic 2025-07-23 14:00:24 +03:00
mariadb.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
mongodb.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
openbao.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
postgres.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
qdrant.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
redis.bats test(e2e-apps): replace fixed sleeps with HelmRelease existence backstop 2026-04-28 00:05:02 +05:00
remediation-guard.sh fix(kubernetes): history guard non-empty check + nits from review 2026-04-16 21:50:10 +03:00
run-kubernetes.sh test(e2e): annotate genuine sleeps with TODO and rationale 2026-04-28 00:07:19 +05:00
vminstance.bats test(e2e-apps): fix vminstance delete-recreate race + bump VM IP/ready timeouts 2026-04-28 12:13:55 +05:00