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): do not create empty graph when it is not cached #17139

Merged

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented May 22, 2023

Current Behavior

When there's no project graph cached, an invalid and empty project graph is created due to this change 8b1907a#diff-d5bf3c66e62cac1884a071bf07fd1991320a3e62b07bfc03af3b9557b714c892R232. This causes issues because required properties that are expected to exist (e.g. nodes) don't exist in that empty graph object. The nightly pipeline tests failed because of this https://github.com/nrwl/nx/actions/runs/5040378157.

Expected Behavior

The project graph copy should only be created if the project graph is defined and no invalid project graph should be created.

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented May 22, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 11:52am

@nx-cloud
Copy link

nx-cloud bot commented May 22, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e83d5f4. 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.

@leosvelperez leosvelperez merged commit 25328b3 into nrwl:master May 23, 2023
@leosvelperez leosvelperez deleted the core/handle-not-cached-project-graph branch May 23, 2023 07:23
@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 May 29, 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.

2 participants