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

75 Коммитов

Автор SHA1 Сообщение Дата
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
Alain Jobart 7c90a9dbec Investigate more. 2015-03-03 14:00:43 -08:00
Alain Jobart 42463c06a0 Adding debug message 2015-03-03 13:50:54 -08:00
Alain Jobart 7af27670ba Trying to fix travis build. 2015-03-03 13:17:42 -08:00
Alain Jobart de7bbdf759 Using specific version for protobuf. 2015-03-02 13:31:08 -08:00
Alain Jobart 015dd56874 Add python side for gRPC. 2015-03-02 09:22:52 -08:00
Alain Jobart 388bdd062b protoc is now compiled by bootstrap.sh.
Still need better python gRPC support.
2015-03-02 08:48:22 -08:00
Alain Jobart d331989af8 First version of gRPC client and server for vtctl protocol.
Not hooked up to servenv code yet.
Proto->go code is not automated yet, as protoc is hard to compile.
2015-02-27 09:07:03 -08:00
Alain Jobart 26121622ba Now explicitely check for supported MYSQL_FLAVOR. 2015-02-23 07:42:32 -08:00
Alain Jobart dc70ca6174 Removing support for Google MySQL 5.1. 2015-02-19 13:03:12 -08:00
Anthony Yeh c53de1e857 Merge pull request #361 from rushiagr/no-go-fail-bootstrap
Make bootstrap.sh fail if go is not installed
2015-01-28 23:46:33 -08:00
Anthony Yeh d24d557281 Use godep for go-etcd client.
The master branch of the client is no longer compatible with the server
version we use.
2015-01-28 15:44:42 -08:00
Rushi Agrawal fbee5f3783 Make bootstrap.sh fail if go is not installed 2015-01-28 14:19:17 +05:30
Anthony Yeh 6bbecb5b02 Clarify 'source dev.env' line at end of bootstrap.
In response to feedback that it looked like an error saying,
"you should have run 'source dev.env' before bootstrap."
In fact, it is saying bootstrap is done.
2015-01-27 23:48:29 -08:00
Anthony Yeh 6f8fc0cd7f Hide error for failed install of optional cover tool.
It is mostly only installed for use in Travis. Other users can install
it as root if they are interested in running coverage.

Fixes #358
2015-01-27 23:46:06 -08:00
Anthony Yeh ba8b31099f Don't let users try to build/test as root.
It doesn't work anyway because memcached will quit if it sees that it's
running as root, and mysqld will try to switch to its own 'mysql' user.
2015-01-07 13:23:03 -08:00
Anthony Yeh c1c60eef58 Check Go version to use the right Go tools URL. 2014-12-24 03:45:24 -08:00
Anthony Yeh ec0815e2bb Add git pre-submit hook for golint.
Golint should never be required, as per the docs:

"""
The suggestions made by golint are exactly that: suggestions.
Golint is not perfect, and has both false positives and false negatives.
Do not treat its output as a gold standard. We will not be adding
pragmas or other knobs to suppress specific warnings, so do not expect or
require code to be completely "lint-free".
"""

This hook only shows the line count of the golint output for each file
modified in a commit. That way you don't get flooded just because you
changed one line in a file with a hundred pre-existing lint issues.

However, if we just print the warnings without stopping, you'll probably
never see them because your editor comes up to let you write a commit
message. So we try to steal back the keyboard and pause to let you know
you might want to look into the lint warnings. If the stealing ends up
being buggy, we'll have to think of something else.
2014-12-19 13:10:48 -08:00
Anand Henry e319784ac6 Revert "Rename cover package in bootstrap"
This reverts commit 96d0b59d8d.
2014-12-15 23:32:58 -08:00
Anand Henry d15af9ce82 Merge branch 'master' into travis-ci 2014-12-15 18:27:06 -08:00
Anand Henry 96d0b59d8d Rename cover package in bootstrap
code.google.com/p/go -> golang.org/x/
2014-12-15 11:26:37 -08:00
Anthony Yeh 04f9e79bbc Rewrite imports for golang subrepositories.
As per this announcement:
https://groups.google.com/forum/m/#!msg/golang-announce/eD8dh3T9yyA/HDOEU_ZSmvAJ
2014-12-14 12:48:10 -08:00
Anand Henry cdfa764d7f Travis and Coveralls integration
Add travis configuration and dependencies script
Split integration test make targets to allow parallel execution in Travis
Add go packages required for coverage upload to Coveralls
Add coveralls and travis badges to README

Travis: Retry make targets to address flaky targets
2014-12-12 17:44:12 -08:00
Anthony Yeh 9145994e53 Implement etcd flavor for TopoServer. 2014-12-12 17:03:13 -08:00
Alain Jobart cd124893fe Removing test hooks for multi{snapshot,restore} 2014-12-09 13:58:40 -08:00
Peter Lobsinger da8ccaf31b Make Vitess context types conform to the go.net/context API.
Using this common API will hopefully allow integration with other
projects both internally and externally.
2014-11-10 11:14:17 -08:00
Anthony Yeh daa74c9446 Use pre-installed MariaDB instead of downloading it. 2014-08-28 14:35:51 -07:00
Anthony Yeh 7f7cb79672 Remember MYSQL_FLAVOR in bootstrap.sh and restore it in dev.env. 2014-08-22 13:53:54 -07:00
Anthony Yeh 94d343aadc Fix declaration of internal libmysql functions for MariaDB. 2014-08-20 21:11:49 -07:00
Anthony Yeh 06ee613e8d Set VT_MYSQL_ROOT for MariaDB too. 2014-07-18 15:46:14 -07:00
Ryszard Szopa a0857eb082 Remove dependency on opts-go. 2014-06-27 14:43:31 -07:00
Alain Jobart f7df4e7e97 Implementing copy of snapshots to central storage.
This uses specialized hooks, with sample versions for tests.
Have to re-run bootstrap.sh to pick them up.
2014-05-13 12:18:06 -07:00
Alain Jobart 553bbd087d Also get goimports for bsongen to work. 2014-05-08 11:34:58 -07:00
Alain Jobart 81bb46fafb Adding fetching of gorptobuf library. 2014-04-17 09:59:13 -07:00
Alain Jobart 97b2573e33 Fixing bootstrap.sh to create the hook link. 2014-04-04 11:33:57 -07:00
Alain Jobart 8302b2ae94 First pass at MariaDB support.
test/tabletmanager.py passes!
It's enabled by setting MYSQL_FLAVOR=MariaDB before anything.
2014-04-02 14:52:07 -07:00
Sugu Sougoumarane 6615bcd90b Clean up build system
Switch to using go install. Leads to faster and cleaner builds.
go install directly installs the binaries into $VTROOT/bin directly
because $GOPATH==$VTROOT. It also intalls intermediate libraries under
pkg, which results in reuse.
There is also no more clutter in the source dirs: cleaner .gitignore.
2013-12-24 14:28:19 -08:00
Sugu Sougoumarane 89c1781849 remove custom vt_mysqlbinlog from mysql 2013-11-27 11:16:02 -08:00
Sugu Sougoumarane 310d085d8f Change to use a fixed clone of google-mysql. 2013-10-14 21:40:03 -07:00