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

run-many crash on packages lacking specified target in 15.1.0 #13223

Closed
Michsior14 opened this issue Nov 17, 2022 · 2 comments · Fixed by #13232
Closed

run-many crash on packages lacking specified target in 15.1.0 #13223

Michsior14 opened this issue Nov 17, 2022 · 2 comments · Fixed by #13232
Assignees
Labels

Comments

@Michsior14
Copy link
Contributor

Current Behavior

If run-many is run with list of packages and some of those packages are lacking the specified target the command ends with fail state.

nx run-many --target=custom-command --projects=products-home-page,products-product-detail-page,cart-cart-page
 >  NX   Ran target custom-command for 3 projects (3ms)
 
    ✔    0/0 succeeded [0 read from cache]
 
    ✖    0/0 targets failed, including the following:
 
 
   View logs and run details at https://nx.app/runs/il2jhazQsG


 >  NX   Cannot find configuration for task products-product-detail-page:custom-command

   Pass --verbose to see the stacktrace.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command

Expected Behavior

The run-many runs on successfully and skips projects without the target as in nx prior 15.1.0.
It's probably caused by #11659.

Expected output:

yarn nx run-many --target=custom-command --projects=products-home-page,products-product-detail-page,cart-cart-page
yarn run v1.22.18
$ nx run-many --target=custom-command --projects=products-home-page,products-product-detail-page,cart-cart-page

 >  NX   the following do not have configuration for "custom-command"

   - products-product-detail-page
   - cart-cart-page


    ✔  nx run products-home-page:custom-command (165ms)

 ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Successfully ran target custom-command for 1 projects (169ms)
 
   View logs and investigate cache misses at https://nx.app/runs/dVRkjIryLr

Done in 0.69s.

Steps to Reproduce

nrwl/nx-examples#243

Failure Logs

Environment

$ nx report

 >  NX   Report complete - copy this into the issue template

   Node : 16.14.2
   OS   : linux x64
   yarn : 1.22.18
   
   nx : 15.1.1
   @nrwl/angular : 15.1.1
   @nrwl/cypress : 15.1.1
   @nrwl/detox : Not Found
   @nrwl/devkit : 15.1.1
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : 15.1.1
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 15.1.1
   @nrwl/js : 15.1.1
   @nrwl/linter : 15.1.1
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : 15.0.2
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 15.1.1
   @nrwl/react-native : Not Found
   @nrwl/rollup : 15.1.1
   @nrwl/schematics : Not Found
   @nrwl/storybook : 15.1.1
   @nrwl/web : 15.1.1
   @nrwl/webpack : 15.1.1
   @nrwl/workspace : 15.1.1
   typescript : 4.8.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
         @ngrx/component-store: 14.0.2
         @ngrx/effects: 14.0.2
         @ngrx/entity: 14.0.2
         @ngrx/router-store: 14.0.2
         @ngrx/store: 14.0.2
         @ngrx/store-devtools: 14.0.2

Done in 0.27s.
@miluoshi
Copy link
Contributor

miluoshi commented Jan 19, 2023

This was broken again in 15.4.3 by this PR. Please reopen the issue

EDIT: created a new bug report here: #14511

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

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

Successfully merging a pull request may close this issue.

4 participants