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(nx): calculate dependencies of other targets #9942

Merged
merged 1 commit into from Apr 27, 2022
Merged

fix(nx): calculate dependencies of other targets #9942

merged 1 commit into from Apr 27, 2022

Conversation

wSedlacek
Copy link
Contributor

@wSedlacek wSedlacek commented Apr 22, 2022

Current Behavior

The task list generated does not include all task for targets when the depends on includes multiple targets ie

      "dependsOn": [
        {
          "target": "build",
          "projects": "dependencies"
        },
        {
          "target": "database",
          "projects": "dependencies"
        },
        {
          "target": "sqs-mock",
          "projects": "dependencies"
        }
      ]

This is a regression since 13.4.6 which I upgraded from when discovering this issue.

Expected Behavior

The task generated should include all task from all of the targets in the depends on.

Fixes: #10028

@nx-cloud
Copy link

nx-cloud bot commented Apr 22, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 2ef4524. 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 13 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Apr 22, 2022

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

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) Apr 22, 2022 at 1:45AM (UTC)

@AgentEnder
Copy link
Member

This would fix #10028, if it is correct + approved.

@FrozenPandaz FrozenPandaz merged commit e3817ef into nrwl:master Apr 27, 2022
@FrozenPandaz
Copy link
Collaborator

Thanks for the contribution! LGTM 🎉

@arabull
Copy link
Contributor

arabull commented May 6, 2022

@AgentEnder It turns out that this only partially fixed #10028. It took care of the situation where there are two targetDependencies and dependent projects have both of them. Before this, only the first dependency would run.

What this does not address is the situation where a dependent project only has the second of the two dependencies. In that situation, that second dependency still doesn't run. In our (fairly extensive) monorepo, this is a common scenario.

I've updated the repo at https://github.com/arabull/nx-deps-not-running to reflect this. That repo offers a very simple reproduction of the problem.

What is the proper protocol? Should I file a new issue for this, or does #10028 need to be reopened?

wSedlacek added a commit to brandingbrand/flagship that referenced this pull request Jul 27, 2022
nrwl/nx#9942

brandingbrand-source-id: f4904b30ffbfd3d0847b0a732f95f1b3099fe6c7
wSedlacek added a commit to brandingbrand/flagship that referenced this pull request Jul 27, 2022
nrwl/nx#9942

brandingbrand-source-id: f4904b30ffbfd3d0847b0a732f95f1b3099fe6c7
wSedlacek added a commit to brandingbrand/flagship that referenced this pull request Jul 27, 2022
nrwl/nx#9942

brandingbrand-source-id: f4904b30ffbfd3d0847b0a732f95f1b3099fe6c7
wSedlacek added a commit to brandingbrand/flagship that referenced this pull request Jul 29, 2022
nrwl/nx#9942

brandingbrand-source-id: f4904b30ffbfd3d0847b0a732f95f1b3099fe6c7
wSedlacek added a commit to brandingbrand/flagship that referenced this pull request Jul 29, 2022
nrwl/nx#9942

brandingbrand-source-id: f4904b30ffbfd3d0847b0a732f95f1b3099fe6c7
branderbot pushed a commit to brandingbrand/flagship that referenced this pull request Aug 2, 2022
nrwl/nx#9942

brandingbrand-source-id: f4904b30ffbfd3d0847b0a732f95f1b3099fe6c7
@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 18, 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.

Not all targetDependencies execute
4 participants