Commit Graph

3038 Commits

Author SHA1 Message Date
Avital Oliver
b16715989a Revert "Work towards fixing the "do-not-update-to-rcs" self-test."
This reverts commit 89b394d974.

I cherry-picked the change onto devel, since this change isn't
even supposed to change the behavior of the tool. Why risk
it just before the release? Thanks @nim for the suggestion.
2014-10-12 23:08:41 -07:00
Avital Oliver
89b394d974 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 22:50:27 -07:00
Nick Martin
bb72d62ca8 Hide spurious message that pops up sometimes. Users don't need to see
this "everything is OK" message. (Especially since sometime we sync right
after printing it!)
2014-10-12 13:28:41 -07:00
Nick Martin
80eebe86ba Merge remote-tracking branch 'origin/behind-proxy' into 0.9.4 2014-10-10 20:29:28 -07:00
Justin SB
6bff6020be Add install-sdk to "cordova builds with server options" test 2014-10-10 19:50:34 -07:00
ekatek
395438b216 do not call semver.compare on package version
This is a regression caused by the SQL merge. Sorry for not catching it earlier!
We should not be calling semver on meteor package versions outside of the package
version parser package.
2014-10-10 17:29:00 -07:00
David Glasser
fb7921ade2 Support $HTTPS_PROXY in Node DDP client.
This should mean that you can access the package server from behind a
corporate firewall.

I tested this by setting up a Linux machine that doesn't have access to
packages.meteor.com:

   $ sudo iptables -A OUTPUT -d 54.225.216.115 -j DROP
   $ sudo iptables -A OUTPUT -d 184.72.252.20 -j DROP
   $ sudo iptables -A OUTPUT -d 23.23.114.56 -j DROP

I confirmed that these commands both fail:

  $ curl https://packages.meteor.com/
  $ ./meteor search asdf   # when it needs to sync first

I bought a proxy server from Proxy Bonanza and confirmed that setting
the environment variable HTTPS_PROXY to
   https://PROXYUSERNAME:PROXYPASSWORD@PROXYIP:PROXYPORT/
made both of the commands above succeed.

Fixes #2515.
2014-10-10 14:49:05 -07:00
Slava Kim
4d41c4c7cd Fix failing meteor build self-test 2014-10-10 14:36:43 -07:00
Slava Kim
50338758a4 Bring backwards-compatibility to meteor bundle
This commit introduces some conviluted logic to keep the old behavior of the
meteor bundle command. Hopefully we will drop it soon so we will simplify the
logic.
2014-10-10 13:55:28 -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
Nick Martin
94c79151fa Change URL to install wiki. 2014-10-10 01:13:43 -07:00
Emily Stark
cc3fbff888 Clean up error handling for meteor build tarball creation.
Write errors to `Console.stderr`, and exit 1 instead of going on to do
the mobile builds (if any) and exiting 0.
2014-10-09 22:31:15 -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
David Glasser
7126e17109 Allow any number of spaces by || in constraints
Previously, exactly one was required, but this was not explicitly
documented.
2014-10-09 21:20:14 -07:00
Justin SB
7236af674c Throttle yields, so we don't slow down in case of rapid calls to yield
This restores the behavior I lost when I removed Patience
2014-10-09 19:58:39 -07:00
ekatek
b7782ca455 now that we have a command to set latest version, we can not set it until it is there 2014-10-09 19:13:07 -07:00
ekatek
0fc7f60dcc helper admin method to set the readme on the latest mainline release 2014-10-09 19:13:07 -07:00
ekatek
07ee30ffed automatically set readmes when publishing packages as partof a release with a valid gittag 2014-10-09 19:13:07 -07:00
Emily Stark
a3f07028e2 Check a selftest Error to 'selftest.fail' 2014-10-09 16:35:11 -07:00
ekatek
f00643dbae move the check for local package up 2014-10-09 16:26:19 -07:00
Slava Kim
000af3ad2e Update checkout apps to the head of official track by default 2014-10-09 14:28:31 -07:00
ekatek
d07f4f1abf do not print unstable version warning if the version is local 2014-10-09 13:13:45 -07:00
Justin SB
ab36433972 Bump the timeout for waiting for the emulator to start
On first boot, it can take more than 2 minutes.
2014-10-09 12:28:42 -07:00
Justin SB
60a9da1606 Parse the curl progress to output it cleanly
Not the greatest solution technically, but it improves UX.
2014-10-09 12:28:42 -07:00
Avital Oliver
0dc9149d85 Hide springboard progress bar when complete
Fixes https://app.asana.com/0/802778796897/17391461309554

Apparently Console.enableProgressBar is written to do nothing if Console
is not in pretty mode.
2014-10-09 11:46:14 -07:00
Sashko Stubailo
e1c745aab6 Merge branch 'devel' into 0.9.4 2014-10-09 11:27:28 -07:00
Justin SB
6bc2cff03a Pass --progress-bar to curl in ensure_android_bundle
Alternatives (doing it all in node) were much more invasive.
2014-10-09 10:24:11 -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
David Glasser
cca0112b99 use format 1.1 sync token!
fixes ability to get new styles of data, including
package-depends-on-either-version test
2014-10-08 22:27:38 -07:00
ekatek
4a4e7c19ff treat exports from debugOnly packages same way that we treat weak dependencies and do not export them by default 2014-10-08 22:06:47 -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
David Greenspan
d7bae95deb Merge branch 'dgreensp-selftests' into 0.9.4
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-10-08 15:08:21 -07:00
David Greenspan
9dcc5e8780 Show list of failed tests 2014-10-08 15:05:57 -07:00
Justin SB
d25bfb7cd8 Log if phantomjs exits with error (e.g. missing libs) 2014-10-08 14:49:10 -07:00
Slava Kim
eb24eb59d4 Make icons/splashscreens options consistent with underscores 2014-10-08 14:47:42 -07:00
Justin SB
a200043285 Log if phantomjs exits with error (e.g. missing libs) 2014-10-08 14:44:45 -07:00