Yarn network troubles


#1

It seems that the build always runs into network problems when installing yarn dependencies only on Windows.

[3/5] Fetching packages…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…

https://travis-ci.org/thelounge/thelounge/jobs/440995140#L79


#2

Interesting. Could you try increasing the network timeout?

In your .travis.yml:

before_install: yarn install --network-timeout 1000000

#3

That removed the info message, however the install is still pretty slow. It takes multiple minutes to install dependencies (the project certainly doesn’t have THAT many dependencies, and it’s quite a bit faster on my local machine with home internet speeds)


#4

And to clarify, I disabled cache: yarn, and installing on linux takes 20 seconds compared to minutes on Windows.

Build: https://travis-ci.org/thelounge/thelounge/builds/441035440


#5

Thanks for the info. The Windows filesystem seems to be a bit slower, although we still have lots of tuning and improving yet to do. Caching is disable for all windows builds for the time being while we update some of our code to work with Windows. We hope to have it available next week.

For the time being I would class the initial issue as resolved, although we should document this, or apply the yarn timeout ourselves so others don’t need to.

Thank you for this feedback!