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 cycle detection in item rep selector #1620

Merged
merged 1 commit into from Nov 15, 2022

Conversation

denisdefreyne
Copy link
Member

@denisdefreyne denisdefreyne commented Nov 14, 2022

Detailed description

This replaces the stack-based dependency cycle detector with one that actually works. See the newly added specs for ItemRepPriorityQueue which demonstrate the #1619 regression.

To do

  • It’s possible for the ItemRepPriorityQueue to yield an item even if it has already been yielded before and marked as OK. This isn’t the worst: it’s still correct, but certainly inefficient. Fix it anyway.

  • (After merge) Update the compilation order documentation on the web site.

Related issues

Fixes #1619.

@denisdefreyne denisdefreyne marked this pull request as ready for review November 14, 2022 19:22
@denisdefreyne denisdefreyne merged commit c316b66 into main Nov 15, 2022
@denisdefreyne denisdefreyne deleted the denis/fix-cycle-detection branch November 15, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DependencyCycle on second compile after 1-change compilation
1 participant