Commit Graph

17874 Commits

Author SHA1 Message Date
Ben Newman
69e190076b Bump package versions for 1.4.2.1-beta.0 release. release/METEOR@1.4.2.1-beta.0 2016-10-28 18:16:09 -04:00
Ben Newman
bf5f635ac7 Remove optimisticIsSymbolicLink-specific logic from shouldWatch. 2016-10-28 18:16:09 -04:00
Ben Newman
45bb2898fa Watch all paths in linked npm packages.
Fixes #7978.
2016-10-28 17:55:58 -04:00
Ben Newman
c7bdc70792 Bump $BUNDLE_VERSION to 4.6.2 before rebuilding dev bundle. 2016-10-28 16:11:30 -04:00
Ben Newman
4b618ac289 Download Python from S3 when building Windows dev_bundle.
Should fix #7960.
2016-10-28 16:11:30 -04:00
Jesse Rosenberger
3ee8c252bb Fully implement --no-release-check for meteor test
I accidentally a line when I committed/submitted meteor/meteor#7799, as reported in this comment:

https://github.com/meteor/meteor/issues/7026#issuecomment-256728729

The `METEOR_NO_RELEASE_CHECK` environment variable did/does work properly, but both were meant to work.
2016-10-28 16:11:30 -04:00
Ben Newman
a2eb007242 Make Meteor babel-runtime/helpers/inherits match npm implementation.
https://github.com/meteor/meteor/issues/7956#issuecomment-256724898

Fixes #7956.
2016-10-28 16:11:29 -04:00
Ben Newman
50528819cf Change terminology from METEOR_UNSAFE_PERM to METEOR_ALLOW_SUPERUSER.
The --unsafe-perm option is still supported but no longer advertised.
2016-10-28 16:11:29 -04:00
Ben Newman
e4acc36f63 Respect METEOR_UNSAFE_PERM in addition to --unsafe-perm.
This is important for `meteor npm`, since we don't parse or pass through
Meteor-specific command-line arguments when running `meteor npm`.

When METEOR_UNSAFE_PERM is set, its value is now propagated to any npm
commands via the NPM_CONFIG_UNSAFE_PERM variable.

Helps with #7959.
Follow-up to #7821.
2016-10-28 16:11:29 -04:00
Ben Newman
1b3edb2300 Write files with appropriate mode in Builder#copyDirectory.
Fixes #7974.
2016-10-28 16:11:29 -04:00
Lucas Hansen
2d9a67e609 Replace forkJoin with enterJob to avoid fiber issues 2016-10-28 16:11:29 -04:00
Ben Newman
5bc9bb4982 Update modules test app to Meteor 1.4.2. 2016-10-28 16:11:29 -04:00
Thea Lamkin
ee881d16d2 Update Contribute.md
adding links, minor edits
2016-10-28 16:11:28 -04:00
Thea Lamkin
5c41afb950 Add project overview section to Contributing.md
Expanding on ways to contribute and project roles
2016-10-28 16:07:31 -04:00
Christian Klaussner
c38abe8d51 Fix link to Google documentation (#7942) 2016-10-28 16:07:31 -04:00
Ben Newman
7858fb2431 Merge pull request #7980 from meteor/fix-jsdocs
JSdoc refactoring to make API boxes work again.
2016-10-28 14:50:05 -04:00
Ben Newman
8d5bfd8ae9 Trivial: fix comment indentation. 2016-10-28 14:49:46 -04:00
Tom Coleman
04f401c711 JSdoc refactoring to make API boxes work again. 2016-10-27 14:55:56 -07:00
Ben Newman
7614c0d5d5 Merge pull request #7668 from meteor/release-1.4.2
Release 1.4.2
2016-10-25 14:14:32 -07:00
Ben Newman
f39812bd4b Bump package versions for the official 1.4.2 release. release/METEOR@1.4.2 2016-10-25 10:20:21 -07:00
Ben Newman
45626b699b Support METEOR_DISABLE_FS_FIBERS to help @veered debug fiber storms. 2016-10-25 10:07:42 -07:00
Ben Newman
cadf113e6c Only strip devDependencies when buildMode !== "test".
Follow-up to #7953.
2016-10-25 08:46:33 -07:00
Ben Newman
b40df12129 Bump package versions for 1.4.2-rc.4 release. release/METEOR@1.4.2-rc.4 2016-10-24 22:44:11 -07:00
Ben Newman
03e798abc9 Only strip devDependencies when buildMode === "production".
Fixes #7953.
2016-10-24 22:10:02 -07:00
Ben Newman
7bcc50c842 Add profiling for meteorInstall-based require calls.
The options.wrapRequire API is new in install@0.8.2.
2016-10-24 18:48:16 -07:00
Ben Newman
33964e9661 Add profiling for Npm.require calls during server startup. 2016-10-24 18:18:03 -07:00
Ben Newman
0993eb664a Preserve own properties from Profile-wrapped functions. 2016-10-24 18:18:03 -07:00
Ben Newman
dbf8471c1f Bump package versions for 1.4.2-rc.3 release. release/METEOR@1.4.2-rc.3 2016-10-23 18:17:51 -04:00
Ben Newman
739890d955 Bump compiler.BUILT_BY and LINKER_CACHE_SALT. 2016-10-23 18:17:26 -04:00
Ben Newman
64e40df9c3 Add note to History.md about METEOR_PROFILE server startup data. 2016-10-23 18:08:32 -04:00
Ben Newman
38de7373f1 Remove version constraints from packages/accounts-password/package.js.
Version constraints are unnecessary when publishing a release, and tend to
complicate things when the constraints are out of date with packages that
are updated by the release.

https://github.com/meteor/meteor/issues/7951#issuecomment-255615050
2016-10-23 17:45:48 -04:00
Ben Newman
bdee913b1b Support npm packages with native .node "main" modules.
Note that the value of the "main" property must include the ".node"
extension explicitly, because I have yet to encounter an npm package with
a native "main" module that omits the ".node" extension, and I am loathe
to start calling files.stat(id + ".node") uselessly for every single
missing module.

Fixes #7947.
2016-10-23 17:43:06 -04:00
Ben Newman
8e9896cfcf Include server startup timings in METEOR_PROFILE output.
Meteor 1.4.2 has been mostly focused on improving rebuild times, but what
ultimately matters is the time from changing a file to being able to make
requests against the restarted server, and any code that runs before
server startup should be considered part of that critical path.

If you have a lot of packages, and they do non-trivial work on startup,
this commit should give you much better insight into where time is spent.

Credit to @stubailo for pushing me to provide Meteor developers with
better profiling tools, and thanks to @veered for this specific idea.

Note: because tools/tool-env/profile.js is now loaded as-is by boot.js,
certain ECMAScript features are off-limits, e.g. ...rest params.
2016-10-23 16:36:23 -04:00
Ben Newman
548a288c61 Call Npm.require("meteor-babel") only when needed.
In practice, the non-isopacket version of meteor-babel is only used by the
shell-server package, so this saves ~200ms of reload time.
2016-10-22 21:14:39 -04:00
Ben Newman
5ae7a0954d Mark JS hot-code-push test "slow" so CircleCI will skip it.
This test has been the primary source of test suite unreliability in
recent weeks. By marking it "slow" I'm effectively disabling it on
CircleCI, which I think is acceptable because (1) it is, in fact, quite
slow; (2) it passes locally on Linux; and (3) it depends on the timing of
file change notifications, which is a recipe for test flakiness due to the
general non-determinism of file watching, but not necessarily a sign of a
broken developer experience.

Like other "slow" tests, I will keep running this test locally via

  meteor self-test --slow 'javascript hot code push'

as part of the manual QA testing that we do.
2016-10-22 13:56:06 -04:00
Ben Newman
01fdec14c2 Merge pull request #7943 from meteor/release-1.4.1.3
Release 1.4.1.3
2016-10-22 12:12:29 -04:00
Ben Newman
0492b21333 Attempt to fix hot-code-push test by adding additional timeout. 2016-10-22 11:59:45 -04:00
Ben Newman
b938e089e6 Bump package versions for 1.4.2-rc.2 release. release/METEOR@1.4.2-rc.2 2016-10-21 22:20:34 -04:00
Ben Newman
4ecfaad4b1 Bump $BUNDLE_VERSION to 4.6.1 before rebuilding dev bundle.
For once, this version coincides exactly with the Node version!
2016-10-21 22:16:29 -04:00
Ben Newman
e2be0bbc8a Upgrade the npm npm package to version 3.10.9. 2016-10-21 22:16:29 -04:00
Ben Newman
0308e38d51 Merge branch 'release-1.4.1.3' into release-1.4.2 2016-10-21 22:03:54 -04:00
Ben Newman
0d3c74d11c Only call watchersByIno.set(ino, entry) if ino > 0. 2016-10-21 21:39:39 -04:00
Ben Newman
35da19ab4e Avoid "The handle(...) returned by watching..." errors on Linux.
It's a shame that Pathwatcher issues this warning using console.error,
without taking any verbosity options into account:
https://github.com/atom/node-pathwatcher/blob/7ef76e5dfd/src/main.coffee#L53

Fortunately, I believe I've identified the underlying reason why this
happens, which may help resolve the following issue:
https://github.com/atom/node-pathwatcher/issues/98

If all goes well, I'll submit an upstream pull request.

I've also reinstated an old file watching test that I mistakenly removed
when I attempted to switch to chokidar instead of pathwatcher.
2016-10-21 21:14:44 -04:00
Ben Newman
f419899ce7 Bump package versions for the official 1.4.1.3 release. release/METEOR@1.4.1.3 2016-10-21 20:15:28 -04:00
Ben Newman
48a2ccbde7 Dirty optimistic functions when node_modules directories change.
This is a bit different from the previous strategy of invalidating
optimistic functions for specific npm package names.

Now, whenever we make changes to the contents of a specific node_modules
directory, or whenever the developer independently modifies an app's
node_modules directory, all optimistic results derived from paths
contained within that node_modules directory will be marked as dirty, and
thus may need to be recomputed.

This strategy prioritizes starting fewer watchers (just one per
node_modules directory) while still allowing npm packages to be added or
removed while the app is running:

  https://github.com/meteor/meteor/pull/7668#issuecomment-255120373

The drawback is that changes within subdirectories of node_modules will
not be detected until the server is fully restarted, but that seems like
an acceptable tradeoff, since npm packages change much less often than
application code.
2016-10-21 20:06:23 -04:00
Ben Newman
5df8f89f7b Warn about babel-runtime helpers not provided by the Meteor package. 2016-10-21 17:56:01 -04:00
Ben Newman
42a9d37326 Tolerate missing files in ImportScanner#_readModule. 2016-10-21 14:00:13 -04:00
Ben Newman
e50d916709 Don't swallow JSON.parse SyntaxErrors in optimisticReadJsonOrNull. 2016-10-21 14:00:13 -04:00
Ben Newman
247fa7b8ae Bump package versions for 1.4.1.3-rc.1 release. release/METEOR@1.4.1.3-rc.1 2016-10-21 12:38:09 -04:00
Ben Newman
c6975d8eb7 Upgrade mongodb npm package to version 2.2.11. 2016-10-21 12:28:34 -04:00