Commit Graph

22356 Commits

Author SHA1 Message Date
Ben Newman
a445e50c11 Merge branch 'release-1.4.4.3' into release-1.5 2017-05-22 20:21:10 -04:00
Ben Newman
972180040f Merge branch 'master' into devel 2017-05-22 20:19:15 -04:00
Ben Newman
d5dfeef2a6 Merge pull request #8711 from meteor/release-1.4.4.3
Release 1.4.4.3
2017-05-22 20:18:05 -04:00
Ben Newman
7e52b10ba4 Bump package versions for the official 1.4.4.3 release. release/METEOR@1.4.4.3 2017-05-22 18:42:17 -04:00
Ben Newman
994558ccd7 Bump package versions for 1.4.4.3-rc.0 release. release/METEOR@1.4.4.3-rc.0 2017-05-22 17:00:06 -04:00
Ben Newman
6c998370db Bump $BUNDLE_VERSION to 4.7.27 before rebuilding dev bundle. 2017-05-22 16:55:13 -04:00
Ben Newman
95c11c1b78 Upgrade Node to version 4.8.3.
https://nodejs.org/en/blog/release/v4.8.3/
2017-05-22 16:53:19 -04:00
Ben Newman
48814ddbe3 Update History.md to mention fix for #8709. 2017-05-22 16:52:52 -04:00
Ben Newman
2a3fd57303 Style tweaks and a small bug fix.
These checks should still happen when body is an empty string, which (for
better or worse) is falsy in JavaScript.
2017-05-22 16:40:48 -04:00
David Glasser
5f18c6e24a tools: fix Galaxy discovery
1a036553 in 1.4.4.2 expanded on the HTTP error checking added by 30aec9f in
1.4.2. Neither of these changes were aware that discoverGalaxy invokes
httpHelpers.request with json:true, resulting in a `body` that is a parsed JSON
object rather than a string or Buffer.  Before 1.4.4.2, this had no consequences
because body.length is undefined and `undefined < 90` is false, but the change
to Buffer.byteLength actually made the condition true.

It's safe to not check length in the JSON case because a truncated JSON object
is not legal JSON (unless the truncation just drops trailing whitespace, in
white case that's OK).

I check for both string and Buffer because some calls to this function pass in
an encoding option.  Buffer.byteLength works with both types.
2017-05-22 16:40:42 -04:00
Ben Newman
fee86a0b17 Try not running a full meteor --get-ready before Circle CI tests.
In the ongoing struggle with Circle CI-specific test failures, the
preparatory `meteor --get-ready` has been a consistent point of failure,
before any real tests have the chance to run.

Using a lighter-weight command (meteor --help) that still does most of
what --get-ready did seems worth a try, though it might just defer
memory-intensive work until later, so we'll have to see what happens.
2017-05-22 16:40:33 -04:00
Ben Newman
47496e9dba Call requestGarbageCollection in Isopack#_writeTool.
This method appears to be causing large spikes in memory consumption on
Circle CI during the `meteor --get-ready` preparation step, which often
leads to the test process being killed.

Also added a call in IsopackCache#_loadLocalPackage for good measure.

We're now calling requestGarbageCollection pretty frequently when
we run Node with --expose-gc, but that currently only happens during
Circle CI tests, so I don't think we need to implement the improvements
suggested in tools/utils/gc.js, yet.

Previously: 35f488e140, f6df21ff1e
2017-05-22 16:40:32 -04:00
Ben Newman
35386e49dd Re-run individual tests to avoid re-running the whole suite.
To deal with individual flaky tests, we often just re-run the entire test
suite, which feels like an enormous waste of shared computing resources.

This change automatically re-runs individual failed tests as many as two
more times, and considers the test successful if any of those attempts
succeeds.

cc @abernix @hwillson et al.
2017-05-22 16:40:32 -04:00
Ben Newman
fb37811b4d Try not running a full meteor --get-ready before Circle CI tests.
In the ongoing struggle with Circle CI-specific test failures, the
preparatory `meteor --get-ready` has been a consistent point of failure,
before any real tests have the chance to run.

Using a lighter-weight command (meteor --help) that still does most of
what --get-ready did seems worth a try, though it might just defer
memory-intensive work until later, so we'll have to see what happens.
2017-05-21 12:09:34 -04:00
Ben Newman
042ab92b34 Call requestGarbageCollection in Isopack#_writeTool.
This method appears to be causing large spikes in memory consumption on
Circle CI during the `meteor --get-ready` preparation step, which often
leads to the test process being killed.

Also added a call in IsopackCache#_loadLocalPackage for good measure.

We're now calling requestGarbageCollection pretty frequently when
we run Node with --expose-gc, but that currently only happens during
Circle CI tests, so I don't think we need to implement the improvements
suggested in tools/utils/gc.js, yet.

Previously: 35f488e140, f6df21ff1e
2017-05-21 12:09:34 -04:00
Ben Newman
82626d59b3 Re-run individual tests to avoid re-running the whole suite.
To deal with individual flaky tests, we often just re-run the entire test
suite, which feels like an enormous waste of shared computing resources.

This change automatically re-runs individual failed tests as many as two
more times, and considers the test successful if any of those attempts
succeeds.

cc @abernix @hwillson et al.
2017-05-21 12:09:34 -04:00
Ben Newman
31c0d19019 Style tweaks and a small bug fix.
These checks should still happen when body is an empty string, which (for
better or worse) is falsy in JavaScript.
2017-05-21 12:09:34 -04:00
David Glasser
3dbac9e19c tools: fix Galaxy discovery
1a036553 in 1.4.4.2 expanded on the HTTP error checking added by 30aec9f in
1.4.2. Neither of these changes were aware that discoverGalaxy invokes
httpHelpers.request with json:true, resulting in a `body` that is a parsed JSON
object rather than a string or Buffer.  Before 1.4.4.2, this had no consequences
because body.length is undefined and `undefined < 90` is false, but the change
to Buffer.byteLength actually made the condition true.

It's safe to not check length in the JSON case because a truncated JSON object
is not legal JSON (unless the truncation just drops trailing whitespace, in
white case that's OK).

I check for both string and Buffer because some calls to this function pass in
an encoding option.  Buffer.byteLength works with both types.
2017-05-21 12:09:34 -04:00
Vlad Lasky
d9e7f8672b Rewritten to address concerns raised in abernix's review 2017-05-20 01:28:00 +10:00
Erik Demaine
c4adc7986c Update version number 2017-05-18 21:15:36 -04:00
Erik Demaine
255e136c9a Add warning when using smtp://...:465 2017-05-18 21:14:41 -04:00
Erik Demaine
f29d92fbc3 Update to node4mailer@4.0.3 supporting Node 4.4.7 2017-05-18 21:14:41 -04:00
Ben Newman
30082c17d5 Bump package versions for 1.5-rc.6 release. release/METEOR@1.5-rc.6 2017-05-18 12:35:10 -04:00
Ben Newman
02cbf94834 Reorganize ecmascript-runtime-client to tolerate more core-js versions.
By not implicitly assuming a particular version of core-js (by importing
specific modules), we can avoid the problems reported in #8699.

Fixes #8699.
2017-05-18 12:32:20 -04:00
Ben Newman
0fbb97432c Fix ENOTEMPTY and EPERM errors on Windows.
Windows began suffering from cryptic ENOTEMPTY and EPERM errors between
1.5-beta.20 and 1.5-rc.0. After a tricky `git bisect` adventure, I tracked
the problem down to my commit b6694b2f5d,
which caused dynamic modules to be written more than once by the bundler.
Though I don't understand exactly why Windows complained in this way, I'm
glad that it did, because otherwise this mistake would merely have been a
performance problem, and might not have been noticed before the release.
2017-05-18 11:48:40 -04:00
Ben Newman
f2d39c167b Bump package versions for 1.5-rc.5 release. release/METEOR@1.5-rc.5 2017-05-17 16:30:40 -04:00
Ben Newman
c871916756 Tolerate older versions of core-js.
Should fix #8699.
2017-05-17 16:30:39 -04:00
Ben Newman
2aa5c28bdb Save 13.5KB minified JS by not forcing core-js TypedArray polyfills.
You can still import these polyfills yourself, if you need them.
2017-05-17 16:18:26 -04:00
Michiel ter Reehorst
fb2e35fa30 Move localStorage access back into try statement (#8703)
Accessing window.localStorage can immediately throw an error in IE (#1291) and other/older webkit versions.
2017-05-17 16:16:49 -04:00
Jesse Rosenberger
647e3a2fc5 Bump bundle-visualizer version to 1.0.1 in preparation for publishing. 2017-05-17 12:46:22 -04:00
Jesse Rosenberger
d45e51f544 Merge pull request #8688 from Primigenus/patch-12
Ensure visualizer displays on top of other UI
2017-05-17 12:15:20 -04:00
Vlad Lasky
693ac8ae72 In response to hwillson's feedback, added test to webapp_tests for socketPath and made cosmetic fixes to UNIX socket code to conform better with meteor's coding style. 2017-05-18 01:28:46 +10:00
Ben Newman
800f07349b Merge pull request #8654 from zimme/zimme/reactive-dict
Add support for initial data alongside a name for ReactiveDict.
2017-05-17 11:20:34 -04:00
Ben Newman
8bd1005840 Bump package versions for 1.5-rc.4 release. release/METEOR@1.5-rc.4 2017-05-16 15:30:37 -04:00
Ben Newman
0a8a538d8e Mention the ecmascript-runtime-{client,server} split in History.md. 2017-05-16 15:25:45 -04:00
Ben Newman
f339dec5ae Try not running a full meteor --get-ready before Circle CI tests.
In the ongoing struggle with Circle CI-specific test failures, the
preparatory `meteor --get-ready` has been a consistent point of failure,
before any real tests have the chance to run.

Using a lighter-weight command (meteor --help) that still does most of
what --get-ready did seems worth a try, though it might just defer
memory-intensive work until later, so we'll have to see what happens.
2017-05-16 14:55:28 -04:00
Ben Newman
16a8a3ae3c Tweaks to linker caching.
No longer using a RegExp when we know what the old file wildcard path
should be, and no longer using Fiber when we can just use a Promise
callback (since all Promise callbacks run in a Fiber).
2017-05-16 13:43:38 -04:00
Hugh Willson
b8a8833ac6 Moved LINKER_CACHE_SALT into cacheKeySuffix part of cache filename hash. 2017-05-16 13:41:40 -04:00
Hugh Willson
7dd14e723d Adjusted bundler-cache saved file approach to remove out of date cache files. 2017-05-16 13:41:39 -04:00
Vlad Lasky
1caa9ce66c If PORT environment variable contains a UNIX file/path, this will be treated as the UNIX domain socket file to listen for connections on 2017-05-17 02:09:22 +10:00
Ben Newman
ff53a91152 Bump package versions for 1.5-rc.3 release.
Something went wrong with 1.5-rc.2 such that publishing meteor-tool failed
with the following error on all platforms:

  While publishing package build for meteor-tool:
  error: Cannot override existing build

This makes no sense to me, but it necessitates another RC release. To be
clear, meteor-tool@1.5.0-rc.2 has not been successfully published on any
platform, so please don't bother trying to update to it.
release/METEOR@1.5-rc.3
2017-05-15 18:46:00 -04:00
Ben Newman
642e8a369f Bump package versions for 1.5-rc.2 release. release/METEOR@1.5-rc.2 2017-05-15 16:17:24 -04:00
Ben Newman
2e057d7119 Call requestGarbageCollection in Isopack#_writeTool.
This method appears to be causing large spikes in memory consumption on
Circle CI during the `meteor --get-ready` preparation step, which often
leads to the test process being killed.

Also added a call in IsopackCache#_loadLocalPackage for good measure.

We're now calling requestGarbageCollection pretty frequently when
we run Node with --expose-gc, but that currently only happens during
Circle CI tests, so I don't think we need to implement the improvements
suggested in tools/utils/gc.js, yet.

Previously: 35f488e140, f6df21ff1e
2017-05-15 16:17:20 -04:00
Ben Newman
2032ba8b23 Re-run individual tests to avoid re-running the whole suite.
To deal with individual flaky tests, we often just re-run the entire test
suite, which feels like an enormous waste of shared computing resources.

This change automatically re-runs individual failed tests as many as two
more times, and considers the test successful if any of those attempts
succeeds.

cc @abernix @hwillson et al.
2017-05-15 13:56:57 -04:00
Ben Newman
93da21ed62 Update History.md with miscellaneous Meteor 1.5 changes. 2017-05-15 13:06:52 -04:00
Ben Newman
e3bd1cfb9c Make dynamic import(...) caching more robust to IndexedDB failures.
Fixes #8697.
2017-05-15 12:11:30 -04:00
Ben Newman
ea9a1745c5 Bump package versions for 1.6-pre.1 release. release/METEOR@1.6-pre.1 2017-05-12 16:16:00 -04:00
Ben Newman
9d54de66d1 Bump $BUNDLE_VERSION to 6.10.3 before rebuilding dev bundle. 2017-05-12 14:19:01 -04:00
Ben Newman
4654d3a13f Move coffeescript-test-helper package to packages/non-core. 2017-05-12 14:19:00 -04:00
Ben Newman
d823812e85 Upgrade meteor-promise to 0.8.4 to make it even more defensive. 2017-05-12 14:18:29 -04:00