Version solving stuck in a loop when using poetry update
, potentially accompanied by memory leak
#9482
Labels
poetry update
, potentially accompanied by memory leak
#9482
Description
There is a peculiar runaway loop which I'm trying to pin the cause of. Here are the steps required to reproduce it:
Prepare repo
Lock dependencies
Attempt updating
These two last lines are then repeated infinitely until
poetry
process is killed. The rate is roughly 2 thousand lines of that per second on my 2 year old Macbook Pro. We have observed identical behavior in our Kubernetes environment using Debian-based images, where similar command is issued by Renovate.Importantly Poetry seems to be leaking memory while being stuck in this loop, as we have observed Poetry OOM'ed on a beefy EC2 instance with 32GB of RAM. I haven't been able to reproduce this behavior on MacOS, as the memory use would jump between 300MB and 3.5GB. My memory profiling skills are rusty and my knowledge of Poetry internals is poor, so I don't know if I can provide any further information.
I've been able to reproduce this issue with:
pipx
-installed PoetryWorkarounds
Workaround for this specific issue is pinning all OpenTelemetry packages using Renovate, hence not really related to Poetry.
Poetry Installation Method
pipx, Homebrew
Operating System
MacOS, Debian
Poetry Version
1.8.3, 1.7.0
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
Log trimmed to the initial 3200 lines (doesn't fit in the body of the issue otherwise due to character limits) https://gist.github.com/mishok13/d0039d7152829567da3a6ea1f5b2c7d1
The text was updated successfully, but these errors were encountered: