Commit Graph

524 Commits

Author SHA1 Message Date
David Glasser
8f3966fbf4 Format deploy console messages to include protocol 2014-10-13 17:36:40 -07:00
Avital Oliver
cb97ed238b Add clarifying comment to failing pre-release versions self-test 2014-10-13 09:56:03 -07:00
Justin SB
73ff027fec Avoid EULA prompt that is breaking self-test
We need to rework the EULA prompt to be once-per-machine anyway.
2014-10-13 09:49:30 -07:00
Avital Oliver
9a6532c640 Work towards fixing the "do-not-update-to-rcs" self-test.
The test was failing because it was written to run against the real
local warehouse, instead of a stubbed one. When initializing the
Sandbox with an explicit warehouse, the test failed because of
incorrect logic piping the right path to the packages database
(in this case "test-packages.data.db" instead of "packages.data.db").

Unfortunately, the test still fails -- this time potentially due to a bug:
After publishing the package for the first time with `--create`,
the next step tries to update but gets the following error:
    There is no package named test:i1iyhj. If you are creating a
    new package, use the --create flag.
2014-10-12 23:08:26 -07:00
Nick Martin
11d43de256 disable test that breaks other tests 2014-10-11 20:44:02 -07:00
Emily Stark
99568e5d9b Add another 'selftest.markStack' 2014-10-11 00:04:27 -07:00
Emily Stark
f102432892 Add some selftest.markStack's and selftest.fail's 2014-10-10 23:39:31 -07:00
Justin SB
6bff6020be Add install-sdk to "cordova builds with server options" test 2014-10-10 19:50:34 -07:00
Slava Kim
4d41c4c7cd Fix failing meteor build self-test 2014-10-10 14:36:43 -07:00
Justin SB
c1cedff917 Add a sleep to the CSS HCP test 2014-10-10 04:45:40 -07:00
Justin SB
4c082bb87a Add install-sdk into cordova self-test 2014-10-10 02:55:38 -07:00
Emily Stark
99228d7c7b Clean up tarball in old-cli-test.
If we don't clean up the tarball, then the following command (`meteor
build`) fails ("Couldn't create tarball"), but for some reason still
exits with code 0. So we then go on to successfully untar the output of
`meteor build`. If we clean up the tarball from `meteor bundle`, we at
least catch the failure by trying to untar a nonexistent file.
2014-10-09 22:21:32 -07:00
Emily Stark
141f3cdf3d Switch to single quotes in 'publish-and-search' selftest 2014-10-09 21:53:29 -07:00
Emily Stark
a3f07028e2 Check a selftest Error to 'selftest.fail' 2014-10-09 16:35:11 -07:00
Sashko Stubailo
e1c745aab6 Merge branch 'devel' into 0.9.4 2014-10-09 11:27:28 -07:00
ekatek
b8d927851a increment client cache format to v2
The client cache in sql-land was broken: it sent over the wrong sync token as the default.
This meant that the server thought that this was a much older client. As a result, any
0.9.3+ packages with '_' or '||' in their versions/dependencies were filtered out. There is no
easy way to undo that sort of filtering without deleting the db for a variety of reasons, and if
we are going to delete the db, we might as well increment the version so we don't have to worry about
consistency.
2014-10-08 22:31:37 -07:00
ekatek
7f134bdfb4 changed the test to catch that we fail to not link in the export variable 2014-10-08 22:06:47 -07:00
David Glasser
659128025d first step towards fixing a test 2014-10-08 18:07:01 -07:00
Emily Stark
d1ee2043f9 Don't say "removed cordova:blah" if it wasn't in the project. 2014-10-08 17:28:08 -07:00
David Glasser
04f515da85 Merge branch '0.9.4' into devel
Conflicts:
	docs/client/data.js
	tools/tests/package-tests.js
2014-10-08 17:26:39 -07:00
David Glasser
1df375d3a2 Fix test-package-server tag
... and also make some fixes to the 'update package server data' test,
though it's possible that only the other change is strictly necessary
2014-10-08 17:21:44 -07:00
ekatek
6c8b0832d7 do not use clone since the catalog is backed by a real db 2014-10-08 16:04:13 -07:00
ekatek
d166119beb do not use clone since the catalog is backed by a real db 2014-10-08 16:03:29 -07:00
Emily Stark
d8bd9264d7 Update 'add cordova plugins' test to reflect reality.
If we fail to install one plugin, then we uninstall all plugins to avoid
awakening the Cordova monsters. Previously, this test was passing
because we were passing a `--settings` argument, which was allowing the
facebookconnect plugin to install, but the build to fail to other,
not-understood reasons. Now that we've removed `--settings`, the plugin
fails to install, which means that all plugins get uninstalled.

Test passes now.
2014-10-08 15:27:11 -07:00
Emily Stark
d8923c5874 Fixes to 'add cordova plugins' selftest.
* Remove --settings option that is no longer supported.
* Add --server option that is now required.

Test still doesn't pass.
2014-10-08 15:27:03 -07:00
Emily Stark
9fd8b1cd47 Update 'add cordova platforms' to match latest command output 2014-10-08 15:26:54 -07:00
Emily Stark
c09f52d89b Update path in cordova builds selftest 2014-10-08 15:26:49 -07:00
Emily Stark
2d73bc082f Fix argument parsing test; default port is now a string 2014-10-08 15:26:43 -07:00
Emily Stark
1e3e65fbf5 Use single quotes in 'packages with organizations' selftest 2014-10-08 15:26:36 -07:00
Emily Stark
bb29469856 Replace runtime config regression selftest with simpler unit test 2014-10-08 14:28:24 -07:00
Emily Stark
a4570b92df Replace runtime config regression selftest with simpler unit test 2014-10-08 14:26:38 -07:00
Emily Stark
43106972b0 Add regression test for runtime config bug 2014-10-08 14:06:19 -07:00
Emily Stark
f1592ed5a2 Stop 'meteor run' process in cordova hcp selftest 2014-10-08 14:05:59 -07:00
Emily Stark
aaa9bfb048 Add regression test for edbf05db 2014-10-08 14:05:02 -07:00
Emily Stark
d612b4e14c Stop 'meteor run' process in cordova hcp selftest 2014-10-08 14:04:45 -07:00
Emily Stark
e4244003cf Use single quotes in 'packages with organizations' selftest 2014-10-08 13:26:24 -07:00
Emily Stark
8b86948d41 Fix argument parsing test; default port is now a string 2014-10-08 11:50:21 -07:00
Emily Stark
6d17305629 Update path in cordova builds selftest 2014-10-08 11:19:17 -07:00
Emily Stark
149389d932 Update 'add cordova platforms' to match latest command output 2014-10-08 11:09:02 -07:00
Emily Stark
0bd892a261 Remove copied-and-pasted comment on 'add cordova platforms' 2014-10-08 11:07:32 -07:00
Emily Stark
842e3a290a Update 'add cordova plugins' test to reflect reality.
If we fail to install one plugin, then we uninstall all plugins to avoid
awakening the Cordova monsters. Previously, this test was passing
because we were passing a `--settings` argument, which was allowing the
facebookconnect plugin to install, but the build to fail to other,
not-understood reasons. Now that we've removed `--settings`, the plugin
fails to install, which means that all plugins get uninstalled.

Test passes now.
2014-10-08 11:01:18 -07:00
Emily Stark
32e192883e Fixes to 'add cordova plugins' selftest.
* Remove --settings option that is no longer supported.
* Add --server option that is now required.

Test still doesn't pass.
2014-10-08 11:01:18 -07:00
David Glasser
3faf1aa21e make test more convincing 2014-10-07 18:26:21 -07:00
ekatek
0aab8e9683 adding the test package used by the debugOnly test 2014-10-07 15:55:50 -07:00
ekatek
e0414f2ed5 allow user to mark packages as debugOnly and not have them bundle in production mode
(still outstanding: changes to package publication workflow)

A package marked debugOnly in the package source is not to be bundled in production.
Moreover, if a package/app depends on a debugOnly package, that entire tree should
not be bundled. (But we should take it into account when figuring out versions!)

Does the following:

- In the catalog, we have a function that takes in a set of versions and a set of original
constraints and traverses it, recursively, to build a subset of versions that we *should*
bundle, and the corresponding subset of versions that we shouldn't (because they are either
debugOnly themselves or pulled in by debugOnly packages). (We do this in the catalog because
it is an addon onto the results of the constraint solver, tied deeply into our representation
of data)

- In the packageLoader, we keep track packages & versions that we should bundle, and also,
packages that we should exclude. We do this in the package-loader because, essentially, that's the
object that we use to keep the results of the constraint-solver, and we already propagate it to all
functions that care about it. (Possibly we should subsequently rename it later).

- In the compiler, when we figure out buildTimeDependencies, we ask if we need to bundle debug
builds. If not, we filter them out (see above). Also, when we actually build together unibuilds,
we don't touch the ones that the packageloader tells us to exclude (which ensures that they don't make
it into the final product).

- In the project, we keep track of whether this project is building in debug mode. That's because the project
is where we keep the state of our curent project that we are building, and if we are ever in the state of
building multiple things, then that's the code that we would need to touch (see also that we make a similar
assumption when solving constraints).

- Adds the option to keepthe project debug-build-free and calls it in commands when approporiate.
2014-10-07 15:55:50 -07:00
Justin SB
5e2cb2bfc5 Remove 'random' pauses in HCP tests; insert the one which works
Still better to fix this properly, but this gives us a single starting point
2014-10-04 17:16:03 -07:00
Sashko Stubailo
94074d5972 Very carefully handle all of the different cases for servers and ports
1. mobile-server passed
2. running on device
3. running on simulator
2014-10-03 21:06:22 -07:00
Emily Stark
b4a0df4e7d Add test for --mobile-server propagating through hot code pushes 2014-10-03 15:46:43 -07:00
Emily Stark
3069788e01 Rework --mobile-server defaults.
* --port now requires a port ('meteor run --port example.com' isn't valid).
* --mobile-server defaults to your detected IP address and the port from
    --port.
* If you provide a value for --mobile-server, we default to http:// as
  the protocol. A host is required for --mobile-server if you don't omit
  the option entirely. Similar for the --server argument to 'meteor
  build'.

This commit includes the 'netroute' npm module as a core package (which
has binary dependencies) for IP detection. It would be nice to put it in
packages/non-core, but I think it has to be a core package in order to
uniload it.
2014-10-03 12:11:44 -07:00
Sashko Stubailo
07987a009d Merge branch 'devel' into platform-list
Conflicts:
	tools/commands-cordova.js
	tools/tests/cordova-platforms.js
2014-09-30 19:02:42 -07:00