Commit Graph

5745 Commits

Author SHA1 Message Date
Ben Newman
e90ce88b0e Fix a bug in tools/utils/http-helpers.js. 2016-07-14 11:27:58 -04:00
Ben Newman
0f4aedb7fb Call npm rebuild --update-binary in npm-rebuild.json. 2016-07-14 11:27:57 -04:00
Ben Newman
391a7a3134 Ensure parent directory exists in files.writeFileAtomically. 2016-07-14 11:27:56 -04:00
Ben Newman
69b100d21a Save .meteor/local/resolver-result-cache.json to improve startup performance. 2016-07-14 11:27:56 -04:00
Ben Newman
ea236fc9da Try harder to create .meteor/dev_bundle symlink.
May help with #7391.
2016-07-14 11:27:55 -04:00
Ben Newman
c3e73c264c Prevent archinfo.host() from yielding by forcing its result to be cached. 2016-07-14 11:27:55 -04:00
Ben Newman
a37d226da8 Return all packages from getProdPackageNames if package.json missing. 2016-07-14 11:27:54 -04:00
Ben Newman
934bdcf598 Rebuild binary npm packages used by compiler plugins, too.
Fixes #7297.
2016-07-14 11:27:54 -04:00
Ben Newman
78fcabbd58 Always link .meteor/dev_bundle to release specified in .meteor/release.
I was mistaken to think that files.getDevBundle() would be called after
springboarding to the appropriate release.
2016-07-14 11:27:53 -04:00
Eli Skeggs
6c455a9321 Add --raw-logs option for meteor test (#7398)
Fixes #7396.
2016-07-13 17:15:40 +00:00
Ben Newman
f8b1bba606 Improve .meteor/dev_bundle link reading and creation. 2016-07-10 15:39:46 -04:00
Ben Newman
74aea0ca3c Update modules test app to Meteor 1.3.4.4. 2016-07-10 15:26:06 -04:00
Ben Newman
0689cae25a Set loglevel = error for Npm.depends-related npm commands. 2016-07-10 10:04:50 -04:00
Ben Newman
1dac34f00c Store .meteor/dev_bundle target as text when symbolic linking fails.
This wouldn't work if .meteor/dev_bundle needed to be a true symbolic
link, but fortunately we just need to record the target path in a way that
allows us to read it later.

Fixes #7374.
2016-07-09 17:15:21 -04:00
Ben Newman
77feb7b76a Decompose readLink and makeLink helper functions.
Part of #7374.
2016-07-09 16:55:14 -04:00
Ben Newman
126b9172c7 Update modules test app to Meteor 1.3.4.3. 2016-07-08 22:07:05 -04:00
Ben Newman
b2cae10a24 Always update .meteor/dev_bundle when reading .meteor/release. 2016-07-08 13:44:06 -04:00
Ben Newman
9e6ebde836 Make sure .meteor/.gitignore ignores .meteor/dev_bundle.
https://github.com/meteor/meteor/pull/7340#issuecomment-231253317
2016-07-08 13:44:05 -04:00
Ben Newman
e2dbb6093e Always call updateMeteorToolSymlink after successful update.
https://github.com/meteor/meteor/pull/7340#issuecomment-231254368
2016-07-08 13:44:04 -04:00
Ben Newman
817187bfc9 Bump LINKER_CACHE_SALT to trigger relinking. 2016-07-07 17:01:12 -04:00
Ben Newman
a9e8cbe267 Move Promise runtime setup into its own module.
Test code was requiring the install-runtime.js module without requiring
the index.js module, so global.Promise was not defined.
2016-07-07 17:01:11 -04:00
Ben Newman
7b37188279 Remove .meteor/dev_bundle if .meteor/release reads "none". 2016-07-07 16:51:04 -04:00
Ben Newman
542891b65d Make meteor {node,npm} respect .meteor/dev_bundle when possible. 2016-07-07 15:24:25 -04:00
Ben Newman
6cd1c472d9 Create a .meteor/dev_bundle symlink when writing .meteor/release.
This will make it easier for `meteor node` and `meteor npm` to find the
right dev_bundle for the current application.
2016-07-07 15:24:24 -04:00
Ben Newman
b23ad6d85f Respect .meteor/release when running meteor {npm,node} from checkout. 2016-07-07 15:24:24 -04:00
Ben Newman
eadb6e65cc Ensure only one Promise constructor is ever used by tools code. 2016-07-07 11:04:18 -04:00
Ben Newman
f812762353 Infer dev_bundle for meteor {npm,node} from .meteor/release.
Fixes #7338.
Fixes #7297.
2016-07-06 21:00:40 -04:00
Ben Newman
9c37dbf3e5 Only write .meteor-portable files in npm package directories.
Also clean up any existing misplaced .meteor-portable files.

Fixes #7296.
2016-07-06 21:00:39 -04:00
Ben Newman
c91a95cbef Make sure meteor shell options JSON is parsed separately.
Also don't ignore the `error` parameter passed to the readJSONFromStream
callback function.

Fixes #7312.
2016-07-06 21:00:39 -04:00
Ben Newman
1783559b56 Use ES2015 syntax to import JsFile and CssFile. 2016-07-06 21:00:39 -04:00
Ben Newman
9d417303c1 Symlink .meteor/local/plugin-cache in temporary test directory.
Because the cache directories are shared instead of copied, the results
now have a chance of surviving multiple invocations of `meteor test`.

This significantly reduces rebuild times when testing a large app; for
example, the meteor/tools/tests/apps/modules app now takes less than 10
seconds to rebuild (after restarting the process, not after a file change)
instead of 60 seconds or more.
2016-07-06 21:00:38 -04:00
Ben Newman
9865322d4c Compute prodPackageNames lazily. 2016-07-06 21:00:38 -04:00
Ben Newman
94f9ebbdd8 Don't call nonexistent writeHead method of net.Socket objects. 2016-07-06 21:00:38 -04:00
Ben Newman
ad997e9d4d Tolerate non-string results from path.* functions.
In particular, path.isAbsolute returns a boolean value.
2016-07-06 21:00:37 -04:00
Wexpo Lyu
5aaf1877f9 Update the code using files. 2016-07-04 06:19:36 +08:00
Wexpo Lyu
2e73838926 Relative path resolves to project directory.
Fixing #7292
2016-07-03 12:41:18 +08:00
Gabriel Rubens
cbb9e219d7 Include test for App.appendToConfig 2016-06-29 09:18:12 +10:00
Gabriel Rubens
2be5bedc19 Update App.appendToConfig to use a raw string 2016-06-29 09:18:12 +10:00
Gabriel Rubens
3797ab014e Implement App.appendToConfig 2016-06-29 09:18:12 +10:00
Tom Coleman
8bdbcb7199 Marginally more helpful message to install phantom for self-test 2016-06-29 08:24:58 +10:00
Ben Newman
d023789e10 Merge pull request #7285 from meteor/release-1.3.4.1
Release 1.3.4.1
2016-06-24 16:12:18 +00:00
Martijn Walraven
238623ca74 Avoid building Cordova project when no run targets are specified
Fixes #7271.
2016-06-24 15:19:09 +02:00
Ben Newman
12e563664b Disable the HTTP timeout for the Galaxy upload POST. 2016-06-23 11:49:57 -04:00
Ben Newman
df77c39908 Bump default HTTP timeout to 60 seconds, and allow disabling. 2016-06-23 11:49:23 -04:00
Tom Freudenberg
4cd91f67fa Fix error on accessing empty releaseRecordForConstraints var
When running meteor from checkout this var is defined to be null.
	Accessing var instance attribute will raise an exception
2016-06-23 02:01:32 +02:00
Ben Newman
6c55961d98 Revert "Tolerate UNKNOWN errors in files.statOrNull on Windows."
This reverts commit 7ea260dac2.

The original reporter of #7243 says the problem has gone away (see
https://github.com/meteor/meteor/issues/7243#issuecomment-227643684), and
I would rather not hide UNKNOWN errors if we can help it.
2016-06-22 15:26:37 -04:00
Ben Newman
8507d44717 Flatten the files.withCache hierarchy.
It turns out throwing away cached results collected during nested
file.withCache calls was not a good idea.
2016-06-22 15:12:30 -04:00
Ben Newman
b14fb05128 In node_modules directories, cache packageSource._findSources.
This caching vastly reduces the amount of work _findSources must do when
the server restarts, at the small cost of ignoring new files added within
node_modules subdirectories. Even if you have to restart the server when
you add a file to node_modules (super rare), that's still MUCH better than
waiting for _findSources to rescan the node_modules directory every time
the server restarts.

Part of #7253 and #7008.
2016-06-22 14:45:11 -04:00
Ben Newman
a2e380d154 Cache files.{stat,lstat,realpath,readdir} hierarchically.
Passing a function to files.withCache invokes the function and causes the
results of these four files.* methods to be cached for the duration of the
function invocation.

Part of #7253 and #7008.
2016-06-22 14:41:54 -04:00
Ben Newman
9a5907b911 Merge branch 'devel' into release-1.3.4 2016-06-22 13:22:44 -04:00