Skip to content
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

Fix resolver hangs when dealing with an incomplete lockfile #6552

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

While working on locking multiple platforms by default, I got an infinite resolution loop in one of our resolver specs.

The culprit ended up being that when dealing with lockfile specs with incomplete dependencies (spec appears in lockfile, but its dependencies don't), those specs were not being properly expired and that tripped up resolution.

The issue for some reason only manifests when dealing with multiple lockfile platforms, that's why it only manifested when working on locking multiple platforms by default.

What is your fix for the problem, implemented in this PR?

Properly expire lockfile specs incomplete in the way explained above, so that resolver does not get confused.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/more-definition-fixes branch from af8a1ba to 4ce9d0b Compare March 27, 2023 14:33
While working on locking multiple platforms by default, I got an
infinite resolution loop in one of our resolver specs.

The culprit ended up being that when dealing with lockfile specs with
incomplete dependencies (spec appears in lockfile, but its dependencies
don't), those specs were not being properly expired and that tripped up
resolution.

The issue for some reason only manifests when dealing with multiple
lockfile platforms, that's why it only manifested when working on
locking multiple platforms by default.
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/more-definition-fixes branch from 4ce9d0b to 4ca7291 Compare March 28, 2023 10:07
@deivid-rodriguez deivid-rodriguez added this pull request to the merge queue Mar 30, 2023
Merged via the queue into master with commit 70ee041 Mar 30, 2023
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/more-definition-fixes branch March 30, 2023 11:37
deivid-rodriguez added a commit that referenced this pull request Apr 10, 2023
…on-fixes

Fix resolver hangs when dealing with an incomplete lockfile

(cherry picked from commit 70ee041)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant