If I set lower limits (CPU or Memory) envtest was not able to create control plane:
2023/01/02 17:49:22 starting test env failed: unable to start control plane itself: failed to start the controlplane. retried 5 times: timeout waiting for process etcd to start successfully (it may have failed to start, or stopped unexpectedly before becoming ready)
Conclusion
I hope it fixes the issue, I'll re-run 5 times the job on this PR and see if it fails, if they are all successful, I assume that fixes the issue.
Closes #32
Attempt to reproduce locally
Tried to limit resources to reproduce the bug with cgroups, but I couldn't.
Setup:
Start shell (run test in that shell):
Monitor (to make sure resources are properly throttled):
If I set lower limits (CPU or Memory) envtest was not able to create control plane:
Conclusion
I hope it fixes the issue, I'll re-run 5 times the job on this PR and see if it fails, if they are all successful, I assume that fixes the issue.
References: