We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nx postinstall script terminates with code 1 in CI build, due to a bug in build-project-graph.ts
installing nx on CI build should be possible
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
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).
Limit the number of workers in the CI build, e.g.: env NX_PROJECT_GRAPH_MAX_WORKERS=20 npm ci
env NX_PROJECT_GRAPH_MAX_WORKERS=20 npm ci
The text was updated successfully, but these errors were encountered:
fix(core): build-project-graph shouldn't fail when large number of wo…
5f8ccc5
…rkers are available fixes nrwl#9801
1857138
d37379f
…rkers are available (#9804) fixes #9801
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.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: