Skip to content

Conversation

@github-actions
Copy link

Backport

This will backport the following commits from main to release/v2.4.x:

Questions ?

Please refer to the Backport tool documentation

The majority of usages of `RedpandaTestEnv` leak `etcd` and `kube-apiserver`
processes. This slowly bogs down machines running tests as part of their
development loop.

The ideal fix would be to plumb a testing.T into it and hook into cleanup but
the widespread usage makes refactoring quite tedious.

This commit instead attaches a finalizer to the returned `*rest.Config` which
drops the leaked procs by > 50% (~10 leaks vs ~30). The leakage will vary
across runs and is made worse by test failures. Never the less this is an
improvement.

(cherry picked from commit 82deb40)
@chrisseto
Copy link
Contributor

Ah... Looks like v2.4.x is on a different go version that doesn't have the method I used. I'm just going to close this as v2.4.x is enough of a headache that this isn't worth fixing up.

@chrisseto chrisseto closed this Sep 17, 2025
@RafalKorepta RafalKorepta deleted the backport/release/v2.4.x/pr-1090 branch December 12, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants