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

228 Коммитов

Автор SHA1 Сообщение Дата
Michael Berlin b6d1c59023 Merge pull request #2617 from michael-berlin/remove_coveralls
travis: Stop publishing coverage to coveralls.io.
2017-03-02 12:01:54 -08:00
Michael Berlin 3937b0409e travis: Stop publishing coverage to coveralls.io.
It has not been working for a while and I was not able to fix it.

Additionally, it recently started to flake e.g. we saw this error:

> Bad response status from coveralls: 422 - {"message":"Couldn't find a
repository matching this job.","error":true}

https://travis-ci.org/youtube/vitess/jobs/206464990

Let's remove it and replace it with something else at a later point.
2017-03-02 10:34:28 -08:00
c-wind 0fdb0cb670 Makefile: fix docker build mysql56 bug 2017-03-02 16:55:23 +08:00
thompsonja 73381fba35 Add font-awesome directly to angular2 project (#2383)
BUG=33706658
2016-12-16 20:01:37 -08:00
thompsonja 330824a264 Copy external dependencies for vtctld, fix webdriver test (#2345)
* Update vtctld web app to use local files for css and plotly js and fix webdriver test.
2016-12-06 16:38:13 -08:00
Alain Jobart 547e38462a Adding right favicon to web app. 2016-12-06 07:11:24 -08:00
Alain Jobart 5cddf360c6 Better error message for protoc missing. 2016-11-29 13:32:51 -08:00
Michael Berlin e0ea86acc2 Makefile: Add target "docker_bootstrap_pull".
This simplifies downloading all bootstrap images at once.

I've also improved the log message for building and pushing the bootstrap image.
2016-11-02 15:42:44 -07:00
Michael Berlin 81ee97c5da Makefile: Move "docker_base_mariadb" target to be consistent with the respective lite target. 2016-11-02 15:42:44 -07:00
Michael Berlin 8c8ab672b3 Makefile: Add comment to explain different tags of the base and lite images. 2016-11-02 15:42:44 -07:00
thompsonja 30b6d1a737 Angular2 webdriver test updates (#2038)
Angular2 webdriver test updates
2016-09-13 17:17:22 -07:00
Joshua Thompson a0daad01d3 Use https instead of git protocol for fetching angular-cli. Move vtctld2/build.sh steps into Makefile 2016-08-22 15:24:47 -07:00
Joshua Thompson dba9c6d992 Merge remote-tracking branch 'upstream/master' into webdriver2 2016-08-18 14:05:15 -07:00
Anthony Yeh cdbb089240 Merge pull request #1936 from rnavarro/docker-lite-percona-57
Adding Percona 5.7 docker image
2016-08-16 14:21:45 -07:00
Joshua Thompson ddca7db497 Add webdriver support for new vtctld2 UI 2016-08-16 11:26:41 -07:00
Robert Navarro 73f5ac197c Initial commit for percona 5.7 docker image 2016-08-12 08:39:33 -07:00
Michael Berlin c4fd56dca3 tools: Split env var VT_GO_PARALLEL into two instead of overwriting it.
Export VT_GO_PARALLEL from the Makefile to subprocesses. Fixes the problem that the variable was not used for 'make unit_test_race'.

VT_GO_PARALLEL is used to explicitly set the degree of concurrent packages tested in Travis. We do this because a value of 4 is faster than the default of 2 (for the two available CPUs).
2016-08-12 01:29:07 -07:00
Michael Berlin 3d8a76c1ee Makefile: Do not regenerate protos on every 'make build' invocation.
Starting with Go 1.7 the output of the generated protobuf files will differ because Go 1.7 has changes to the compression library.

While most of the main developers will be on Go 1.7, external contributors might still be on a lower version.
If they run 'make build', the generated protobuf Go code will get generated with different content and this will confuse them.
To avoid this, let's switch back to generate the protobufs explicitly via 'make proto'.
2016-07-25 18:14:55 -07:00
Anthony Yeh a6a7c3e489 Makefile: Remove -u flag from cp command, so it works on OS X. 2016-07-19 22:16:30 -07:00
Anthony Yeh 9371dd4c92 Makefile: Fix sed command for OS X. 2016-07-19 13:27:54 -07:00
Anthony Yeh 88d381596d Modify sed command to work on OS X too.
Fixes #1863.
2016-07-15 18:35:48 -07:00
Pavel Ivanov b1ca953c7b Generate protobuf files during compilation and fix the generation rules.
The change achieves the following:
1. Adds generation of Go and Python protobuf files during build by adding
   dependency of 'build' rule on 'proto' rule. This will avoid surprises of
   'make build' giving error when proto file is changed.
2. Modifies the generation of protobuf files to be more in line of how Makefiles
   should be written. This has an additional benefit that protobuf files won't
   be regenerated if proto files did not change.
3. Modifies the generation rules to work both locally on a workstation and
   inside the docker image. Docker image doesn't have /vt/dist/grpc installed,
   so the existing rule didn't work.

Note that as a result of this a new directory go/vt/.proto.tmp will exist after
building. I believe that should be fine and won't interfere with anything.
2016-07-01 09:18:04 -07:00
Pavel Ivanov c69c7e1b3d Clarify "Custom Docker Build" docs and simplify the process.
Since building of docker_lite* targets doesn't make sense without building
docker_base* targets, then it would be benficial to simplify the process by
adding the dependencies of docker_lite* on docker_base* and trigger the build
by a single make command.
Documentation is adjusted accordingly. Plus I added clarification of where MySQL
flavor should be present in different commands. And added note that bootstrap
image should be re-pulled each time before an attempt to build docker_lite,
because old bootstrap image can lead to build failures with the latest vitess
sources.
2016-06-30 21:11:10 -07:00
Anthony Yeh 73253b526e Makefile: Use test.go multi-flavor and parallel modes for docker tests. 2016-06-24 14:51:45 -07:00
Anthony Yeh 244ea81647 Save VSchema in initTabletMapProto(). 2016-05-26 20:36:52 -07:00
Michael Berlin a2e10946f9 Makefile: Add targets docker_bootstrap_test and docker_bootstrap_push.
Running a single target is simpler than a series of commands.

- unified README.md to prefix all commands with: vitess$
2016-05-25 23:04:02 -07:00
Anthony Yeh 4170be37ce Add Docker images for MySQL 5.7. 2016-05-20 17:59:37 -07:00
Anthony Yeh 26f91be6be php: php_proto build rule uses existing bootstrap image. 2016-05-05 13:16:18 -07:00
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