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

200 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart db6c2b8181 Also copying two more PHP generated files. 2016-05-05 07:25:28 -07:00
Alain Jobart 375cf907f7 Adding docker image to generate PHP proto files. 2016-05-05 07:25:28 -07:00
Michael Berlin 7509f82286 Makefile: Remove optimization that we skip installing the gRPC Go protobuf plugin if it already exists in $GOROOT/bin.
This optimization would not pick up version changes (e.g. when we
upgrade the vendor'd "github.com/golang/protobuf/protoc-gen-go" repo
copy by running bootstrap.sh) and unnecessarily introduce confusion.

Without the optimization, "make proto" won't be slowed down noticeable
when the plugin was already installed.
2016-04-21 15:18:13 -07:00
Michael Berlin 24537c3951 Makefile: "proto" target explicitly "go install"s the gRPC Go protobuf plugin.
Note that I have to copy the code from the vendor/ directory to $GOPATH because "govendor" currently has no command like "restore" which "godep" did have.
2016-04-20 17:23:58 -07:00
Anthony Yeh 6c224a8dd9 Don't need to prefix builds with godep anymore.
Thanks to native vendoring support in Go 1.5+.
2016-04-06 14:52:31 -07:00
Anthony Yeh 0df22ba0b0 Make Docker image to preview/publish site.
Add `--docker` flag to run preview/publish without needing to set up
Ruby or Jekyll:

``` sh
vitess$ ./preview-site.sh --docker
vitess$ ./publish-site.sh --docker
```
2016-04-05 16:45:21 -07:00
Alain Jobart c239844c8a Removing all bson encoding. 2016-03-16 12:30:02 -07:00
Anthony Yeh a87a423e1e Add Docker images for Percona Server. 2016-03-04 15:48:34 -08:00
Alain Jobart 6b520303eb Fixing make proto rules for new paths. 2016-01-22 14:28:53 -08:00
Michael Berlin 941ce6279e Fix make unit_test_race such that it fails in case of errors.
Before this, the command always succeeded, even if races were found.

I'm grepping over the output of go test -race to check if there is race because there is no other way to distinguish between a found race and a flaky test.
2015-11-22 17:35:22 -08:00
Anthony Yeh bc7f1ad768 Re-run make proto for new go compiler plugin version. 2015-11-03 16:57:49 -08:00
Anthony Yeh a05f48ba42 test.go: Add tags for grouping tests.
The Makefile previously listed tests explicitly for groups like
site_test and worker_test. These lists got out of date when tests were
removed from test/config.json, and the make rules broke. Now the groups
are defined in config.json itself, so there is one place to update
everything.
2015-10-29 13:27:23 -07:00
Sugu Sougoumarane 29c7d9fdf0 Merge branch 'master' into suguwork 2015-10-17 21:07:05 -07:00
Sugu Sougoumarane c17675130b Makefile: Add a NOBANNER flag
The initial banner messes up editor error parsing. The NOBANNER
option allows us to suppress it.
2015-10-17 18:01:32 -07:00
Anthony Yeh 2faece09cf docker: Add Makefile rule for building etcd-lite image. 2015-10-15 15:50:31 -07:00
Sugu Sougoumarane 7403a556b8 RIP queryservice_test 2015-10-11 14:26:30 -07:00
Alain Jobart 965140c42f R.I.P. vtocc. 2015-10-09 16:01:33 -07:00
Anthony Yeh e490edacbb travis: Switch to PHP 5.5.9 2015-10-08 01:04:33 -07:00
Alain Jobart cc1326ab56 Adding build dependency to unit_test, as it needs mysqlctl. 2015-09-22 09:40:39 -07:00
Sugu Sougoumarane d82ce0059f Add vtgatev3 to integration tests 2015-09-11 20:35:53 -07:00
Anthony Yeh 53cfe1a0dc Add Makefile rules for building Docker images. 2015-08-25 14:12:57 -07:00
Anthony Yeh 715c660104 test.go: Don't use bash for launching non-Docker tests.
I can't get signals to work on the child processes launched by bash,
even if I use a helper script that explicitly signals its children.
That meant that test timeouts didn't actually terminate the test in
non-Docker mode.

We were only using bash to split the command line into args anyway.
Instead, let's just have the config give us the args pre-split.
Sending signals without bash in the way seems to work better.
2015-08-24 13:44:52 -07:00
Anthony Yeh 9b00cd4e72 test.go: rename rebalance operation to avoid confusion. 2015-08-23 21:56:06 -07:00
Anthony Yeh 740d1bd8f4 Remove obsolete Travis files. 2015-08-23 21:41:12 -07:00
Anthony Yeh 1ac3d8166a Use test.go for Travis and "make test". 2015-08-23 19:51:42 -07:00
Anthony Yeh 082f9afd6d test.go: Add goveralls script as a manual target. 2015-08-23 17:43:41 -07:00
Anthony Yeh 8511ab0193 Add PHP tests to Travis. 2015-08-23 01:28:44 -07:00
Anthony Yeh 9000a34565 Add php_test rule to Makefile. 2015-08-22 19:21:26 -07:00
Alain Jobart cdf3a7bb2f Adding utils.py option to skip builds, using it in the Makefile
(after adding a rule to build before tests).

Global build takes about 2s to build all binaries, and it saves
about 4s in one run of mysqlctl.py, so it's gonna be good!
2015-08-21 09:51:08 -07:00
Dean Yasuda 6a8f7ee7e1 Revert Makefile. 2015-08-20 12:48:17 -07:00
Dean Yasuda 5fa76ff6f5 Merge remote-tracking branch 'upstream/master' 2015-08-20 12:45:05 -07:00
Dean Yasuda c5eeb8d65c Fix a bug where self.session was not read correctly from response.
Remove some stray debugging statements.
2015-08-20 12:32:23 -07:00
Dean Yasuda 232c6a870d Change Makefile to add individual integration test targets.
Hook up effective_caller_id and add a simple test in python_client_test.py.
2015-08-20 11:57:33 -07:00
Michael Berlin d4d9d3ee25 Makefile: Let each integration test run fail after a 5 minutes timeout.
Currently, the worker tests are hanging from time to time.

Travis kills these tests automatically after 10 minutes (of not
receiving any output). We can be more aggressive about it and kill them
ourselves after 5 minutes.
2015-08-18 14:43:50 -07:00
Michael Berlin e878386bcb Revert "Makefile: Enable debug logging for worker.py."
This reverts commit 24348ab625.

The intent of the commit was to find out why worker tests sometimes do
not complete.

We know the cause now: The worker command is hanging in State: finding
target instances

Here's an example log:
https://s3.amazonaws.com/archive.travis-ci.org/jobs/75359822/log.txt
2015-08-18 14:39:03 -07:00
Alain Jobart 81571296b8 Making vertical_split.py always and only work with vtgate. 2015-08-18 08:09:56 -07:00
Alain Jobart ca77d9a5d2 Retiring zkclient2. toposerver API is going away. 2015-08-17 08:34:18 -07:00
Michael Berlin 615e002385 Makefile: Target "unit_test_goveralls", run by Travis, outputs top 10 packages with
worst coverage at the end.
2015-08-12 16:32:37 -07:00
Michael Berlin 6f9458ced2 travis: Run coveralls without specifying the repotoken.
This enables coverage reports on pull requests from Github forks.
2015-08-12 15:48:12 -07:00
Anthony Yeh c66c0b81ed go1.5: Use new syntax for ldflags -X variables. 2015-07-31 13:40:44 -07:00
Shengzhe Yao 982e1e2acf refactor java client pom structure
1. move common dependencies into parent pom.
2. upgrade com.google.guava to 18.0.
3. rename java build target to java_client_test.
4. fix makefile so java client test will run tests from each sub package.
2015-07-29 14:35:49 -07:00
Alain Jobart 1240ab94c0 Merge branch 'master' into resharding 2015-07-27 15:37:29 -07:00
Alain Jobart d4a91c59bd Adding vtgateclienttest, and using it for python client.
A lot more work will happen there over the next few weeks.
2015-07-27 15:36:30 -07:00
dumbunny a0bbdd36ee Merge pull request #904 from dumbunny/feature1
Refactor sql_builder.py
2015-07-27 12:30:23 -07:00
Michael Berlin 9b908f8085 Merge pull request #931 from michael-berlin/travis_enable_debug_logging_worker_py
Makefile: Enable debug logging for worker.py.
2015-07-27 11:35:48 -07:00
Michael Berlin 24348ab625 Makefile: Enable debug logging for worker.py.
We sporadically see that the worker.py test times out on Travis CI after 10 minutes. Enabling logging will give us better visibility to debug the problem.
2015-07-27 11:09:55 -07:00
Shengzhe Yao 2c42db70cc allow user to plugin a customized TestEnv implementation
1. Get rid of SetupCommand.java and move its logic to TestEnv.
2. Add getRpcClientFactory method in TestEnv.
3. Use setters & getters in TestEnv.
4. define vtgate.test.env and vtgate.rpcclient.factory properties in vtgate-client/pom.xml.
2015-07-26 18:47:19 -07:00
Dean Yasuda d4ec6220dc Modify sql_builder.py, add test/sql_builder_test.py. 2015-07-24 11:22:05 -07:00
sougou 65f9935095 Merge pull request #918 from youtube/suguwork
vtgate api: delete tests in client_test.py
2015-07-23 23:03:25 -07:00
Sugu Sougoumarane 42b9509636 vtgate api: delete tests in client_test.py
I removed functions from client.py because they need
to be rethought in light of the new API, but missed
removing them from client_test.py.
I've now added client_test to our integration tests
to make sure it doesn't get missed.
I'll submit this right away because it breaks import.
2015-07-23 22:54:29 -07:00