Commit Graph

19507 Commits

Author SHA1 Message Date
Ben Newman
5a8e6b0639 Bump package versions for 1.6-beta.16 release. release/METEOR@1.6-beta.16 2017-08-08 19:33:04 -04:00
Ben Newman
408bbdb705 Reinstate .babelrc "env" test, with more reliable NODE_ENV. 2017-08-08 19:32:28 -04:00
Ben Newman
a8b78fc413 Remove .babelrc "env" test for now.
This has been failing consistently on Circle CI, so I'm disabling it until
I know how to fix it better: https://circleci.com/gh/meteor/meteor/5068
2017-08-08 19:20:40 -04:00
Ben Newman
2dac4eead5 Force clearing the npm cache before Circle CI tests. 2017-08-08 19:20:40 -04:00
Ben Newman
0699d14ded Bump $BUNDLE_VERSION to 8.2.6 before rebuilding dev bundle. 2017-08-08 18:42:20 -04:00
Ben Newman
0bf08a5f99 Merge branch 'release-1.5.2' into release-1.6 2017-08-08 18:40:46 -04:00
Ben Newman
cfdc69bf71 Support @~ version constraints and use them for core packages. (#8991) 2017-08-08 18:01:30 -04:00
Ben Newman
6de5c25fed Enable transform-do-expressions in production for modules test app.
The modules test app appears to be running with process.env.NODE_ENV equal
to "production" on Circle CI: https://circleci.com/gh/meteor/meteor/5030.

Enabling this transform in production as well as development is fine
because we primarily want to test that plugins from the "env" section of
.babelrc are respected, regardless of the value of process.env.NODE_ENV.
Using different plugins in production might be worth testing, too, but
that's less critical.

Follow-up to #8963.
2017-08-07 16:19:09 -04:00
Ben Newman
cc2a1d79e1 Bump package versions for 1.5.2-beta.8 release. release/METEOR@1.5.2-beta.8 2017-08-07 15:10:04 -04:00
Ben Newman
12efaef31a Merge branch 'devel' into release-1.5.2 2017-08-07 14:55:50 -04:00
Ben Newman
5f554ebfa0 Merge pull request #8972 from meteor/run-bare-files-before-eager-modules
Run all "bare" package files before requiring eager entry point modules.
2017-08-07 14:54:24 -04:00
Hugh Willson
b1fd243978 Reduce the "modules - test app" self-test start-up wait time.
The increased mongo connection timeout in 522d86dc4e
means that the we can decrease the "modules - test app" self-test
application start-up wait internval significantly (since mongo
will now start properly and the self-test can continue).
2017-08-07 14:53:37 -04:00
Hugh Willson
b061f4b765 Increase mongo connection timeout to reduce self-test mongo errors.
Certain self-test's like "modules - test app" are encountering
mongo connection timeout errors on some runs. Increasing the
connection timeout helps address these errors.
2017-08-07 14:53:37 -04:00
Ben Newman
822ac2d7a4 Add a note to History.md about env in .babelrc files. 2017-08-07 13:28:44 -04:00
Jordan Brant Baker
77ecbabf60 Support "env" in .babelrc files. (#8963) 2017-08-07 13:23:56 -04:00
Jesse Rosenberger
4cdfd02e44 Auto-install meteor self-test dependencies upon use. (#8981)
* Auto-install `meteor self-test` dependencies upon use.

This uses the same new facilities which were created for auto-installing
Cordova (#8976) to also auto-install PhantomJS and BrowserStack WebDriver npms
into their appropriate home in the dev bundle when they're needed for running
self-tests.

* Use a more descriptive name for the reference to the `require`-d npm module.
2017-08-07 13:18:49 -04:00
Ben Newman
43ba3c9de5 Use unreleased version of websocket-driver that uses http-parser-js.
https://github.com/faye/websocket-driver-node/issues/21
https://github.com/meteor/meteor-feature-requests/issues/160

Thanks to @sdarnell for identifying this solution.
2017-08-07 12:53:28 -04:00
Ben Newman
5e81d4af27 Merge branch 'devel' into release-1.5.2 2017-08-04 13:07:49 -04:00
Ben Newman
a4d9f8c0f8 Fix comments about bare files and add a note to History.md. 2017-08-04 13:02:42 -04:00
Ben Newman
6f259003eb Run all bare files before requiring eager entry point modules. 2017-08-04 13:02:41 -04:00
Jesse Rosenberger
3b2e0b6dbc Switch to using CircleCI 2.0 and various other test improvements. (#8985)
This switches Meteor's CircleCI builds from Circle 1.0 to Circle 2.0 which
has a bit more control over the workflow.

Currently, this eliminates the existing ci.sh script which was already a bit
incompatible when I was attempting to run Windows builds on another environment.
It's possible that we should change this to a Node.js wrapper script.

Other improvements:

- We now store Core Dumps in build artifacts.  CircleCI 2.0 advertised this as
  one of the features of CircleCI 2.0, but honestly, it was far from
  straightforward.  Perhaps if we were using another Dockerimage, but it was
  far from as easy as flipping a switch.  In addition to saving the Core Dump,
  this also saves the Node.js binary which was included in the Dev Bundle.  This
  can be very handy for post-mortem debugging with tools like lldb, gdb, or mdb.

- Memory usage is now logged throughout the build via a background process which
  logs `ps` output to a file which is persisted to the build artifacts.  This
  should help identify if builds are terminating for some environmental reason.
2017-08-04 10:00:09 -07:00
Ben Newman
22e86ce208 Add timeout to static-html test. 2017-08-03 21:19:44 -04:00
Sashko Stubailo
2ebd647e1a Delete .reviewboardrc 2017-08-03 09:25:52 -07:00
Ben Newman
ada135f124 Try not deleting temp directories after Circle CI tests.
Yet another hopeful attempt to stamp out segmentation faults.
2017-08-03 10:47:56 -04:00
Ben Newman
318232da9d Try disabling longjohn completely, as it may affect test performance. 2017-08-03 09:24:15 -04:00
Ben Newman
565281e765 Revert "Add mongo-dev-server package (#8853)"
This reverts commit 4d37a05fb3.

After git bisecting between origin/release-1.5 and origin/release-1.5.2, I
identified this commit as the culprit in recent failures of the modules
test app: https://circleci.com/gh/meteor/meteor/4857#tests/containers/3

Note that the modules test app seems to be failing only on Linux, and it
does pass reliably with this commit reverted. It must have something to do
with Mongo failing to start, and thus the "App running at" message never
appears, but I don't have a good theory why that might be.

The command to run just the modules test app is

  meteor self-test --history 1000 'modules - test app'

@zimme @hwillson @abernix any ideas?
2017-08-02 21:23:39 -04:00
Ben Newman
ebcaceb54b Bump $BUNDLE_VERSION to 4.8.31 before rebuilding dev bundle. 2017-08-02 15:48:04 -04:00
Ben Newman
c0b918c0fc Merge branch 'devel' into release-1.5.2 2017-08-02 15:44:31 -04:00
Hugh Willson
5b39d4b2da Remove merged in underscore usage and update to ES5/ES6. 2017-08-02 15:33:16 -04:00
Hugh Willson
a7aa0175f6 Swap 2 self-test's to get CircleCI tests to pass. 2017-08-02 15:33:15 -04:00
Hugh Willson
c6bddb331a Remove underscore dependency. 2017-08-02 15:33:15 -04:00
Hugh Willson
82a6feeaf4 Adjust EJSON API to handle objects with properties named "length" 2017-08-02 15:33:14 -04:00
Jesse Rosenberger
f0548ad50d Merge branch 'devel' into release-1.5.2 2017-08-02 22:31:14 +03:00
Jesse Rosenberger
9a74c7cafa Bump $BUNDLE_VERSION to 4.8.30 before rebuilding dev bundle. 2017-08-02 22:11:11 +03:00
Ben Newman
29feca3c6d Merge pull request #8978 from meteor/scan-non-core-packages-in-checkout
Scan non-core packages as local packages when running from checkout.
2017-08-02 11:58:17 -07:00
Jesse Rosenberger
09a859b8f2 Merge pull request #8946 from meteor/abernix/skirunman/update-mongo-3.2.15
Update to MongoDB  v3.2.15
2017-08-02 21:52:52 +03:00
Ben Newman
88824ca04d Guard against nonexistent Package.ddp.DDP._CurrentMethodInvocation.
As suggested by @cwholman in this comment:
https://github.com/meteor/meteor/issues/8947#issuecomment-318393234

Fixes #8947.
2017-08-02 14:45:51 -04:00
Ben Newman
7f062192e1 Eliminate underscore usage from the meteor package. 2017-08-02 14:45:51 -04:00
Ben Newman
f52b1726a5 Scan packages/non-core packages as local packages.
Fixes #8961 and #8962.
2017-08-02 13:40:38 -04:00
Ben Newman
ce0b499224 Move old packages from packages/non-core to packages/deprecated. 2017-08-02 13:36:24 -04:00
Jesse Rosenberger
4665f2aab3 Include the Node.js and npm version in the star.json manifest. (#8956)
* Include the Node.js and npm version in the `star.json` manifest.

This makes it possible to know exactly which version of Node.js and npm
were used by the `meteor` command from which the bundle was built from.

* History.md for #8956.
2017-08-02 08:50:01 -07:00
Ben Newman
ad917dcf0a Merge pull request #8954 from meteor/abernix/auth-deploy-cleanup
`meteor deploy` cleanup and partial modernization
2017-08-02 08:46:44 -07:00
James Burgess
c3dd664d14 Adjust minimongo behavior to match server when functions are part of selectors (#8952) 2017-08-02 08:43:42 -07:00
Ben Newman
94c0cd00cd Merge pull request #8951 from meteor/abernix/clear-password-on-retry
Clear credentials before retry on initial `meteor deploy` password failure.
2017-08-02 08:42:33 -07:00
Jesse Rosenberger
a12aa11974 Remove cordova-lib from dev-bundle-tool-package.js.
As it's no longer necessary and will be installed automatically if it's not
present!
2017-08-02 17:19:43 +03:00
Jesse Rosenberger
26f5ce1833 Introduce Cordova ensureDevBundleDependencies.
This Cordova `ensureDevBundleDependencies` function will utilize a another
method called `ensureDependencies` which checks to see if a module can be
resolved by the tool.  If it cannot be resolved, it will install it using the
`installNpmModule` facilities of `meteor-npm.js` in the same way as other npm
packages within packages, except with the destination as the `dev_bundle`.

This commit also adds a couple of previously not explicitly installed npm
modules which Meteor requires directly: `cordova-registry-mapper` and
`cordova-common`.  Both of these were previously relying on npm package hoisting
which previously occurred during the installation of `cordova-lib` in the dev
bundle which happened under the supervision of a `package.json` file (which is
later purged).

When `cordova-lib` is installed directly, without a package.json, the
aforementioned packages are not hoisted to the top level, but instead reside
inside `cordova-lib`.  This is less than ideal since we're relying on the API
of an indirect dependency of `cordova-lib`.
2017-08-02 17:19:42 +03:00
Jesse Rosenberger
d6d5282509 Introduce new moduleDoesResolve method to detect presence of a module. 2017-08-02 17:19:41 +03:00
Jesse Rosenberger
5b051d0eb5 Move remove-platform into separate method as prep for auto dep install. 2017-08-02 17:19:40 +03:00
Jesse Rosenberger
401cb493cb Move add-platform into separate method as prep for auto dep install. 2017-08-02 17:19:40 +03:00
Jesse Rosenberger
134bc0d2c3 Change Cordova imports to nested to avoid being eagerly evaluated.
This will enable the possibility of deferring the installation of the Cordova
modules (e.g. `cordova-lib`, `cordova-common`) until a time deemed appropriate.
2017-08-02 17:19:39 +03:00