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

feat(misc): add alternative implementation to calculate buildable dependencies using the task graph #18125

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Jul 14, 2023

This PR introduces a way to calculate the buildable dependencies for incremental builds scenarios using the task graph. It's disabled by default and can be enabled setting the NX_BUILDABLE_LIBRARIES_TASK_GRAPH=true environment variable. This will allow us to test it first and identify potential gaps or issues that could break current setups. When we're happy with it, we'll turn it on by default and eventually, we'll remove the old implementation.

Current Behavior

Nx executors supporting incremental builds require the dependencies to have a build target with the same name as the initial project's build target name.

Expected Behavior

Nx executors supporting incremental builds should use the task graph information, which contains the dependencies between targets. This is more reliable and eliminates the need to name the targets with the same name.

Related Issue(s)

Fixes #17764

@leosvelperez leosvelperez self-assigned this Jul 14, 2023
@vercel
Copy link

vercel bot commented Jul 14, 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 Jul 19, 2023 9:10am

@nx-cloud
Copy link

nx-cloud bot commented Jul 14, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 8c73203. 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 force-pushed the js/calculate-deps-using-task-graph branch from e29f765 to 8c73203 Compare July 19, 2023 09:07
@leosvelperez leosvelperez changed the title feat(js): add alternative implementation to calculate buildable dependencies using the task graph feat(misc): add alternative implementation to calculate buildable dependencies using the task graph Jul 19, 2023
@leosvelperez leosvelperez marked this pull request as ready for review July 19, 2023 10:01
@leosvelperez leosvelperez requested review from a team as code owners July 19, 2023 10:01
@jaysoo jaysoo merged commit ca5e673 into nrwl:master Jul 19, 2023
@leosvelperez leosvelperez deleted the js/calculate-deps-using-task-graph branch July 20, 2023 07:08
@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 Jul 26, 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.

js:tsc executor fails when run in a target not named "build"
2 participants