Commit Graph

54 Commits

Author SHA1 Message Date
Ben Newman
df77c39908 Bump default HTTP timeout to 60 seconds, and allow disabling. 2016-06-23 11:49:23 -04:00
Zoltan Olah
8f86d08827 Merge pull request #7143 from mitar/timeouts
Set timeout for HTTP requests
2016-06-22 08:59:38 +10:00
Mitar
3846c6f45c Changed timeout 30 seconds as instructed by our god Math.random(). 2016-06-16 23:12:08 -07:00
Ben Newman
dce2b20ddb Merge pull request #7033 from meteor/release-1.3.3
Release 1.3.3
2016-06-10 18:18:28 -04:00
chemicstry
512799ed9e Initial IPv6 support 2016-06-06 02:17:36 +03:00
Mitar
853e218a89 Set timeout for HTTP requests. 2016-05-31 23:35:46 +02:00
Ben Newman
d94e7d812d Upgrade dev bundle meteor-promise to 0.7.1. 2016-05-16 18:21:11 -04:00
Tom Coleman
15db86ec3e Minor cleanup 2016-05-05 16:32:10 -07:00
Tom Coleman
88ed8e289a Use longjohn to repair stacktraces on self-test 2016-05-05 15:05:52 -07:00
Tom Coleman
4056111acb Use longjohn to repair stacktraces on self-test 2016-05-05 14:42:05 -07:00
Martijn Walraven
743b740359 Add a trailing slash in utils.formatUrl for consistency with Meteor.absoluteUrl 2016-02-24 12:55:26 +01:00
Martijn Walraven
99e58d72a0 Support modern Cordova whitelist mechanism 2016-01-25 15:02:39 -08:00
Steven Edouard
fd83e399fe Launch processes in a Windows-friendly way
- options.cwd passed through convertToOSPath
- launch processes on Windows using child_process.exec
- parse args for windows into space-delimited string
2016-01-25 15:02:02 -08:00
Ben Newman
f7b2735d23 Reimplement fiberHelpers.parallelEach without explicit Fibers. 2015-12-09 12:06:52 -05:00
Ben Newman
79f82911d0 Avoid having to use Fibers explicitly in buildmessage.forkJoin. 2015-12-09 12:06:52 -05:00
Ben Newman
3cafbc72ac Use async functions to eliminate the need for fiberHelpers.inBareFiber.
The comments for inBareFiber claim that it's for times when you don't want
to inherit the dynamic environment variables of the current Fiber, but
none of the call sites actually relied on this behavior. Still, it may be
worth noting that async functions automatically (and cheaply) inherit the
calling Fiber's dynamics, which is virtually always what you want.
2015-12-09 12:06:51 -05:00
Ben Newman
2d8fbb6c79 Eliminate Future-related utilities from tools/fiber-helpers.js. 2015-12-09 12:06:51 -05:00
Ben Newman
d54410db8e Eliminate Future from tools/service-connection.js. 2015-12-09 12:06:48 -05:00
Ben Newman
7f0156f273 Eliminate Future from tools/http-helpers.js. 2015-12-09 12:06:47 -05:00
Ben Newman
15ef3884cc Eliminate Future from tools/utils.js. 2015-12-09 12:06:46 -05:00
Ben Newman
c815a5b534 Eliminate Future from tools/buildmessage.js. 2015-12-09 12:06:46 -05:00
Tom Coleman
705a7eda1a Switch the semantics - forNpm -> forCordova
Cordova uses npm but is *more* specific so this is less potentially confusing.
2015-11-25 16:27:36 +11:00
Tom Coleman
54396f78b7 Switch semantics to isValidVersion 2015-11-25 16:27:36 +11:00
Tom Coleman
81fff25ecb Don't require npm URLs to have a #commit-ish
Npm says it will default to `master`. That's OK by us.
2015-11-25 16:27:35 +11:00
Tom Coleman
222115665b Refactored isExactVersionto handle npm/cordova
See https://github.com/meteor/meteor/pull/5562/files for a discussion. Basically Cordova doesn't really support

a) Urls with @'s in them
b) Urls that don't point to fixed commits.

As this branch allows both of the above (and our NPM support does reasonably handle a+b), we split the way we handle cordova + npm URLs a little.
2015-11-25 16:27:35 +11:00
Tom Coleman
58cbe65060 Allow the other types of URLs that npm supports.
See for instance #844 for people running into the
fact that our lack of support for git protocols means
dealing with private npm packages is a pain.
2015-11-25 16:27:11 +11:00
Ben Newman
ed17924940 Add braces to every if/for(-in)/while statement in tools directory. 2015-11-13 12:25:19 -05:00
Blake Bourque
0aa1291fd6 Patch to allow users to override root cert list
Fixes #4757
Uses environment variable CAFILE (to match NPM) which must contain a fully qualified path to a pem format root certificate to include in the list of trusted root certs.

This additional root certificate will be needed for those behind an SSL inspection proxy which acts as an SSL termination point and resigns the traffic with its own root certificate.
2015-10-27 13:39:18 -07:00
Martijn Walraven
76bb1a183e Make buildmessage.exception() deal with the case where an error has no stack trace 2015-09-24 12:03:51 +02:00
Sashko Stubailo
550489cea8 Intelligently decide which stack trace to use 2015-09-14 17:51:43 -07:00
Sashko Stubailo
e2d4556479 Special-case http imports in LESS package 2015-09-14 11:53:58 -07:00
Martijn Walraven
b274e5390a Fix bug in execFileAsync that meant options were ignored without args 2015-09-11 18:44:17 +02:00
Martijn Walraven
0ea336424a Clarify some comments 2015-08-26 19:26:57 +02:00
Martijn Walraven
b2c5ff4d5a Allow specifying a destination option for execFileSync/Async
If specified, instead of capturing the output, the child process stdout
will be piped to the destination stream.

Although the standard spawn stdio option lets you pass in streams,
these have to be connected to an open file descriptor. The destination
option allows you to use any Writable, so it can be used with a
Transform for instance.
2015-08-26 19:26:55 +02:00
Martijn Walraven
63461fcd8f Remove unused RunCommand and add promise-based execFileSync/Async
The execFileSync function is meant to resemble the similarly-named Node
0.12 synchronous process creation API, but instead of being fully
blocking it uses a promise-based implementation. You can also use
execFileAsync directly, which returns a promise.

Some functionality is currently missing but could be added when the
need arises (e.g. support for timeout, maxBuffer, and encoding options).

Eventually, these versions should replace the ones in
tools/utils/utils.js and tools/tool-testing/selftest.js.
2015-08-26 19:26:54 +02:00
Martijn Walraven
b03455f382 Re-enable netroute for platforms other than win32 2015-08-26 19:26:52 +02:00
Martijn Walraven
87b11bdab5 Cordova refactoring and change of runner behavior
- Refactored code in tools/cordova and introduced CordovaBuilder and
CordovaRunTarget classes
- CordovaRunner now builds and runs the project as part of the main
runner loop
- Some code cleanup and ES2015 conversions
2015-08-26 19:26:49 +02:00
Martijn Walraven
42585a1098 Allow IP address detection to work without netroute
Because netroute is not available on Windows, and I haven’t been able
to find another way to detect the default route there, we try to find
a unique non-internal IPv4 address as a fallback. Also, improve error
reporting in cases we aren’t able to autodetect a unique IP address.

I’ve removed the automatic retry after 2 seconds, because I felt it was
of limited use (if you lose the address you would also have lost the
default route?) and it would slow down error reporting in the common
case where the error persists.
2015-08-26 19:26:48 +02:00
Martijn Walraven
47ff9a13aa Clean up Cordova code in commands.js
- Refactor server options parsing, move it from utils.js to commands.js
- Move remote device warning to CordovaRunner
2015-08-26 19:26:45 +02:00
David Glasser
729ad9013e Style tweaks 2015-08-11 15:30:19 -07:00
SEKE
6fa16329fc Throw a non-empty error when getUrl gets an empty response body 2015-08-11 15:28:18 -07:00
Sashko Stubailo
863be787ab Fix buildmessage concatenating stack traces 2015-08-10 20:08:52 -07:00
Anubhav Jain
c05f0aca56 Revert "Add checks to see if frame exists before trying to access the func property"
This reverts commit bd6a0c0080.
2015-08-10 19:55:52 -07:00
Slava Kim
c9334d3aaa Fix bad refactoring of getHost() 2015-08-10 15:25:37 -07:00
Anubhav Jain
bd6a0c0080 Add checks to see if frame exists before trying to access the func property 2015-08-10 15:22:59 -07:00
Sashko Stubailo
23b65c85e0 Fix parseStack usage 2015-08-10 12:05:53 -07:00
Sashko Stubailo
a315eca4d7 Fix test and parse stack 2015-08-06 16:41:19 -07:00
Slava Kim
b3f5a6e1f2 Move buildmessage guide closer to the lib 2015-08-06 16:40:56 -07:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -07:00
Sashko Stubailo
247aa77cb4 Change the way parseStack returns the stack to be fiber-aware 2015-08-06 16:20:08 -07:00