Commit Graph

32 Commits

Author SHA1 Message Date
David Glasser
27d67fe379 Remove "deploy legacy app" tests
These tested a transition that occured in February. The tests are very
slow because each test does an uncached download of Meteor 0.7.0.1. We
are unlikely to break the logic that it tests and even if we do, it will
only affect users who haven't touched their apps since February.
2014-11-25 09:06:25 -08:00
David Glasser
170c0acad7 Rename unibuild everywhere to isopackets 2014-11-07 16:45:58 -08:00
David Glasser
9cab094f18 uniload now works via named "isopackets"
You can only request a named set of packages, not a random assortment.

In future commits, we will pre-build these packages into JsImages and
load them from that. Building packages for uniload will eventually not
involve the .build.foo directories at all.  (All saved packages will be
built in app context, eventually.)
2014-11-07 16:45:57 -08:00
David Glasser
8f3966fbf4 Format deploy console messages to include protocol 2014-10-13 17:36:40 -07:00
David Glasser
d6957bad00 All uniload.load for ddp should be the same
Otherwise the uniload cache doesn't work. This shaves a 365 ms off of
stats report for me (in a built release, which doesn't even use the
compiler!)
2014-09-08 18:45:30 -07:00
Sashko Stubailo
3189a364e9 Rename livedata to ddp, meteor test-packages passes 2014-08-28 12:53:34 -07:00
Emily Stark
1b9f57322b Add packages organizations selftest 2014-08-27 15:56:08 -07:00
Emily Stark
ec0d2bc8b5 Progress towards self-test using DEPLOY_HOSTNAME.
Still can't run all tests against testing servers because the testing
accounts server would need to be configured to send email.
2014-08-25 19:37:47 -07:00
David Glasser
08a6fa99fd Don't use _.once or instanceof with uniload
_.once has the problem that if you call the once'd function while it is
still in progress (re-entrantly or in another Fiber), it returns
undefined immediately.  That's bad for uniload! uniload already has a
cache, so just use that.  (In the future, perhaps detect an attempt to
uniload something that's currently in the process of being uniloaded in
another fiber and block until the other fiber is ready.)

Using instanceof with things you've uniloaded is a little sketchy: maybe
two different uniload calls will end up with two different copies of
Package.meteor.Meteor.Error, and it seems kind of hairy to ensure you're
not mixing and matching copies.  However, Meteor.Errors are all tagged
with a string errorType, which fills me with much less fear,
uncertainty, and doubt than instanceof.
2014-08-17 23:37:38 -07:00
David Glasser
1d17caeeaf Merge branch 'devel' into packaging 2014-07-31 15:07:40 -07:00
Emily Stark
bf0e0b61df Fix usage of timeoutScaleFactor in test-utils 2014-07-31 15:05:56 -07:00
David Glasser
26006d53dc Merge branch 'devel' into packaging
Conflicts:
	tools/utils.js
2014-07-30 17:40:44 -07:00
Justin SB
706fc7ebe7 Allow TIMEOUT_SCALE_FACTOR env variable to scale up timeouts for self-test
Particularly for automated tests, where we may run on a slow machine, we need
an escape valve to let us boost the timeouts.  This also allows for a 'tolerant'
test (scale factor 2+?) and a 'strict' test (scale factor 0.5?) etc
2014-07-30 14:37:18 -07:00
Emily Stark
9e3d6fc5cf Merge branch 'package-stats' into packaging
Conflicts:
	tools/commands.js
2014-05-13 13:43:48 -07:00
David Glasser
e4000c6808 Merge branch 'devel' into packaging
Conflicts (around utils.quotemeta):
	tools/packages.js
	tools/utils.js
2014-05-12 17:06:11 -07:00
Avital Oliver
6696e2751e Respond to Emily's code review comments 2014-05-12 16:45:49 -07:00
Avital Oliver
a51b4697ae Test that userId is recorded when sending package stats. 2014-05-12 16:24:36 -07:00
David Glasser
9d70ff64c9 springboard almost works
springboarding happens infinitely because of build ids

have to manually bootstrap a tropohouse

fixed some other things:

 - store package server token in correct domain
 - copy files (eg packages pre-publish) with +x flags
 - catalog.getReleaseTrack works
 - don't pass release to uniload (Meteor.release will always
   end up 'UNILOAD')
 - fix building meteor-tool again
 - stop supporting apps without .meteor/release
 - merging unipackages with tools works

springboarding to warehouse releases totally not supported
2014-05-05 19:18:34 -07:00
Emily Stark
0a5297d39b Bump a test timeout 2014-04-26 14:46:32 -07:00
Geoff Schmidt
688f7b3643 rename unipackage.load to uniload.load 2014-03-13 21:47:12 -07:00
Geoff Schmidt
3f8beb0935 unipackage.load no longer takes a library 2014-03-11 14:42:42 -07:00
David Glasser
0aa0bf0ade Make some tests more likely to pass on slow net
We really should download 0.7.0.1 just once for all tests as some
special-cased thing in selftest.js, I think.
2014-02-25 00:28:48 -08:00
Emily Stark
8f9f793c32 Add test for 'meteor deploy --settings' 2014-02-19 11:33:13 -08:00
Emily Stark
7e6505cf0a Add tests for authorized and claim with no username set 2014-02-18 23:45:26 -08:00
Emily Stark
87f22606ff Factor our accounts command timeout in more places.
We've been seeing flakiness on login tests on different internet
connections, so now we can easily bump up the timeout (at the cost of
slowing down test failures).
2014-02-15 14:46:59 -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
e1548ed0cd Add first deferred registration test 2014-02-14 14:58:59 -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
d5a587cf1c Update test-utils comments 2014-02-13 21:23:44 -08:00
Emily Stark
33da8066ec Add forgotten test-utils export 2014-02-13 20:42:14 -08:00
Emily Stark
53e87bc58b Put test-utils into their own namespace 2014-02-13 20:40:43 -08:00
ekatek
954aafa44d tests for authorized and claim, factored out utils'
'
2014-02-13 14:57:08 -08:00