-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry relies on tomlkit 0.11.{2/3}
which has a memory leak
#6144
Comments
Can you check if it's related to the tomlkit version? |
Hi @radoering, Thanks for the response! I will take a look at this soon. |
Hey hey! Another data point: this is triggering in bitbucket pipelines with a step that has a 1GB memory limit for the docker service. I can also recreate it reliably locally using plain Watch along with In my testing, using |
I noticed that there's a new bugfix release of tomlkit (0.11.3) about 30 mins ago but it hasn't made any difference here |
If it's a regression in tomlkit, you should probably open an issue at https://github.com/sdispater/tomlkit/issues. |
Downgrading tomlkit (0.11.3) to 0.11.1 seems to alleviate the issue! They should release a new version soon! Can we exclude tomlkit |
0.11.{2/3}
which has a memory leak
Theoretically yes, but it would only work on the master branch version since I doubt this would be enough for another release to be made. |
This is now fixed with tomlkit https://github.com/sdispater/tomlkit/releases/tag/0.11.4.
While it may not be enough for another release, it could go out with the next. |
I agree that we should exclude tomlkit 0.11.2 and 0.11.3. Just created a PR. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Issue
TL;DR:
poetry export
now seems to use 5x+ more memory than it used to.In a CircleCI workflow, we run
poetry export
. This has worked for months, but sometime between Friday (8/5/2022) and Monday (8/8/2022) morning, something changed and causedpoetry export
to use significantly more memory.Using this cimg/python:3.9 docker image which has poetry 1.1.13 installed, we install poetry 1.1.14 using
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3 - --version 1.1.14
.Then running
poetry export
produces the following allocations (using https://github.com/bloomberg/memray):Workaround attempts:
poetry update self
results in the same OOM.1.1.13
and installing1.1.14
.Running the same workflow on this cimg/python:3.10 docker image which has poetry
1.1.14
runs which much smaller allocation:The text was updated successfully, but these errors were encountered: