Skip to content

Commit af9b9fb

Browse files
author
Akos Kitta
committed
Yet another attempt to fix timeout issues on Azure.
``` info There appears to be trouble with your network connection. Retrying... error An unexpected error occurred: "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.2.tgz: ESOCKETTIMEDOUT". info If you think this is a bug, please open a bug report with the information provided in "D:\\a\\1\\s\\yarn-error.log". ``` Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent ded838b commit af9b9fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

electron/packager/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
//-------------------------------------------------------------------------------------------------+
6767
// Rebuild the extension with the copied `yarn.lock`. It is a must to use the same Theia versions. |
6868
//-------------------------------------------------------------------------------------------------+
69-
exec(`yarn --cwd ${path('..', workingCopy)}`, 'Building the Arduino Theia extensions');
69+
exec(`yarn --network-timeout 1000000 --cwd ${path('..', workingCopy)}`, 'Building the Arduino Theia extensions');
7070
// Collect all unused dependencies by the backend. We have to remove them from the electron app.
7171
// The `bundle.js` already contains everything we need for the frontend.
7272
// We have to do it before changing the dependencies to `local-path`.
@@ -98,8 +98,8 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
9898
//-------------------------------------------------------------------------------------------+
9999
// Install all private and public dependencies for the electron application and build Theia. |
100100
//-------------------------------------------------------------------------------------------+
101-
exec(`yarn --cwd ${path('..', 'build')}`, 'Installing dependencies');
102-
exec(`yarn --cwd ${path('..', 'build')} build${release ? ':release' : ''}`, 'Building the Arduino-PoC application');
101+
exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')}`, 'Installing dependencies');
102+
exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build${release ? ':release' : ''}`, 'Building the Arduino-PoC application');
103103

104104
//------------------------------------------------------------------------------+
105105
// Create a throw away dotenv file which we use to feed the builder with input. |
@@ -115,7 +115,7 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
115115
//-----------------------------------+
116116
// Package the electron application. |
117117
//-----------------------------------+
118-
exec(`yarn --cwd ${path('..', 'build')} package`, `Packaging your Arduino-PoC application`);
118+
exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} package`, `Packaging your Arduino-PoC application`);
119119
echo(`🎉 Success. Your application is at: ${path('..', 'build', 'dist')}`);
120120

121121
restore();

0 commit comments

Comments
 (0)