-
Notifications
You must be signed in to change notification settings - Fork 162
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
Downstream PR preview creation and build slowness/timeouts #1709
Comments
Recent changes to how nextstrain.org is built & deployed have improved this a lot. |
Re-opening this because it is once again taking at least 20 minutes and even timing out on Heroku builds. |
Read through the upstream issue and added some more possible solutions which I'm trying in #1870. |
In nextstrain/nextstrain.org#1039 I tried some different workarounds mentioned in npm/cli#4896 but none seemed to work:
I then ran
and on Heroku which timed out:
Observations:
¹ it took me a while to figure this one out since Heroku sets |
Heroku support identified that it was timing out on puppeteer's download of Chrome and suggested using I wouldn't treat that as a solution though. It's not clear to me why puppeteer is being downloaded in the first place since it is listed as a dev dependency of Auspice. On the surface it seems like it shouldn't because |
This issue has two parts:
I've addressed (1) with #1870 which is ready for review. (2) is tricker with the weirdness I mentioned above. I'll continue to investigate that since these builds are still timing out on Heroku. |
Re: Heroku build issues, I think I've found an explanation in npm docs:
and a reason for the elusiveness in logs:
|
I just applied the solutions to #1373. Here's the improved timeline:
|
Fixed by #1870 and nextstrain/nextstrain.org#1041 |
👏 |
Context
When working on UI changes, it's useful to previews the changes on nextstrain.org. Currently, the process is simple but it takes a long time, at least 20 minutes: >10m to make the PR, then >10m to build the preview version of nextstrain.org. The slowness seems to be mostly due to
npm install
being slow when resolving git references.Upstream issue
Past discussions
This has been disussed in #1565 (comment), #1567 (comment) and #1661 (comment). I thought it would be fixed with the upgrade to Node.js 16, but looks like it's still taking a while.
Solutions
Solutions that didn't work / weren't pursued
yarn
, maybe it's faster?npm install
withhttps://
github:
withhttps://
in package.json + package-lock.jsonurl."ssh://git@".insteadOf git://
orurl."https://github".insteadOf "git://github"
The text was updated successfully, but these errors were encountered: