Commit Graph

1180 Commits

Author SHA1 Message Date
Emily Stark
7336bf901b bump some self-test timeouts 2014-06-16 18:15:38 -07:00
David Glasser
31a5f4014f Improve comment and message
Make sure that it shows you that it added '.meteor.com'.
2014-06-10 17:10:34 -07:00
J. Bruni
ab5c2513cd Show meaningful deploy error message for long hostname
https://github.com/meteor/meteor/issues/1208#issuecomment-45158503
2014-06-10 17:05:28 -07:00
Slava Kim
0f82f8406a Remove a dead import 2014-06-05 14:44:13 -07:00
Emily Stark
e6271d6a7d Tweak error message for circular build-time deps 2014-06-02 14:15:17 -07:00
David Glasser
bceab2cbb6 Notice changes to npm-shrinkwrap.json
There were two separate issues here:

 - npm-shrinkwrap.json wasn't actually being used as part of the
   watchset/buildinfo, so changes to it might not cause the package to
   be considered for rebuilding

 - meteor-npm only compared top-level changes when deciding whether to
   update, not all changes

Fixes #1648
2014-06-02 14:06:11 -07:00
David Glasser
2e79408658 start up mongo even if 'ps ax' output is >200KB
10MB should really be enough though.

Fixes #2158.
2014-05-23 18:08:13 -07:00
David Glasser
00157d8aed meteorNpm.dependenciesArePortable skip bad symlink
stat fails if a symlink points to something nonexistent. since we're
literally looking for stuff physically under a directory, we don't need
to chase symlinks.
2014-05-23 17:53:35 -07:00
Kenton Varda
2c7e71b47d Add option to meteor bundle to output a directory.
This is useful when the output tarball would just be unpacked immediately
anyway, e.g. because it is part of a larger build process. This shaves
eight seconds off my build. :)
2014-05-22 19:32:41 -07:00
David Glasser
21bc8be7df get error message in 'ps ax' failure case
We still want JSON.stringify too because that includes stuff like the
exit code.

See #2158
2014-05-22 15:43:26 -07:00
Emily Stark
bf8426322c Merge branch 'master' into devel 2014-05-22 09:50:17 -07:00
Emily Stark
107e908757 Remove short aliases for meteor authorized in help text.
Fixes #2155.
2014-05-21 11:21:01 -07:00
Emily Stark
6189a92536 Revert "Add short aliases for '--add' and '--remove' options in "meteor authorized""
This reverts commit 32fc06e7f8.

As Glasser points out, our command option parsing is such that all `-a`
flags for commands have to be consistent in whether they are boolean or
not. Since we could easily imagine wanting a boolean `-a` or `-r` flag
in the future, we should be careful about adding these aliases. We'll
update the docs to remove `-a` and `-r` instead.
2014-05-21 11:08:46 -07:00
Slava Kim
32fc06e7f8 Add short aliases for '--add' and '--remove' options in "meteor authorized"
Fixes #2155
2014-05-20 17:32:25 -07:00
Slava Kim
6f8e18b5d7 Add short aliases for '--add' and '--remove' options in "meteor authorized"
Fixes #2155
2014-05-18 01:39:53 -07:00
Avital Oliver
5358af451c selftest: return null when reading a file that doesn't exist 2014-05-08 16:21:05 -07:00
Felix Rabe
819bdb31b0 Looks like a typo (untested minor change) 2014-05-07 17:55:08 -07:00
Felix Rabe
d22a10cf1c Typo 2014-05-07 17:55:07 -07:00
Felix Rabe
3431c66c16 Fix occurrences of "cd dirname $0"
They are not safe for spaces in paths. There might be other places to look for trouble.

I've run the following command to produce this commit: (on OS X, copy-and-pasting the below exactly)

    find . -type f -name '*.sh' -print0  |  # Find all .sh files
        xargs -0 fgrep -H -- '`'         |  # See all places with backticks in them
        fgrep 'cd `dirname $0'           |  # I deemed these problematic (variable assignments are safe)
        cut -d ':' -f 1                  |  # Take the <file> from <file>:<line> produced by "grep -H"
        tr '\n' '\0'                     |  # Also here, spaces can be problematic - always do "xargs -0"!
        xargs -0 -- sed -i '' 's/cd `dirname $0`/cd "`dirname "$0"`"/g'

The significance of adding the two levels of "'s can be verified by running the following in your Terminal:

    $ node -e 'console.log(process.argv.splice(1))' -- `echo 1   2`
    [ '1', '2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo 1   2`"
    [ '1 2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo "1   2"`"
    [ '1   2' ]
2014-05-07 17:51:09 -07:00
David Glasser
f2e2a781cc Update Node to 0.10.28 which includes our npm fix 2014-05-02 10:59:37 -07:00
David Glasser
e0fcd2c2ed update regexp for new version of npm
also, use quotemeta where necessary
2014-04-30 18:03:54 -07:00
David Glasser
314c8a1a34 We no longer need to pass --force to npm install
(Also, make a test assertion useful: assert.equal's default truncation
is horrible.)
2014-04-30 18:03:53 -07:00
David Glasser
5137250aee Improve 'meteor mongo' error message
Fixes #1256
2014-04-30 17:35:04 -07:00
Emily Stark
0a5297d39b Bump a test timeout 2014-04-26 14:46:32 -07:00
David Glasser
a8869d07ec Provide a better error if ROOT_URL is not an URL
Fixes #1404.
2014-04-22 15:52:52 -07:00
Stephen Darnell
a9f65f0759 Stop node tar from including proprietary tags
The linux tar whinges about unrecognised headers (though newer versions
include an option to not warn).
By building tar files without proprietary, we will be able to use
files.createTarball() in more places.
For example, undo commits 1c36bbaa79 and
1e2a40ef2b
2014-04-21 18:45:21 -07:00
Emily Stark
568b0f929c Change 'port' to 'proxyPort' in test-packages and update run-all comment.
run-all interface was changed in 9b8bd31a.
2014-04-20 17:23:03 -07:00
David Glasser
afd9640bb6 Remove outdated comment
We no longer have a restriction that short options only take numbers
2014-04-18 14:39:50 -07:00
David Glasser
3fc4a30bfe Better error message for -p bogus:1234 2014-04-18 14:39:31 -07:00
David Glasser
9b8bd31a7b Allow specifying interface with -p and --app-port
The syntax is "--port host:port".

Not implemented for test-packages. No control is available over mongo
ports (port or host).

Fixes #469 and #1105.
2014-04-18 14:15:14 -07:00
David Glasser
a4a66aeede tools api change: rename port to proxyPort 2014-04-18 13:43:51 -07:00
Emily Stark
2b27950619 Add a basic test for 'meteor list-sites' 2014-04-17 16:58:08 -07:00
Emily Stark
a03ff1b614 Merge branch 'list-apps' into devel 2014-04-17 16:57:58 -07:00
David Glasser
72c9657b0e Test that observeChanges works over a failover 2014-04-10 16:56:32 -07:00
David Glasser
1d5da6b439 Add a flag to MongoRunner which runs 3 mongods
This is only intended for testing. No data is preserved from one run to
the next, and if any mongod exits for any reason, the rest are killed;
there is no mongod restarting.

It takes a while (~20 seconds) to start up because it waits for the
replset to be ready.
2014-04-10 16:56:31 -07:00
Nick Martin
714e513b99 Upgrade Node.js from 0.10.25 to 0.10.26 2014-04-07 22:56:41 -07:00
David Glasser
498e572230 Make self-test less flaky with more waits. 2014-04-07 20:09:30 -07:00
David Glasser
3405644027 Fix runner.stop() while waiting for file change
Before this, if the runner decided to stop (eg, because mongod is
crashing too much) while waiting for file change, it would crash due to
an attempt to wait within a fiber.  Fixing that bug by adding an inFiber
would then lead to the process just not exiting, because nothing stops
the wait-specific future.
2014-04-02 21:16:59 -07:00
David Glasser
82aa3485ac Assign the Fiber to self.fiber.
Doing so reveals a deadlock in the stop code (which causes self-test to
fail, yay).  Fix it by trying harder to not stop the (all or app) runner
until after the app runner has processed the "hey you should stop"
return false from onRunEnd.
2014-04-02 20:27:54 -07:00
David Glasser
f36abc946e Generalize "load *.html files first" hack
Now any plugin can request that its files be treated as "templates" by
setting an isTemplate flag.

(This API is just as supported as you'd expect based on the fact that
you still can't access it without calling a function which starts with
"_transitional_".)

Tested by renaming leaderboard.js to a.js and confirming that it still
works (and that it *doesn't* if templating does not set isTemplate).
2014-04-01 17:21:24 -07:00
David Glasser
d287d36bac Make run tests less flaky 2014-03-31 20:03:01 -07:00
David Glasser
3e76ad7946 Don't use require('./run-log.js').runLog
If you happen to introduce a circular require into the stack, this
object will be undefined.

Instead, hang on to `require('./run-log.js')`, which is the exports
module which does get filled in later.
2014-03-31 19:52:02 -07:00
Andrew Wilcox
6f4f723c6a Allow user to set heartbeat interval to 0 to disable sending pings.
Add test flag `_respondToPings` which allows tests to disable
responding to pings.
2014-03-30 20:03:29 -07:00
Andrew Wilcox
8709365598 Stop heartbeats on client side disconnect.
Use heartbeatInterval: 0 to disable heartbeats for testing.

No need to add `_internal` to the public connection API because we
can get to the internal session through the server.
2014-03-30 20:03:29 -07:00
Andrew Wilcox
865eb30015 Move protocol out of heartbeat.js 2014-03-30 20:03:29 -07:00
Andrew Wilcox
0ac3bf9d4b Move the ddp-heartbeat test into tools/tests. 2014-03-30 20:03:29 -07:00
Avital Oliver
72c901553e Merge branch 'release-0.8.0' into devel
Conflicts:
	History.md
2014-03-26 20:55:34 -07:00
David Glasser
1d9c2443e8 Automatically remove deprecated preserve-inputs 2014-03-26 15:02:34 -07:00
David Glasser
b2632d45c5 Move boilerplate HTML from tools to webapp
This breaks a strong dependency between the webapp package and the
bundler.  Now we can change the standard page format, add more hooks,
etc without changing the tools (and hot code push works properly).

This is an incompatible change to the definition of the
browser-program-pre1 format: it no longer contains a "page" field
pointing to a boilerplate defined using ad hoc ##FOO##
substitution. Instead, the manifest can contain "head" and "body"
entries for data added with compileStep.appendDocument().  (Note that in
Blaze, <body> in a template file no longer calls appendDocument.)

WebApp.addHtmlAttributeHook callbacks now return attribute objects (like
those that Spacebars supports) rather than strings.
2014-03-24 20:10:39 -07:00
Emily Stark
bdbd6a2484 Return immediately if not logged in on 'meteor list-sites' 2014-03-24 10:42:06 -07:00