Commit Graph

6406 Commits

Author SHA1 Message Date
Ben Newman
0f05575099 Simplify eachline by using split npm package. 2017-07-17 16:26:38 -04:00
Ben Newman
53e23671e3 Make sure maybeSuggestRaisingWatchLimit runs in a Fiber.
Should fix recent test failures:
https://circleci.com/gh/meteor/meteor/4570#tests/containers/5
https://circleci.com/gh/meteor/meteor/4570#tests/containers/6
2017-07-14 13:34:34 -04:00
Ben Newman
8af4955389 Use eachline@3.0.5 from npm instead of our own fork.
The pull request corresponding to our fork is not going to be merged, so
it's better to use the alternative this.finished API available in newer
versions of the upstream package.

https://github.com/williamkapke/node-eachline/pull/4
2017-07-14 13:34:33 -04:00
Ben Newman
44796a1831 Merge branch 'master' into devel 2017-07-13 20:16:08 -04:00
Ben Newman
25f003d0bc Throttle requestGarbageCollection to once per 500ms.
With Meteor 1.6 / Node 8, I noticed _buildLocalPackages taking multiple
seconds on initial server startup and restart, and the problem seems to be
that we call the global.gc function too often. This wasn't a problem in
previous versions of Node, as far as I know, but it makes sense to heed
the comment in tools/utils/gc.js, now that it matters.
2017-07-13 20:10:37 -04:00
Mitar
d4c4bf364d filePath is relative to appPath (#8885)
Interpret filePath as relative to appPath.
2017-07-13 08:56:38 -04:00
Ben Newman
21d2dab151 Merge branch 'master' into devel 2017-07-12 18:43:27 -04:00
Rob Fallows
7d2416435b (re)fixes #8879 Build phase command line output jumps 2017-07-12 14:43:45 -04:00
Ben Newman
692602ac46 Set METEOR_WATCH_PRIORITIZE_CHANGED to "false" in "update during run" self-test. 2017-07-10 22:11:33 -04:00
Jesse Rosenberger
3a6e4eb199 Replace remaining selfs with this in new Console classes. 2017-07-10 12:42:07 -07:00
Jesse Rosenberger
d54631f78b Change most function expressions into ES arrow functions. 2017-07-10 12:42:06 -07:00
Jesse Rosenberger
200627168c Change ProgressDisplayNone to an ES class. 2017-07-10 12:42:05 -07:00
Jesse Rosenberger
ca9034147b Change some var constants to use const. 2017-07-10 12:42:04 -07:00
Jesse Rosenberger
bc044092dd Finish changing ProgessBarRenderer to an ES class. 2017-07-10 12:42:04 -07:00
Jesse Rosenberger
bf67d802fc Begin changing ProgressBarRenderer to an ES class. 2017-07-10 12:42:03 -07:00
Jesse Rosenberger
edeaa5814e Finish changing ProgessDisplayStatus to an ES class. 2017-07-10 12:42:02 -07:00
Jesse Rosenberger
95cdc19795 Begin changing ProgressDisplayStatus to an ES class. 2017-07-10 12:42:01 -07:00
Jesse Rosenberger
eafb26aac9 Finish changing StatusPoller to an ES class. 2017-07-10 12:42:01 -07:00
Jesse Rosenberger
bfed1ab7b5 Begin changing StatusPoller to an ES class. 2017-07-10 12:42:00 -07:00
Jesse Rosenberger
e077a71fed Change SpinnerRenderer into an ES class. 2017-07-10 12:41:59 -07:00
Jesse Rosenberger
cee5a3e5d6 Finish moving ProgressDisplayFull to an ES class. 2017-07-10 12:41:58 -07:00
Jesse Rosenberger
1187034bb9 Begin changing ProgressDisplayFull into a ES class. 2017-07-10 12:41:58 -07:00
Jesse Rosenberger
1b7b4cffbc Move the CARRIAGE_RETURN constant with the other constants. 2017-07-10 12:41:57 -07:00
Jesse Rosenberger
b01a2fe0be Change self to this in new Console class.
This also involved changing `function`s into arrow-functions, sometimes
for the sake of posterity.
2017-07-10 12:41:56 -07:00
Jesse Rosenberger
dc242340a8 Preserve the LEVEL_* static properties above the Console class.
Though they don't appear to actually be used anywhere by Meteor, it's
probably worth preserving them in case they are somehow exposed
elsewhere.  Static class properties would avoid this, but the TC39
proposal is still progressing.
2017-07-10 12:41:55 -07:00
Jesse Rosenberger
f757154c12 Begin changing Console to an ES class. 2017-07-10 12:41:54 -07:00
Jesse Rosenberger
774ac5fdba Change ConsoleOptions into a class. 2017-07-10 12:41:54 -07:00
Jesse Rosenberger
7fda52c681 Move LEVEL_CODE_* constants above where they are used. 2017-07-10 12:41:53 -07:00
Jesse Rosenberger
8e5ad19f17 Console#readLine into existing _.extend(Console.prototype, {...});. 2017-07-10 12:41:49 -07:00
Ben Newman
a5fe404876 Add additional timeouts to "update during run" self-test. 2017-07-10 15:22:51 -04:00
Ben Newman
86eedd4bc6 Make METEOR_WATCH_PRIORITIZE_CHANGED opt-out instead of opt-in.
This restores the behavior of 8c70716954 by
default, with the option of disabling the prioritized file watching system
by setting METEOR_WATCH_PRIORITIZE_CHANGED explicitly to "false".

The self-tests where the environment variable is explicitly set form a
nice to-do list of tests that should be improved to be more robust to cope
with differences in file watcher timing.

Helps with #8648 and similar issues.
2017-07-10 12:31:11 -04:00
Ben Newman
54c4dbcbf7 Require opting into the behavior introduced by the previous commit.
Although I think 8c70716954 is a good idea
in practice, it altered the timing of self-tests enough to cause a number
of failures, so for now that behavior will be gated behind the environment
variable METEOR_WATCH_PRIORITIZE_CHANGED.
2017-06-30 11:41:00 -04:00
Ben Newman
8c70716954 Use native file watchers only to watch recently changed files.
This drastically reduces the number of open file descriptors by not
preemptively acquiring a file descriptor for every watched file.

The downside is that the first time you edit a particular file, you may
have to wait up to DEFAULT_POLLING_INTERVAL milliseconds before Meteor
notices the change. The upside is that changes will be detected
instantaneously for that file in the future, even after restart.

If holding open too many file descriptors is indeed a contributing factor
to issues such as #8648, then this change should go a long way towards
mitigating those problems.

cc @abernix @hwillson
2017-06-30 10:24:11 -04:00
Ben Newman
e86600b52b Rename "watchers" to "entries" where appropriate in safe-watcher.js. 2017-06-30 10:06:19 -04:00
Ben Newman
ac2595ad92 Merge branch 'devel' into release-1.5.1 2017-06-27 09:36:42 -04:00
Antonio Tapiador del Dujo
0b1a1ef59f Make require and module visible for meteor shell scripts 2017-06-27 09:31:43 -04:00
Antonio Tapiador del Dujo
2bcfb073c4 Remove parentheses wrapper of evaluateAndExit commmand
The prevented to run certain commands in scripts,
like `import { Foo } from './bar'`

See https://github.com/meteor/meteor/issues/8823
2017-06-27 09:31:43 -04:00
Ben Newman
d411229206 Merge branch 'devel' into release-1.5.1 2017-06-26 19:07:05 -04:00
Ben Newman
cf3c8270c6 Display PhantomJS stderr after tests finish, if not empty string. 2017-06-26 15:29:25 -04:00
Jesse Rosenberger
e2a6f397e7 Merge pull request #8842 from RickvdP/master
Updated old github wiki references to Meteor Guide/API docs
2017-06-26 14:08:39 +03:00
Rick van der Plas
e71a9e9856 Updated old github wiki references to Meteor Guide/API docs 2017-06-24 18:44:10 +02:00
Jesse Rosenberger
a05be9a600 Merge branch 'devel' into additional-packages-option 2017-06-19 14:58:37 +03:00
Rick
c6f80b9502 Updated doc URLs 2017-06-19 12:00:35 +02:00
Michał Powaga
ec78bdb8ce Remove redundant empty line 2017-06-14 15:42:35 +01:00
Michał Powaga
4d106db287 Fix formatting 2017-06-14 15:38:53 +01:00
Ben Newman
7e1d4ba6a1 Don't skip reinstalling unchanged Npm.depends-style dependencies. (#8787)
Fixes #8732.
Should also fix #8747.
2017-06-12 16:59:34 -04:00
Michał Powaga
e6a53ee564 Update help.txt 2017-06-08 23:30:36 +01:00
Michał Powaga
7239bf5ec2 Add --extra-packages option to test and test-packages commands 2017-06-08 23:26:47 +01:00
Michał Powaga
4c236dd69e --extra-packages now overrides .meteor/packages constraints 2017-06-08 16:21:09 +01:00
Michał Powaga
4c45c28a92 Remove unnecessary file 2017-06-08 11:08:48 +01:00