Граф коммитов

113 Коммитов

Автор SHA1 Сообщение Дата
Joshua Thompson 13f1ea1f8f Update curl statement in bootstrap to follow redirects 2016-06-24 13:08:19 -07:00
Joshua Thompson 3eff022e20 Use curl instead of wget in bootstrap, clean up tablet init in webdriver test 2016-06-24 11:49:36 -07:00
Joshua Thompson d667bdba69 Add selenium steps to bootstrap 2016-06-22 15:26:14 -07:00
Joshua Thompson a99e6c6bc8 First version of vtctld webdriver test. 2016-06-17 15:40:53 -07:00
Anthony Yeh dea4eb2929 Allow MySQL56 flavor to accept MySQL 5.7. 2016-05-20 17:59:37 -07:00
Michael Berlin 23d56b6f26 bootstrap: Add a comment how to update an existing dependency. 2016-04-20 12:26:25 -07:00
Michael Berlin 95c972cd4c bootstrap: Pin protobuf plugin which generates gRPC Go code.
The gRPC library itself is already pinned by "govendor" and protects as
from breaking changes. The plugin was recently updated and broke us
again. Now this should no longer happen.
2016-04-20 12:24:23 -07:00
Anthony Yeh 441e5ef26a Use govendor for all Go dependencies.
Instead of `go get`. This way we control when to update versions.
2016-04-14 19:17:52 -07:00
Anthony Yeh 587f3a9c3f Use govendor instead of godep.
Like godep, govendor helps manage the native Go vendor dir. But it also
supports a mode where you don't have to copy all the files into your own
repo. Instead, you run `govendor sync` after updating the `vendor.json`
file, and it reconciles everything by downloading as needed.
2016-04-14 19:15:41 -07:00
Anthony Yeh 7c862e9dff php: Add pixelfederation PDO adapter as a submodule.
To make it easier to find and to simplify later examples and docs.
2016-04-14 19:14:28 -07:00
“raunak-agarwal-flipkart” b746da90c3 putting minio in bootstrap 2016-04-08 19:47:38 +05:30
Anthony Yeh 101bfd16e8 Use native Go vendor mode for gozk package. 2016-04-06 14:43:17 -07:00
Alain Jobart 10eef51c66 Removing python bson library. 2016-03-16 09:19:27 -07:00
Erez Louidor 1c3b1c4572 Added gomock repositories to bootstrap.sh. 2016-03-09 17:44:14 -08:00
Anthony Yeh a87a423e1e Add Docker images for Percona Server. 2016-03-04 15:48:34 -08:00
Michael Berlin c7459278cb travis/install_grpc: Remove unnecessary commands.
It is no longer necessary to set the different PATHs.

Additionally, I moved the prepand_path function out to tools/shell_functions.inc.
2016-03-01 22:38:23 -08:00
Michael Berlin 58e72c1a9c bootstrap: Do no longer install gRPC Python dependencies manually.
Since gRPC 0.13, the gRPC Python install process takes care of downloading python modules like "six" or "google.protobuf".

The new install process also no longer requires "tox", hence we dropped that dependency as well.

This commit also fixes the issue which was introduced in commit 938f31743d.

When we changed the install command flag for protobuf python from --root to --prefix, a system wide python package would always trump the locally installed version. Due to that, we could no longer run the e2e tests on our desktops. Since we no longer manually install protobuf python, this issue goes away. Before I had that solution, I did some analysis why the system wide version gets imported instead of the local version.

If --prefix is used, protobuf python is installed as an .egg file in the "site-packages" directory.

If --root is used, the .py files are copied to the "dist-packages" directory instead.

For unknown reasons, the .egg file in "site-packages" was not used when calling "import google.protobuf".

Here's what it looked like:

--prefix: (not working)

$ python -v
>>> import google.protobuf
[...]
import google # loaded from Zip /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/site-packages/protobuf-3.0.0b2-py2.7-linux-x86_64.egg/google/__init__.pyc
import google.protobuf # directory /usr/lib/python2.7/dist-packages/google/protobuf
import google.protobuf # precompiled from /usr/lib/python2.7/dist-packages/google/protobuf/__init__.pyc
>>>

--root: (working)

$ python -v
>>> import google.protobuf
import google.protobuf # directory /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/dist-packages/google/protobuf
import google.protobuf # precompiled from /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/dist-packages/google/protobuf/__init__.pyc
>>>
2016-03-01 22:38:23 -08:00
Anthony Yeh 938f31743d Update to gRPC 0.13. 2016-02-27 02:31:03 -08:00
Anthony Yeh f92686a2a4 Print human-readable tables for CLI queries.
The table output is similar to the `mysql` CLI.
2016-02-25 15:01:33 -08:00
Rasta f10e32ab09 OS X compatibility, brew un/link protobuf automatized in bootstrap.sh 2016-01-31 22:44:27 +01:00
Rasta 5504ab1263 OS X compatibility with Grpc 0.12 2016-01-31 19:45:54 +01:00
Anthony Yeh bdc670039e bootstrap: Run parallel make. 2016-01-25 16:01:09 -08:00
Alain Jobart 0c425e0b5c Fixing docker and travis builds, hopefully. 2016-01-22 13:29:46 -08:00
Alain Jobart 9929569e88 Update scripts for latest grpc, 0.12.
Note we now use the gRPC protobuf submodule for install,
to be sure its version matches gRPC.
2016-01-22 13:29:46 -08:00
Michael Berlin a3ca40bdba bootstrap: Fix pkg-config work-around for MariaDB 10.1.
It looks like with 10.1 MariaDB libmysqlclient is reentrant by default and they got rid of the special library "libmysqlclient_r". Therefore, mysql_config --libs_r now returns "libmysqlclient" instead of "libmysqlclient_r". Replace any of these two values with the static library.

Fixes issue https://github.com/youtube/vitess/issues/1437
2016-01-13 21:24:17 -08:00
Rasta 142f84b7f5 Compatibility with OSX. The commit also contains instructions for setting up Vitess on OSX. 2016-01-11 23:29:40 +01:00
Erez Louidor 2cc2ed901a bootstrap: Change Zookeeper download URL to archive.apache.org. 2015-12-05 16:40:43 -08:00
Michael Berlin 6b71088147 bootstrap.sh: Fix missing "fail" method call. 2015-11-04 21:15:57 -08:00
Michael Berlin 09fa81043c bootstrap.sh: Use more bash idiomatic way to fail in case of error. 2015-11-04 20:49:58 -08:00
Michael Berlin 23adcdbff6 bootstraph.sh: Fail early if go get fails.
Recently, we saw some Travis failures because not all Go dependencies
were successfully 'go get'd. However, the test run didn't stop early and
instead it was difficult to find out the original reason for the test
failure. This commit will make it easier to find out when the bootstrap
flaked and the test simply has to be restarted.
2015-11-04 19:04:49 -08:00
Anthony Yeh aa1da5cd71 Upgrade to ZooKeeper 3.4.6.
Fixes #1204
2015-11-02 20:45:43 -08:00
Anthony Yeh 8cc50a346b backup: Implement plugin for Google Cloud Storage. 2015-10-21 02:49:17 -07:00
Alain Jobart d9066317c1 Removing cbson. We'll remove bson support eventually. 2015-10-01 07:29:09 -07:00
Michael Berlin 8cbe2a01c7 bootstrap.sh: Restore Go 1.3 compability. 2015-08-06 14:51:46 -07:00
Michael Berlin d32df71caf bootstrap.sh: Add new line at the end to trigger Travis on master
branch.

We need to create a cache on the master branch or each pull request will
create its own cache and we won't benefit from any existing cache.
2015-07-23 14:12:40 -07:00
Michael Berlin fafa040dea Travis: Enable caching e.g. for compiled files in dist/.
This allows to skip the compilation of any dependencies in bootstrap.sh.

Using the cache adds minimal extra time:
- ~10 secs to retrieve and extract the ~100 MB tarball cache
- ~1.5 secs to check if the cache should be updated and no updates are necessary

In case of a corrupted cache, the cache must be deleted through the Travis CI webinterface on the settings page.

Enabling the cache required small fixes to bootstrap.sh:
- we must check for specific files and not just the existance of a directory in dist/ because the cache always creates the directories - even if they were not cached.
- py-mock must delete any existing files because Travis CI creates ".build_finished" as directory when it's not already cached. Once it's cached, it's created as file from the cache.
2015-07-23 00:25:51 -07:00
Michael Berlin c992f906aa bootstrap.sh: go get all repositories with one execution to save several seconds. 2015-07-22 23:46:05 -07:00
Michael Berlin f476b03f2b bootstrap.sh: Remove special handling for go get of cover binary for older binaries.
I suspect that it's not really necessary anymore.
2015-07-22 23:45:06 -07:00
Anthony Yeh 278fdf0993 bootstrap: Fix py-mock install.
It was failing because the target path needs to be in PYTHONPATH already
before the install step. We need to add it in bootstrap like we do for
gRPC. After bootstrap, dev.env will find it automatically by searching
for all site-packages directories.
2015-06-26 23:58:22 -07:00
Ammar Aijazi 26be81d4e5 Vendored the Python mock library 2015-06-25 22:51:53 -07:00
Shengzhe Yao dfaee307b4 add -u flag for all "go get" in bootstrap script
go/vt/proto/queryservice/queryservice.pb.go breaks if one does not
have the latest grpc installed. However, bootstrap script won't help
if there is a old grpc installed on your machine. By add the -u flag,
it forces go get command to install the latest version.
2015-05-07 11:57:20 -07:00
Anthony Yeh 6e519640d0 code.google.com/p/goprotobuf has moved to GitHub 2015-05-05 14:33:10 -07:00
Anthony Yeh 58820a9e34 Create bootstrap image for MySQL 5.6. 2015-04-22 14:21:18 -07:00
Anthony Yeh cba3b12058 Change capitalization of MySQL56 flavor ID.
It should match the convention established with "MariaDB".

I looked into making them case-insensitive, but it would be more tricky
than it's worth because flavor IDs are used as part of the protocol
between servers. So an old server that is case-sensitive would choke on
a message from a new one.
2015-04-22 13:02:10 -07:00
Alain Jobart 128e808ddc Regenerating these files to compile with newer grpc clients. 2015-03-26 14:14:25 -07:00
Alain Jobart f49f9a037f Speeding up travis and docker, no need to get protoc as it's not used
for building. Also properly parsing the command line flag
in bootstrap.sh.

Should reduce te nuber of times we build proto from 4x to 1x, and
grpc from 2x to 1x. Doh.
2015-03-13 12:09:08 -07:00
Alain Jobart 9e3caff5cf Fixing the scripts to build grpc and protobuf better.
Docker and travis: build and install as root in /
2015-03-12 09:06:23 -07:00
Anthony Yeh 04671e07cc Don't skip bootstrap build unless it actually finished.
We don't want to auto-remove the directory on failure, since the user
may need to investigate what went wrong. So we can't use the existence
of the directory to know whether the build finished.

Fixes #472
2015-03-11 23:01:59 -07:00
Alain Jobart 8328ffb884 Reverting protobuf install to 3.0.0-alpha-1 to be compatible
with the one grpc installs. Adding a couple extra libraries
so later on we can switch to using them.
2015-03-11 15:49:33 -07:00
Alain Jobart 959fbb0be2 Better version of this. 2015-03-03 14:57:25 -08:00