You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: retry on conflict in test helper to fix flaky integration test (#244)
## Summary
- `setHealthyDeploymentStatus` in the integration test helper does a
`Get` followed by `Status().Update()`. Between these calls, the
controller's reconcile loop can modify the same Deployment (e.g. rolling
update for the custom-build test), bumping the `resourceVersion` and
causing a conflict error that fails the test.
- Wraps the Get+Update in `retry.RetryOnConflict` (standard k8s
optimistic concurrency pattern) so the helper re-fetches and retries on
conflict instead of fatally failing.
- This fixes the flaky
`manual-rollout-custom-build-expect-rolling-update` integration test
that was consistently failing in CI but passing locally.
## Test plan
- [x] Full integration test suite passes locally (34/34 tests)
- [x] Unit tests unaffected
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments