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

Bug in build-project-graph.ts leads to broken CI builds #9801

Closed
gneu77 opened this issue Apr 12, 2022 · 1 comment
Closed

Bug in build-project-graph.ts leads to broken CI builds #9801

gneu77 opened this issue Apr 12, 2022 · 1 comment
Labels

Comments

@gneu77
Copy link

gneu77 commented Apr 12, 2022

Current Behavior

nx postinstall script terminates with code 1 in CI build, due to a bug in build-project-graph.ts

Expected Behavior

installing nx on CI build should be possible

Steps to Reproduce

setup project with nx and setup a CI build where the number of available workers is higher than the number of bins resulting for the project

Detailed analysis

On the CI-build, https://github.com/nrwl/nx/blob/master/packages/nx/src/project-graph/build-project-graph.ts passed undefined to the worker, if numberOfExpectedResponses < numberOfWorkers (in our case 102 < 255).

Workaround

Limit the number of workers in the CI build, e.g.: env NX_PROJECT_GRAPH_MAX_WORKERS=20 npm ci

@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 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants