-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(core): invalidate sync generator cache on file changes and use up-to-date project graph #33780
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit 0862da5
☁️ Nx Cloud last updated this comment at |
…-to-date project graph
1a12add to
0862da5
Compare
| const { projects } = | ||
| readProjectsConfigurationFromProjectGraph(projectGraph); | ||
| // Fetch the latest graph instead of using the captured one which might be stale | ||
| const { projectGraph: latestGraph, error } = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The projectGraph has been used plenty in this function... wouldn't those also be outdated? What is sending this function an outdated graph?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, I get it now
| const { projects } = | ||
| readProjectsConfigurationFromProjectGraph(projectGraph); | ||
| // Fetch the latest graph instead of using the captured one which might be stale | ||
| const { projectGraph: latestGraph, error } = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, I get it now
|
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. |
Current Behavior
Sync generators are processed in the background by the daemon server. Their results are cached and reprocessed when the project graph is recomputed. There are currently two issues:
Expected Behavior
Getting sync generators changes should always return up-to-date information.