Hi guys,
I hope you can help me with the issue we’ve faced :)
We use pants 2.7.0 for our mono repo with about 20+ projects and since we switched from managed Github Actions runners to self-hosted we notice that pants is consuming a lot of memory to run python_tests.
When the limit was 4Gib the pods were often killed. Since then we’ve increased the limit to 8Gib and now it looks pretty stable, but sometimes the consumption goes as high as 85%=~7Gib and as the codebase is going to grow together with the tests, I have some concerns.
I believe we face a combination of
https://github.com/pantsbuild/pants/issues/12662 and
https://github.com/kubernetes/kubernetes/issues/43916 here, and there are a few workarounds around this issue, but maybe I’m missing/misconfigured something on the pants side as well.
I would appreciate any help :)