Commit Graph

3086 Commits

Author SHA1 Message Date
Emily Stark
33a213f475 Fix typo in 'get-machine' output 2014-10-16 14:21:15 -07:00
ekatek
dcaefabc6c cleaning up some of the get-machine stuff 2014-10-16 13:25:55 -07:00
Emily Stark
b824a155a5 Print /tmp iOS build error nicely 2014-10-16 10:47:01 -07:00
Slava Kim
5eb6b2deec Increase the pool of fd's for httpproxy
1K should be fine as long as user's ulimit is not too low, but we set the ulimit
for user in the install script, so it should be fine.
2014-10-15 18:55:17 -07:00
Slava Kim
a8bcb24fcb Poll for plugins to be ready in meteor_cordova_loader 2014-10-15 18:54:56 -07:00
David Glasser
98429c2338 Increase ServiceConnection handshake timeout
Hopefully helps #2777.
2014-10-15 18:08:20 -07:00
David Glasser
3c1c786293 disable client->server heartbeats for troposphere
Addresses #2789.
2014-10-15 17:00:46 -07:00
Justin SB
a3323287d6 Wrap cordova build in a buildmessage.enterJob
So it has a title!
2014-10-15 14:39:31 -07:00
Justin SB
864af5061b Fix reported problem with "=> Starting Cordova" wrapping
This was one of the few remaining uses of logTemporary.

Replaced with buildmessage.enterJob
2014-10-15 14:22:44 -07:00
Justin SB
9c3e29c663 Log changed env vars for commands we run
This is particularly useful for Android, where we pass ANDROID_SDK_HOME
2014-10-15 14:22:44 -07:00
Emily Stark
998ca6debf Move netroute require into function where it's used 2014-10-15 10:53:53 -07:00
Emily Stark
301eb65637 Put 'netroute' into dev bundle 2014-10-14 21:14:14 -07:00
ekatek
f83c08e8fa introduces the 'meteor admin get-machine' command; changes publish not to publish binary builds
This commit does the following:
- Introduces the get-machine command. This command contacts the build farm server
 gets back a machine reservation and then opens    a secure shell to the machine (Alternatively,
 you can ask for a json). This also involved factoring out some   commands to deal with authenticated
 ddp from package-client into a more general auth-client.

- No longer publish binary builds in publish or publish-release; instead give the user a warning
to run get-machine and then publish-for-arch. Someone could ignore this: --existing-version and
publish-for-arch both publish binary builds, but you need to be    at least somewhat familiar with
what you are doing to run them.      Hopefully, you are running them  from a certified build machine,   but
if you are not,    then, well, it    is your    package.

Stuff remaining:
  - We are going to have a url to external documentation, but I haven't written it yet.
  - We are currently talking to   the test-build server, instead of the build server, so mac doesn't
work.
(Neither of those changes require significant tool changes)
2014-10-14 16:49:50 -07:00
Ben Newman
647f13cabb Only require a ctl program when deploying to Galaxy. 2014-10-14 18:32:59 -04:00
Slava Kim
3ec522f9e4 Additional configs for Android's splash screens
Who knows why it doesn't just work when you add the cordova plugin.
2014-10-13 17:49:06 -07:00
David Glasser
8f3966fbf4 Format deploy console messages to include protocol 2014-10-13 17:36:40 -07:00
Slava Kim
51a23fc346 Another pass on LaunchScreens 2014-10-13 17:30:50 -07:00
Justin SB
d46e14a0aa Don't print 'expected' error-exit from phantomjs 2014-10-13 16:24:32 -07:00
Sashko Stubailo
101b96bdcc Merge branch 'master' into devel 2014-10-13 14:51:41 -07:00
David Glasser
aac410cbb2 fix make-bootstrap-tarballs for sqlite world 2014-10-13 13:55:36 -07:00
Ben Newman
368cd01843 Print instructions for meteor run android-device.
Summary: Task: https://app.asana.com/0/15750483766338/16682276437409

Test Plan:
Run `meteor run android-device` with and without an Android device
connected.

Reviewers: sashko, avital, nim, slava

Differential Revision: https://phabricator.meteor.com/D856
2014-10-13 14:25:34 -04:00
Ben Newman
fc7c44dc1a Print instructions for meteor run ios-device.
Summary: Task: https://app.asana.com/0/15750483766338/16682276437409

Test Plan:
Run `meteor run ios-device` with and without Xcode already open, with and
without a device connected.

Reviewers: sashko, avital, nim, slava

Reviewed By: sashko

Differential Revision: https://phabricator.meteor.com/D855
2014-10-13 14:25:34 -04: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
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
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
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
9fbf759c43 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:27:24 -07:00
Nick Martin
4b1e713252 Revert "Run self-test in debug mode"
This reverts commit 7132c94e28.
2014-10-11 20:44:35 -07:00
Nick Martin
11d43de256 disable test that breaks other tests 2014-10-11 20:44:02 -07:00
Slava Kim
a39f6bb35e Extract the launch screen logic to a separate package
That can be configured in apps to postpone the launch screen until a certain
moment with some sane default behavior.
2014-10-11 03:19:52 -07:00
Slava Kim
fd31b828df For Cordova boilerplate referenced js urls are always absolute
Should fix a bug that was kinda hard to reproduce but was noticed before:

- open the app that wasn't HCP'd
- change the current url path with HTML5 pushState
- call window.location.reload()
- observe the packages code not being loaded properly
2014-10-11 03:19:44 -07:00
Justin SB
7132c94e28 Run self-test in debug mode 2014-10-11 02:52:37 -07:00
Justin SB
39a40e688a Wrap db open call in retry 2014-10-11 02:52:11 -07:00
Emily Stark
91c6d70454 Revert "Don't automatically put ?close at the end of Meteor Developer Accounts URLs"
This reverts commit 05d2c5edd7.

We haven't worked out all the backwards-compatiblity issues of
non-?close and ?close OAuth servers and clients yet, so let's leave this
as is now, and ensure that all the services that the tool talks to
accept ?close URLs.
2014-10-11 00:17:22 -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
Nick Martin
16a1efc8f4 Merge branch '0.9.4' into devel 2014-10-10 20:29:54 -07:00
Nick Martin
80eebe86ba Merge remote-tracking branch 'origin/behind-proxy' into 0.9.4 2014-10-10 20:29:28 -07:00
Nick Martin
1b548227d9 Merge branch '0.9.4' into devel 2014-10-10 19:50:55 -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
ekatek
05d2c5edd7 Don't automatically put ?close at the end of Meteor Developer Accounts URLs
MDA stuff configured with the new tool does not use ?close, and the one configured with
the old tool, does. We are not going to automatically try contacting the ?close anymore,
since that doesn't work in the future; for backwards compatibility, we went through package
server & stat server and added the close-less urls for the new tool to use.
2014-10-10 15:59:32 -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
9118a448a5 Add install-sdk to "cordova builds with server options" test 2014-10-10 08:26:15 -07:00
Justin SB
c721d6d89e Refactor _retry to allow zero-values 2014-10-10 06:59:12 -07:00
Justin SB
6c5f0b0252 Wrap 'PRAGMA journal_mode=WAL' in a retry loop 2014-10-10 05:33:06 -07:00