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: support errors with circular dependencies in object values with --parallel #5212

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JoshuaKGoldberg
Copy link
Member

PR Checklist

Overview

Only calling breakCircularDeps on result.error means any circular references in other properties of result still go through. SerializableEvent._serialize can generally visit them fine, but they still end up being infinitely added to pairs. This PR adds a seenPairs Set to make sure they only get serialized once each.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as draft September 12, 2024 11:25
@JoshuaKGoldberg
Copy link
Member Author

The test failures on Node 22 happen for me locally on main too. Filed #5213.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review September 12, 2024 12:22
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.

🐛 Bug: infinite loop in parallel tests with uncaught error containing circular dependency
1 participant