Skip to content

fix(monolith): close CD probe Kubernetes clients - #6976

Merged
jomcgi merged 1 commit into
mainfrom
fix/deployment-observation-client-cleanup
Oct 16, 2026
Merged

jomcgi merged 1 commit into
mainfrom
fix/deployment-observation-client-cleanup

Conversation

@jomcgi

@jomcgi jomcgi commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Deployment-observation recording and the adjacent chart-lag poll each allocated a KubernetesClient without closing it. Repeated polls could leave aiohttp sessions and connectors unclosed, matching the reported warnings.

Close both poll-scoped clients in finally blocks, including failure and cancellation paths. Per-app write failure isolation is preserved. This fixes a demonstrated lifecycle leak; it does not establish the cause of the backend exit-code-1 restarts or change uncertain factory permits.

Validation: 43 CD-health tests pass locally. New success, read/collection failure, and cancellation regression cases failed before each fix. The existing per-app persistence failure test now also asserts cleanup. Formatting and git diff checks passed. Full repository CI and live rollout remain pending. The coordinating thread owns merging.

@jomcgi

jomcgi commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator Author

Helm Manifest Diff

No manifest changes detected across 17 application(s).

@jomcgi
jomcgi marked this pull request as ready for review October 16, 2026 05:20
@jomcgi
jomcgi added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit 9d976a4 Oct 16, 2026
2 checks passed
@jomcgi
jomcgi deleted the fix/deployment-observation-client-cleanup branch October 16, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant