Commit cd930b9
Fix frontend health check timing issue in smoke tests (#454)
## Summary
Fixes the intermittent frontend health check failures in smoke tests by
addressing a race condition between pod readiness and NodePort service
routing.
## Problem
PR #453 and potentially other PRs were failing with:
```
✗ Frontend not responding
```
Even though:
- Pods showed as `Running` and `Ready`
- All readiness probes passed
- The frontend was actually working
This was a timing issue: the smoke test ran immediately after pods
became Ready, but NodePort service endpoint propagation can lag slightly
behind pod readiness state.
## Solution
1. **Added explicit pod readiness wait** using `kubectl wait
--for=condition=ready`
2. **Implemented retry logic** for health checks (5 attempts with 2s
delays)
3. **Fixed deployment timeout handling** in GitHub Actions to properly
fail the job
## Testing
The fix has been tested on branch `fix-frontend-smoke-test-timing` and
successfully addresses the timing issue.
## Related Issues
- Fixes failures from:
https://github.com/ambient-code/platform/actions/runs/20064017469/job/57547783304
- Will allow PR #453 and other PRs to pass smoke tests reliably
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent cd9577b commit cd930b9
2 files changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
360 | 362 | | |
361 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
362 | 371 | | |
363 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
364 | 380 | | |
365 | 381 | | |
366 | 382 | | |
| |||
0 commit comments