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

Nx / Lerna Running Slow #25923

Closed
jd-carroll opened this issue May 23, 2024 · 5 comments · Fixed by #25209
Closed

Nx / Lerna Running Slow #25923

jd-carroll opened this issue May 23, 2024 · 5 comments · Fixed by #25209
Assignees
Labels

Comments

@jd-carroll
Copy link

Current Behavior

Cross posting from lerna because I don't think the issue is with lerna itself
Link: lerna/lerna#4010

I just ran nx repair and it sat at this point for > 1min:
image

Then finally it went to:
image

What am I missing? Any tips on how to debug?

And to be clear, I am also seeing this behavior on our GitHub actions.

Expected Behavior

Commands to run quickly, not take 1min+ to begin executing.

GitHub Repo

No response

Steps to Reproduce

  1. lerna * any command

Nx Report

NX   Report complete - copy this into the issue template

Node   : 20.12.2
OS     : darwin-arm64
yarn   : 4.0.1

nx          : 19.0.6
lerna       : 8.1.3
@nx/devkit  : 19.0.6
@nrwl/tao   : 19.0.6
typescript  : 5.4.5

Note: It took 78s for that report to be generated 😂



### Failure Logs

_No response_

### Package Manager Version

4.0.1

### Operating System

- [X] macOS
- [X] Linux
- [ ] Windows
- [ ] Other (Please specify)

### Additional Information

_No response_
@jd-carroll
Copy link
Author

Here is some better data

From the .nx/cache/d/daemon.log:

[NX Daemon Server] - 2024-05-23T17:14:44.233Z - Started listening on: /var/folders/kw/q8k13rq537gbbd1hltw743kr0000gn/T/38f1f76a048febf07b8d/d.sock
[NX Daemon Server] - 2024-05-23T17:14:44.237Z - [WATCHER]: Subscribed to changes within: /Users/joseph/develop/analytics-workbench (native)
[NX Daemon Server] - 2024-05-23T17:14:44.238Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2024-05-23T17:14:44.239Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2024-05-23T17:14:44.239Z - Closed a connection. Number of open connections: 1
[NX Daemon Server] - 2024-05-23T17:14:44.240Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2024-05-23T17:14:44.248Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph...
[NX Daemon Server] - 2024-05-23T17:14:44.248Z - [REQUEST]: 
[NX Daemon Server] - 2024-05-23T17:14:44.248Z - [REQUEST]: 
[NX Daemon Server] - 2024-05-23T17:15:33.109Z - [REQUEST]: Responding to the client. project-graph
[NX Daemon Server] - 2024-05-23T17:15:33.110Z - Time taken for 'total for creating and serializing project graph' 48868.861832999995ms
[NX Daemon Server] - 2024-05-23T17:15:33.117Z - Done responding to the client project-graph
[NX Daemon Server] - 2024-05-23T17:15:33.117Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 48869. Response time: 8.
[NX Daemon Server] - 2024-05-23T17:15:33.122Z - [REQUEST]: Responding to the client. handleRequestFileData
[NX Daemon Server] - 2024-05-23T17:15:33.122Z - Done responding to the client handleRequestFileData
[NX Daemon Server] - 2024-05-23T17:15:33.123Z - Handled REQUEST_FILE_DATA. Handling time: 0. Response time: 1.
[NX Daemon Server] - 2024-05-23T17:15:33.852Z - [WATCHER]: 7 file(s) created or restored, 0 file(s) modified, 8 file(s) deleted
[NX Daemon Server] - 2024-05-23T17:15:33.852Z - [WATCHER]: Processing file changes in outputs
[NX Daemon Server] - 2024-05-23T17:15:33.904Z - [WATCHER]: 3 file(s) created or restored, 1 file(s) modified, 3 file(s) deleted
[NX Daemon Server] - 2024-05-23T17:15:33.904Z - [WATCHER]: Processing file changes in outputs
[NX Daemon Server] - 2024-05-23T17:15:33.953Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph...
[NX Daemon Server] - 2024-05-23T17:15:33.953Z - [REQUEST]: infra/flow-events-ingestion-lambda/package.json,client-flow/v1-definitions/package.json,client-flow/v1-contracts/package.json,infra/server-event-bridge/package.json,infra/flow-client-logs/package.json,infra/flow-events-ingestion/package.json,client-flow/v1-lambdas/package.json,client-flow/public-dns/package.json,client-flow/v1-lambda-infra/package.json,client-flow/api-gateway/package.json,lerna.json
[NX Daemon Server] - 2024-05-23T17:15:33.953Z - [REQUEST]: infra/flow-events-ingestion/package.json.2371780897,infra/flow-client-logs/package.json.815451163,client-flow/v1-contracts/package.json.2697278781,infra/flow-events-ingestion-lambda/package.json.3634110581,client-flow/v1-definitions/package.json.66993087,client-flow/v1-lambdas/package.json.3120106627,infra/server-event-bridge/package.json.216556099,client-flow/v1-lambda-infra/package.json.374630952,client-flow/public-dns/package.json.2110085091,client-flow/api-gateway/package.json.860039200

Note the total time taken for a project-graph is 48868.861832999995ms

FrozenPandaz pushed a commit that referenced this issue May 23, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #25923
FrozenPandaz pushed a commit that referenced this issue May 23, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #25923

(cherry picked from commit 94707d9)
FrozenPandaz pushed a commit that referenced this issue May 23, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #25923

(cherry picked from commit 94707d9)
@BigForNothing
Copy link

This is still happening on 19.0.7

@yharaskrik
Copy link
Contributor

Anyone know what the last working version is? The newest beta also still has this problem.

@BigForNothing
Copy link

19.0.8 works fine

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 Jun 24, 2024
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.

5 participants