cozystack/.github/workflows
Kirill Ilin dfe16ed9b4
[tests] Stabilize E2E kubernetes tests (#2262)
## 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 -->
2026-03-26 18:57:14 +05:00
..
auto-release.yaml fix(ci): remove GITHUB_TOKEN extraheader to trigger workflows 2026-01-02 21:10:12 +01:00
backport.yaml [ci] Update korthout/backport-action@v3.2.1 2025-12-09 14:34:37 +01:00
pre-commit.yml [docs] Update cozyvalues-gen 2026-03-25 15:59:22 +05:00
pull-requests-release.yaml fix(ci): ensure correct latest release after backport publishing 2026-01-04 10:31:31 +01:00
pull-requests.yaml [ci] Add timeout-minutes to Build and E2E jobs 2026-03-23 20:40:45 +03:00
retest.yaml feat(ci): add /retest command to rerun tests from Prepare environment 2026-01-02 21:23:27 +01:00
tags.yaml [docs] Changed update website docs job to push model 2026-03-25 15:57:25 +05:00
update-releasenotes.yaml [workflow] Add GitHub Action to update release notes from changelogs 2025-12-24 15:02:04 +01:00