Commit Graph

1019 Commits

Author SHA1 Message Date
Robert Dickert
d861776948 Put /node_modules in package root on build
Fixes #1761.

Package code pulled from a git repo does not contain the directory
`/node_modules`, as these modules are downloaded during the build
process. However, this can confuse NPM prior to build completion.

If the package directory doesn’t have a '/node_modules' subdirectory,
NPM will assume we are not at the package root and will search the
directory's parents for one. It will then set the root to any ancestor
that does have a '/node_modules' subdir. This can cause the build to
fail for downloaded user packages and also Meteor itself if run from
checkout.

See also #927.
2014-02-17 15:38:44 -08:00
Emily Stark
c09d5e1578 Remove stray %s in update message. 2014-02-14 18:46:57 -08:00
Emily Stark
bc0b1ce53c Rename a test timeout variable and use it in more places.
Bump some more timeouts too.
2014-02-14 18:30:15 -08:00
Emily Stark
b04aa12d39 Make 'empty' a test app with no packages.
Rename previous 'empty' app to 'standard-app'.
2014-02-14 17:59:59 -08:00
Emily Stark
c248fcd673 Clarify registration test comment 2014-02-14 15:03:39 -08:00
Emily Stark
c847142344 Fix registration test error check 2014-02-14 15:02:51 -08:00
Emily Stark
708a818654 Fix typo in registration test comment 2014-02-14 15:01:22 -08:00
Emily Stark
e1548ed0cd Add first deferred registration test 2014-02-14 14:58:59 -08:00
Emily Stark
73a7a09ebe Require test-utils as testUtils instead of utils.
Avoids confusion with utils.js.
2014-02-14 10:01:14 -08:00
David Glasser
c5efe36bce Ensure we don't double-return through runFuture 2014-02-14 01:06:18 -08:00
David Glasser
ea793cb906 Test for #1808 2014-02-14 00:24:49 -08:00
James Hamlin
be0bce89c1 Maintain file modes when copying a directory.
A package may depend on some files in its dependencies being executable,
so builder ought to respect the modes of source files when copying into
a bundle.
2014-02-14 00:24:49 -08:00
Emily Stark
e0719ecca2 Make 'deploy - logged out' test not depend on pre-existing apps.
Deploy tests pass, but soooo slooooooowly.
2014-02-13 23:12:43 -08:00
Emily Stark
eb570e686b Bump a deploy-auth test timeout 2014-02-13 21:23:59 -08:00
Emily Stark
d5a587cf1c Update test-utils comments 2014-02-13 21:23:44 -08:00
Emily Stark
51e5d197e6 Make 'meteor claim' test as slow 2014-02-13 21:20:41 -08:00
Emily Stark
06ff4d27fb Bump timeouts on 'meteor claim' tests 2014-02-13 21:11:25 -08:00
Emily Stark
66a5429fc7 Add markStack to 'meteor claim' test helpers. 2014-02-13 20:46:20 -08:00
Emily Stark
ccfd57f627 Clean up a deploy test with new test-utils 2014-02-13 20:43:49 -08:00
Emily Stark
33da8066ec Add forgotten test-utils export 2014-02-13 20:42:14 -08:00
Emily Stark
a3829ab5d8 Remove console.log, add semicolons 2014-02-13 20:41:27 -08:00
Emily Stark
53e87bc58b Put test-utils into their own namespace 2014-02-13 20:40:43 -08:00
Emily Stark
0c42976321 Merge branch 'devel' into accounts-tests 2014-02-13 20:32:01 -08:00
David Glasser
20a8e679f7 use runLog in updater
Note that this can stomp on, eg, "Starting your app".
2014-02-13 19:37:55 -08:00
David Glasser
1f7fa9e4c4 a comment about runlog 2014-02-13 19:37:55 -08:00
David Glasser
ccb3f08b51 shouldn't show "installing" for background update
or for --get-ready

Follow-up to 52639e6 (regression in that commit)
2014-02-13 19:37:55 -08:00
Emily Stark
553bf14c78 Remove duplicate getSessionFilePath() function.
METEOR_SESSION_FILE is the only environment variable for setting your
session file now, not SESSION_FILE_PATH.
2014-02-13 19:13:32 -08:00
David Glasser
7318071327 increase a timeout 2014-02-13 19:11:30 -08:00
David Glasser
1752ceeb67 Attempt to kill processes after tests 2014-02-13 19:11:30 -08:00
David Glasser
a3931f3f15 selftest: wait until stdio processed 2014-02-13 19:11:30 -08:00
David Glasser
0ea4acc208 make bundler use runLog 2014-02-13 19:11:30 -08:00
David Glasser
c0ac1ce11e make meteor-npm use runLog
this allows its messages to show up on the proxy, eg.

There's now a mix of runLog and buildmessage in this file, for two
reasons.

First, buildmessage's model is "build up a set of messages and then
display them all at once"; there's no streaming output, which is not
appropriate for the logUpdateDependencies call (which is mostly intended
to explain to users why their build is taking time).

Secondly, buildmessage doesn't yet have a great way of formatting big
blocks of text like "all the stderr from a failed npm invocation". If it
had such a feature, that would replace most of the uses of runLog in
this file.
2014-02-13 19:11:30 -08:00
David Glasser
2586a50cd0 Refactor RunLog to be a singleton
The rationale: RunLog is an object that is hardcoded around managing two
other singletons: stdout and stderr. Having multiple RunLogs wouldn't
work well without improving RunLog to have the ability to control other
streams.

We'd like to be able to use RunLog from other places in the tool, most
notably from code called from bundler (while running an app) such as the
npm updater. But threading a RunLog object through that code is
difficult (especially as bundling takes a detour through
release.current.library).
2014-02-13 19:11:30 -08:00
David Glasser
52639e62bb --get-ready on built meteor now fails on error
Generally reorganize some silent/quiet/background flags to be more
explicit about what is being show/hidden.

The main point here is that the 'background updater' wants to show
banners but ignore errors, whereas --get-ready wants to show errors but
not banners.
2014-02-13 19:11:30 -08:00
David Glasser
8fd5369f58 slightly improve logs/mongo test logging
This makes the displayed error line be the caller of expectSuccess, not
expectSuccess itself.
2014-02-13 19:11:29 -08:00
David Glasser
4ce13da406 Fixes to new 'run' test
- can't set env var mid-process
- need to control fake mongo, and wait
2014-02-13 18:48:19 -08:00
Geoff Schmidt
84e1d5f7cd Add a basic runner test. 2014-02-13 18:48:19 -08:00
Geoff Schmidt
9eca81985b Enhance stack parser. 2014-02-13 18:48:18 -08:00
ekatek
e908f9540b Merge branch 'accounts-tests' of https://github.com/meteor/meteor into accounts-tests 2014-02-13 14:57:17 -08:00
ekatek
954aafa44d tests for authorized and claim, factored out utils'
'
2014-02-13 14:57:08 -08:00
Emily Stark
f4d5e44e75 Change logs match string to something that (I think) always appears 2014-02-13 14:39:11 -08:00
Emily Stark
6cf1a76332 Rewrite 'deploy - logged in test' to not rely on pre-existing apps.
Doesn't pass yet.
2014-02-13 13:07:37 -08:00
Emily Stark
a4e5a07cab Fix mistaken infoResult.payload check on 'meteor claim' 2014-02-13 11:48:01 -08:00
Emily Stark
e073cc1298 Add a test for typing a username in the email prompt.
Also remove another test where we were claiming our legacy password-less
app.
2014-02-12 15:18:22 -08:00
Emily Stark
20800f4be7 Make email prompt also accept a username 2014-02-12 12:27:03 -08:00
Emily Stark
16b786ad63 Don't claim our unclaimed test app in tests.
Also increase some test timeouts.
2014-02-12 11:46:58 -08:00
Emily Stark
76464f647d Give login prompt when necessary on logs/mongo commands.
Add tests for authentication on logs and mongo commands.
2014-02-12 11:22:57 -08:00
David Glasser
33827039c5 better comment on spawn events 2014-02-11 15:37:14 -08:00
Emily Stark
6f74596ab0 Add error messages for 'meteor mongo' too.
And some tests for logs error messages.
2014-02-11 15:12:52 -08:00
Emily Stark
c14cc0e6ca Add 'meteor logs' error messages for legacy-password/unauthorized apps. 2014-02-11 14:43:07 -08:00