[go: nahoru, domu]

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

Lerna running slow #4010

Open
jd-carroll opened this issue May 22, 2024 · 4 comments
Open

Lerna running slow #4010

jd-carroll opened this issue May 22, 2024 · 4 comments

Comments

@jd-carroll
Copy link
Contributor

This is purely anecdotal.. Will start working on capturing more data.

But is anyone else seeing lerna commands running really slow?

Specifically, when I launch a lerna command, it will look like:

jh@MBP-2 analytics-workbench % lerna run build --scope @site/analytics-flow-v1-lambdas
info cli using local version of lerna
lerna notice cli v8.1.3

Then it will sit there, for what seems to be a minute, and then continue with the command as usual:

jh@MBP-2 analytics-workbench % lerna run build --scope @site/analytics-flow-v1-lambdas
info cli using local version of lerna
lerna notice cli v8.1.3
lerna notice filter including "@site/analytics-flow-v1-lambdas"
...

While the screen shots above are from my local MBP, I'm also seeing similar latency on our GitHub Actions.

Additionally, this is happening across multiple commands run, version, etc.

Any suggestions on how to debug? I've restarted my machine multiple times, but it hasn't helped and I'm noticing on other machines too.

@jd-carroll
Copy link
Contributor Author

As an example:
image

The Generate API artifacts should take a matter of seconds (not even), it assembles a set of OpenAPI definitions from flat files with no external calls.

Further, the Deploy Infrastructure has been stuck on lerna notice cli v8.1.3 for 1m11s. Only after ~1m30s did it show the next steps:

info cli using local version of lerna
lerna notice cli v8.1.3
lerna info ci enabled
lerna info Executing command in 6 packages: "yarn run deploy --app ./environments/.develop"

And all of that is before it reaches my code.

What am I missing?

@Gallouche
Copy link

Same feeling here on very slow time to start yes. +1

@pachuka
Copy link
pachuka commented Jun 5, 2024

Going to chime in here as well. After upgrading to lerna 8.1.3 on one of our repos suddenly seeing our lerna publish step hang long enough to cause our CI system to detect it as a hung thread/terminate the build. Downgrading to lerna 8.1.2 resolves it, so wondering if something underyling or underlying NX deps changed that's causing a problem.

@pachuka
Copy link
pachuka commented Jun 26, 2024

Going to chime in here as well. After upgrading to lerna 8.1.3 on one of our repos suddenly seeing our lerna publish step hang long enough to cause our CI system to detect it as a hung thread/terminate the build. Downgrading to lerna 8.1.2 resolves it, so wondering if something underyling or underlying NX deps changed that's causing a problem.

As an update I retested with 8.1.4 and 8.1.5 still seeing the builds hang. Tried passing --loglevel=silly but nothing additional in the output that helps us debug what's going on here.

This is running in a bamboo server pipeline:

image

again, it's all fine on 8.1.2, but we'd like to consume 8.1.5 for some of the vulnerability fixes with tar and other packages.

I looked at the changes between 8.1.2 and 8.1.3 but nothing is really standing out to me as the culprit, but it's hard to say with the major version change in NX if that's somehow causing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants