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(core): issue with registering file dependencies #15523

Merged

Conversation

forivall
Copy link
Contributor

@forivall forivall commented Mar 8, 2023

Current Behavior

Files wont have all the dependencies in the project graph

Expected Behavior

Files are once again reported with the correct dependencies in the project graph

Related Issue(s)

When i encountered the issue was having inconsistent (race-condition) behaviour based on the execution of the dependency analysis workers, so I didnt want to create a repro right out of the gate, so no issue, unfortunately. Now that I know the root cause, i can create a reproduction if desired, but I think the unit test is sufficient. This may fix some linting bugs.

Fixes #

@vercel
Copy link

vercel bot commented Mar 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 8, 2023 at 9:34PM (UTC)

@nx-cloud
Copy link

nx-cloud bot commented Mar 8, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e505bbf. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@forivall forivall force-pushed the fix-race-condition-error-in-project-graph branch from 19d735d to e505bbf Compare March 8, 2023 21:30
@forivall
Copy link
Contributor Author

forivall commented Mar 8, 2023

Added a unit test which fails without the fix, and is fixed by the fix.

Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! LGTM! 🎉

@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants