cozystack/hack/e2e-apps
Aleksei Sviridkin f87834a3ed
fix(hack): group e2e remediation guard conditions correctly
Shell && and || have equal precedence and left-to-right associativity,
so the previous guard parsed as (((A && B) || C) && D) and silently
passed on the canonical failure mode: install_failures=1 with an empty
upgrade_failures.

Extract the check into helmrelease_has_remediation_cycle() in a
dedicated helper sourced from run-kubernetes.sh, and add unit tests
under hack/remediation-guard.bats that pin the expected behavior for
every combination of empty, zero, and positive counter values.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-04-16 20:48:47 +03: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 [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
external-dns.bats feat(extra): add external-dns as standalone extra package 2026-03-10 12:48:01 +01:00
foundationdb.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
harbor.bats fix(harbor): include tenant domain in default hostname and add E2E cleanup 2026-02-18 02:07:38 +03:00
kafka.bats [tests] Fix Kafka E2E test timeout and retry race condition 2026-04-08 17:32:50 +03: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 [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
mongodb.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
openbao.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
postgres.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
qdrant.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
redis.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
remediation-guard.sh fix(hack): group e2e remediation guard conditions correctly 2026-04-16 20:48:47 +03:00
run-kubernetes.sh fix(hack): group e2e remediation guard conditions correctly 2026-04-16 20:48:47 +03:00
vminstance.bats [tests] Fix review findings: vminstance pre-cleanup, indentation, --ignore-not-found 2026-03-23 17:42:23 +03:00