nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.27k stars 2.32k forks source link

pnpm nxpm appearing in github actions nxcloud CI.YML work flow runs & failures #11081

Closed nhhockeyplayer closed 2 years ago

nhhockeyplayer commented 2 years ago

SUBJECT: @pnpm and @nxpm/stack appearing in github actions nxcloud CI.YML work flow runs & failures

Current Behavior

All I did was push to my github actions repo and the CY.yml file kicked off for a workflow run.

Workflow run is failing with unknown packages operating CI workflow namely

Expected Behavior

Build should not be failing in some remote unknown package that somehow has been integrated to Nx. Its not like we are operating next or alpha or beta. real developers are operating real production instances live in the field.

would be nice if build succeeded... also receiving endsWith failure in the log... whats the deal with that inside nxpm/node_modules/nx ???

Steps to Reproduce

goto my pipeline and rerun CI.yml workflow

### Failure Logs
un if [ "true" == "true" ]; then
  if [ "true" == "true" ]; then
    echo "Running yarn install --frozen-lockfile"
    yarn install --frozen-lockfile
  elif [ "false" == "true" ]; then
    echo "Running pnpm install --frozen-lockfile"
    pnpm install --frozen-lockfile
  else
    echo "Running npm ci"
    npm ci
  fi
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    NX_CLOUD_DISTRIBUTED_EXECUTION: true
    NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT: 3
    NX_BRANCH: main
    NX_CLOUD_ACCESS_TOKEN: 
    NX_CLOUD_AUTH_TOKEN: 
    NX_BASE: 8eda8fdc0776c5cc696511d6fb3977[2](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:2)44e8b9d1d
    NX_HEAD: b52a[3](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:3)a16337e55eeabe00c6572f87[4](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:4)92ac[5](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:5)e2549
    VOLTA_HOME: /opt/hostedtoolcache/volta/1.0.8/x[6](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:6)4
Running yarn install --frozen-lockfile
yarn install v1.22.19
warning package.json: "dependencies" has dependency "@storybook/angular" with range "^6.5.9" that collides with a dependency in "devDependencies" of the same name with version "6.5.9"
warning package.json: "dependencies" has dependency "@storybook/core-server" with range "^6.5.9" that collides with a dependency in "devDependencies" of the same name with version "6.5.9"
warning package.json: "dependencies" has dependency "@types/passport-local" with range "^1.0.34" that collides with a dependency in "devDependencies" of the same name with version "^1.0.33"
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning @nhhockeyplayer/meanstacknh@0.0.0: "dependencies" has dependency "@storybook/angular" with range "^6.5.9" that collides with a dependency in "devDependencies" of the same name with version "6.5.9"
warning @nhhockeyplayer/meanstacknh@0.0.0: "dependencies" has dependency "@storybook/core-server" with range "^6.5.9" that collides with a dependency in "devDependencies" of the same name with version "6.5.9"
warning @nhhockeyplayer/meanstacknh@0.0.0: "dependencies" has dependency "@types/passport-local" with range "^1.0.34" that collides with a dependency in "devDependencies" of the same name with version "^1.0.33"
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["cors@latest"] is trying to unpack in the same destination "/home/runner/.cache/yarn/v6/npm-cors-2.8.5-integrity/node_modules/cors" as pattern ["cors@2.8.5","cors@~2.8.5"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["object-assign@latest"] is trying to unpack in the same destination "/home/runner/.cache/yarn/v6/npm-object-assign-4.1.1-integrity/node_modules/object-assign" as pattern ["object-assign@^4","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.0.1","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.1.1","object-assign@^4.0.1","object-assign@^4","object-assign@^4.0.1"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["send@latest"] is trying to unpack in the same destination "/home/runner/.cache/yarn/v6/npm-send-0.18.0-integrity/node_modules/send" as pattern ["send@0.18.0","send@0.18.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@schematics/angular@latest"] is trying to unpack in the same destination "/home/runner/.cache/yarn/v6/npm-@schematics-angular-14.0.5-integrity/node_modules/@schematics/angular" as pattern ["@schematics/angular@~14.0.0","@schematics/angular@14.0.5"]. This could result in non-deterministic behavior, skipping.
warning require@2.4.20: The engine "browsers" appears to be invalid.
[3/4] Linking dependencies...
warning " > @ionic-native/android-permissions@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/app-center-analytics@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/app-center-crashes@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/app-version@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/background-mode@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/call-number@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/core@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/deeplinks@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/document-viewer@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/file@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/file-opener@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/file-path@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/file-transfer@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/fingerprint-aio@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/in-app-browser@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/insomnia@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/local-notifications@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/native-storage@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/network@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/qr-scanner@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/sms-retriever@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/splash-screen@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/status-bar@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @ionic-native/vibration@5.36.0" has incorrect peer dependency "rxjs@^5.5.0 || ^6.5.0".
warning " > @nestifyjs/cookie@0.1.0" has incorrect peer dependency "@nestjs/common@^6.10.9".
warning " > @nestifyjs/cookie@0.1.0" has incorrect peer dependency "@nestjs/core@^6.10.9".
warning " > @nestifyjs/cookie@0.1.0" has unmet peer dependency "fastify@^2.11.0".
warning " > @nestifyjs/cookie@0.1.0" has incorrect peer dependency "rxjs@^6.5.3".
warning " > @ngrx/component@14.0.1" has incorrect peer dependency "rxjs@^6.5.3 || ^[7](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:7).5.0".
warning " > @ngrx/component-store@14.0.1" has incorrect peer dependency "rxjs@^6.5.3 || ^7.5.0".
warning " > @ngrx/effects@14.0.1" has incorrect peer dependency "rxjs@^6.5.3 || ^7.5.0".
warning " > @ngrx/entity@14.0.1" has incorrect peer dependency "rxjs@^6.5.3 || ^7.5.0".
warning " > @ngrx/router-store@14.0.1" has incorrect peer dependency "rxjs@^6.5.3 || ^7.5.0".
warning " > @ngrx/store@14.0.1" has incorrect peer dependency "rxjs@^6.5.3 || ^7.5.0".
warning "@nrwl/angular > jasmine-marbles@0.[8](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:8).4" has incorrect peer dependency "rxjs@^6.5.3".
warning "@nrwl/angular > rxjs-for-await@0.0.2" has incorrect peer dependency "rxjs@^6.0.0".
warning "@nrwl/schematics > @nrwl/workspace@8.12.11" has incorrect peer dependency "prettier@^1.18.2".
warning "@nrwl/schematics > @nrwl/angular > @nrwl/cypress@8.12.11" has incorrect peer dependency "cypress@^3.8.2".
warning "@nrwl/schematics > @nrwl/angular > @nrwl/cypress > @cypress/webpack-preprocessor@4.1.5" has incorrect peer dependency "webpack@^4.18.1".
warning " > @nxtend/capacitor@13.0.0" has incorrect peer dependency "@nrwl/workspace@^13.0.0".
warning " > @nxtend/ionic-angular@13.1.0" has incorrect peer dependency "@nrwl/angular@^13.0.0".
warning " > @storybook/angular@6.5.[9](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:9)" has unmet peer dependency "@angular-devkit/architect@>=0.8.9".
warning " > @storybook/angular@6.5.9" has unmet peer dependency "@babel/core@*".
warning "@storybook/builder-webpack5 > @storybook/router@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/router@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/theming@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/theming@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/manager-webpack5 > @storybook/core-client@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/manager-webpack5 > @storybook/core-client@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning " > @storybook/core-server@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning " > @storybook/core-server@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/client-api@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/client-api@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/preview-web@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/preview-web@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/manager-webpack5 > @storybook/ui@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/manager-webpack5 > @storybook/ui@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @babel/plugin-transform-react-jsx@7.18.6" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/builder-webpack5 > @storybook/components@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@storybook/builder-webpack5 > @storybook/components@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning " > angular-builder-custom-terser-options@1.0.1" has incorrect peer dependency "@angular-devkit/build-angular@^0.13.2".
warning " > angular-builder-custom-terser-options@1.0.1" has incorrect peer dependency "@angular/compiler-cli@^7.2.5".
warning " > angular-builder-custom-terser-options@1.0.1" has incorrect peer dependency "@angular/compiler@^7.2.5".
warning " > angular-builder-custom-terser-options@1.0.1" has incorrect peer dependency "@angular/core@^7.2.5".
warning " > angular-builder-custom-terser-options@1.0.1" has unmet peer dependency "terser-webpack-plugin@^1.2.2".
warning " > apollo-server-core@3.9.0" has unmet peer dependency "graphql@^15.3.0 || ^16.0.0".
warning "apollo-server-core > @apollo/utils.usagereporting@1.0.0" has unmet peer dependency "graphql@14.x || 15.x || 16.x".
warning "apollo-server-core > @apollographql/apollo-tools@0.5.4" has unmet peer dependency "graphql@^14.2.1 || ^15.0.0 || ^16.0.0".
warning "apollo-server-core > @graphql-tools/mock@8.7.0" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0".
warning "apollo-server-core > @graphql-tools/schema@8.5.0" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0".
warning "apollo-server-core > apollo-server-errors@3.3.1" has unmet peer dependency "graphql@^15.3.0 || ^16.0.0".
warning "apollo-server-core > apollo-server-plugin-base@3.6.1" has unmet peer dependency "graphql@^15.3.0 || ^16.0.0".
warning "apollo-server-core > apollo-server-types@3.6.1" has unmet peer dependency "graphql@^15.3.0 || ^16.0.0".
warning "apollo-server-core > graphql-tag@2.12.6" has unmet peer dependency "graphql@^0.9.0 || ^0.[10](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:10).0 || ^0.[11](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:11).0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0".
warning "apollo-server-core > @apollo/utils.usagereporting > @apollo/utils.dropunuseddefinitions@1.1.0" has unmet peer dependency "graphql@14.x || 15.x || 16.x".
warning "apollo-server-core > @apollo/utils.usagereporting > @apollo/utils.printwithreducedwhitespace@1.1.0" has unmet peer dependency "graphql@14.x || 15.x || 16.x".
warning "apollo-server-core > @apollo/utils.usagereporting > @apollo/utils.removealiases@1.0.0" has unmet peer dependency "graphql@14.x || 15.x || 16.x".
warning "apollo-server-core > @apollo/utils.usagereporting > @apollo/utils.sortast@1.1.0" has unmet peer dependency "graphql@14.x || 15.x || 16.x".
warning "apollo-server-core > @apollo/utils.usagereporting > @apollo/utils.stripsensitiveliterals@1.2.0" has unmet peer dependency "graphql@14.x || 15.x || 16.x".
warning "apollo-server-core > @graphql-tools/mock > @graphql-tools/utils@8.8.0" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0".
warning "apollo-server-core > @graphql-tools/schema > @graphql-tools/merge@8.3.0" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0".
warning " > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2".
warning " > nestjs-typegoose@7.1.38" has incorrect peer dependency "@nestjs/common@^6.10.1 || ^7.0.0".
warning " > nestjs-typegoose@7.1.38" has incorrect peer dependency "@nestjs/core@^6.10.1 || ^7.0.0".
warning " > nestjs-typegoose@7.1.38" has incorrect peer dependency "@typegoose/typegoose@^6.2.1 || ^7.0.0".
warning " > nestjs-typegoose@7.1.38" has incorrect peer dependency "mongoose@^5.10.6".
warning " > ng2-pdf-viewer@9.0.0" has unmet peer dependency "pdfjs-dist@~2.[13](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:13).216".
warning " > ngrx-store-logger@0.2.4" has incorrect peer dependency "@ngrx/store@^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0".
warning " > @ngrx/store-devtools@[14](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:14).0.1" has incorrect peer dependency "rxjs@^6.5.3 || ^7.5.0".
warning "nxpm > @angular/compiler-cli@9.1.13" has incorrect peer dependency "typescript@>=3.6 <3.9".
warning "@nxpm/stack > @nrwl/angular > @nrwl/cypress@11.6.3" has incorrect peer dependency "cypress@>= 3 < 7".
warning " > @storybook/addon-essentials@6.5.9" has unmet peer dependency "@babel/core@^7.9.6".
warning "@storybook/addon-essentials > @storybook/addon-docs > @mdx-js/react@1.6.22" has unmet peer dependency "react@^[16](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:16).13.1 || ^[17](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:17).0.0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @storybook/source-loader@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^[18](https://github.com/nhhockeyplayer/meanstacknh/runs/7255469027?check_suite_focus=true#step:15:18).0.0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @storybook/source-loader@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning " > @storybook/builder-webpack5@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning " > @storybook/builder-webpack5@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning " > @storybook/manager-webpack5@6.5.9" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning " > @storybook/manager-webpack5@6.5.9" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0 || ^18.0.0".
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
error /home/runner/work/meanstacknh/meanstacknh/node_modules/nxpm/node_modules/nx: Command failed.
Exit code: 1
Command: node ./bin/init
Arguments: 
Directory: /home/runner/work/meanstacknh/meanstacknh/node_modules/nxpm/node_modules/nx
Output:
>  NX   Cannot read properties of undefined (reading 'endsWith')
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Process completed with exit code 1.
0s
0s
0s
0s
0s
0s
0s
1s
0s
0s

Environment

nx report

 >  NX   Report complete - copy this into the issue template

   Node : 16.15.1
   OS   : darwin x64
   npm  : 8.11.0

   nx : 14.4.2
   @nrwl/angular : 14.4.2
   @nrwl/cypress : 14.4.2
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.4.2
   @nrwl/eslint-plugin-nx : 14.4.2
   @nrwl/express : 14.4.2
   @nrwl/jest : 14.4.2
   @nrwl/js : 14.4.2
   @nrwl/linter : 14.4.2
   @nrwl/nest : 14.4.2
   @nrwl/next : Not Found
   @nrwl/node : 14.4.2
   @nrwl/nx-cloud : 14.2.0
   @nrwl/nx-plugin : Not Found
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/schematics : 8.12.11
   @nrwl/storybook : 14.4.2
   @nrwl/web : 14.4.2
   @nrwl/workspace : 14.4.2
   typescript : 4.7.4
   ---------------------------------------
   Community plugins:
     @fortawesome/angular-fontawesome: 0.11.1
     @ionic/angular: 6.1.13
     @ngrx/component: 14.0.1
     @ngrx/component-store: 14.0.1
     @ngrx/effects: 14.0.1
     @ngrx/entity: 14.0.1
     @ngrx/router-store: 14.0.1
     @ngrx/store: 14.0.1
     @nxtend/capacitor: 13.0.0
     @nxtend/ionic-angular: 13.1.0
     @storybook/angular: 6.5.9
     angular-builder-custom-terser-options: 1.0.1
     @compodoc/compodoc: 1.1.19
     @ngrx/schematics: 14.0.1
     @ngrx/store-devtools: 14.0.1
     @nxpm/stack: 4.21.0
     @nxtend/capacitor: 13.0.0
     @storybook/angular: 6.5.9
nhhockeyplayer commented 2 years ago

Okay...

it appears when @nxpm and @nxmp/stack (good stuff btw if it were stable and universal its operating the nx brand and rightfully should be air tight like anything else hitting the public production domain) wipes out my github actions work flows when its installed globally and inside my Nx monorepo project upon subsequent PR to my build pipeline

I removed global and local project installations of @nxpm and @nxpm/stack...

I am going to close this. And I hope Nx does not continue to get impeded/interfered with like this anymore.

github-actions[bot] commented 1 year ago

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.