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

290 Коммитов

Автор SHA1 Сообщение Дата
Andres Taylor 16300d647b Add commit hook to check the visitor is in sync with the ast
Signed-off-by: Andres Taylor <andres@planetscale.com>
2020-01-21 09:09:04 +01:00
Andres Taylor 216d49d48f Add the the rewriter
Signed-off-by: Andres Taylor <andres@planetscale.com>
2020-01-21 09:09:04 +01:00
Morgan Tocker 6781ff4ef0 Remove rebuilding embedded config from build
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-01-14 19:08:37 -07:00
Anthony Yeh 6b55d8456f
vitess/lite: Install config files at the new location. (#5707)
The expected location of config files has changed, but we were still
installing them in the old location. This also adds a symlink from the
old location to remain backwards-compatible.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
2020-01-13 16:21:54 -08:00
Sugu Sougoumarane 63cbaae3a2
Merge pull request #5598 from planetscale/jacques_dottablenames
Fix for table names with dots in them.
2020-01-13 08:07:08 -08:00
Jacques Grove dd2e9af65f Merge branch 'master' into jacques_dottablenames 2020-01-13 07:04:23 -08:00
Morgan Tocker f7c1db03b8 Embed mycnf files and init_db
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-01-03 14:18:46 -07:00
Rohit Nayak 0882f189b3 Fixed various py tests by removing web_dir references. Removed test for the old vtctld webapp 2020-01-02 20:35:27 +01:00
Sugu Sougoumarane 9219450eac builds: fix protoc goimports issue
The protoc generated code was not matching the goimports standard.
I've added a goimports step after the build.
This caused another breakage because time.proto did not match its
package name of vttime. I've fixed that also.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-12-31 14:53:04 -08:00
Sugu Sougoumarane ad080b8ae7 build: temporary unbreak for make proto
Due to an import pathing restriction in protoc, we still need the
source tree to represent the import names in the packages.
This workaround makes the build work for those who have their
github branch checked out this way.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-12-31 11:18:16 -08:00
Rohit Nayak a56301ce04 Merge remote-tracking branch 'upstream/master' into embed-vtctld-assets 2019-12-31 00:00:38 +01:00
Rohit Nayak 8d8bb83c89 Rice files generated as a manual make step. Added current rice file to git
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2019-12-20 21:06:44 +01:00
Rohit Nayak 9ce12481eb Per morgo review: .gitignore rice generated file, improved Makefile. Also removed web_dir(2) from docker/K8s yaml configs
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2019-12-20 11:52:24 +01:00
Jacques Grove f144e9b967 Merge branch 'master' into jacques_dottablenames
Signed-off-by: Jacques Grove <aquarapid@gmail.com>
2019-12-19 18:42:51 -08:00
Jacques Grove 7b11b4a517 WIP fix for table names with dots in them.
- Crashed vttablet in the prometheus client code.
  - Replace dots with underscores in tablenames on the way in
  - Switch to prometheus non-panic functions.
  - Add Makefile option to build non-optimized (debug) binaries.

Signed-off-by: Jacques Grove <aquarapid@gmail.com>
2019-12-19 13:26:58 -08:00
Anthony Yeh 7a49ea3447
Refactor vitess/lite Dockerfiles. (#5592)
Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
2019-12-19 09:41:52 -08:00
Rohit Nayak 822caed32a Embed web_dir2 contents using go.rice
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2019-12-19 14:01:24 +01:00
Morgan Tocker 65e2b22cf4 Fix 'make cleanall' and remove older make target
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-09 15:42:49 -07:00
Morgan Tocker 3ece1fc7d6 Disable tls13 for go 1.13 unit tests to pass
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-09 13:58:08 -07:00
Morgan Tocker b25d149479 Merge VTTOP and VTROOT variables
Disable prepared_statement test
Add a check to examples to make sure etcd is not running

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-07 12:11:06 -07:00
Morgan Tocker a4c3231a09 Remove unused cruft
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-11-28 14:44:34 -07:00
Morgan Tocker e79b8451a9 Merge remote-tracking branch 'upstream/master' into cluster_for_test
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-11-07 12:15:34 -07:00
Arindam Nayak 5ac032e49b exclude cluster test from e2e_race
Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
2019-10-30 14:59:21 +05:30
yuxiaobo 76947c4a38 add license in other files
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-10-27 21:24:54 +08:00
Deepthi Sigireddi ee9f1ce160
Merge pull request #5299 from systay/less-mvn-output
Less output from Maven
2019-10-15 08:04:32 -07:00
Andres Taylor 810a919a32 Less output from Maven
Signed-off-by: Andres Taylor <antaylor@squareup.com>
2019-10-15 03:21:50 -04:00
deepthi 2491da0f0f Split tests into unit and endtoend(e2e). Speed up backup test
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-10-14 22:06:04 -07:00
chentanjun 3699dc3653 improve some spelling mistakes
Signed-off-by: chentanjun <2799194073@qq.com>
2019-09-27 21:59:04 +08:00
Jacques Grove 0c493d6bb2 Fix for #5214 by adding back bits of install_protoc-gen-go
Signed-off-by: Jacques Grove <aquarapid@gmail.com>
2019-09-23 17:33:28 -07:00
Morgan Tocker df290b5d6d go mod branch
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-16 09:18:43 -06:00
Alex Charis d0400ff19b Makefile: expose VT_EXTRA_BUILD_FLAGS for use of external build systems
Signed-off-by: Alex Charis <acharis@hubspot.com>
2019-07-25 17:45:21 -04:00
John Watson febb9e165d Standard unix directories
Signed-off-by: John Watson <johnw@planetscale.com>
2019-07-11 13:04:56 -07:00
John Watson f520243e90 Add action to create deb/rpm packages
Signed-off-by: John Watson <johnw@planetscale.com>
2019-06-26 16:02:37 -07:00
Mark Solters 9e982ea3af Fix Percona 8.0 docker build process
Signed-off-by: Mark Solters <msolters@gmail.com>
2019-04-25 16:17:35 -04:00
Mark Solters 1f0718d026 Fix docker build issues for MySQL 8
Signed-off-by: Mark Solters <msolters@gmail.com>
2019-04-25 16:15:57 -04:00
Dan Kozlowski 2268d5622b Overhaul the Dockerfiles
This commit overhauls the dockerfiles, specifically it

1. Converts the lite builds to use a multi-stage build to allow easier
automation
2. Adds in new versions of mysql and mariadb
3. Updates the dockerfiles to use the full gpg key hash to provent
collisions
4. Updates the make file with new targets

Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2019-03-05 10:29:23 -08:00
Daniel Kozlowski 07027d5539 Use correct indentation for Makefile
Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2018-10-19 17:08:48 -07:00
Dan Kozlowski d7a2920bbe Updating Dockerfiles to set User only on base containers
Right now the user is set in the bootstrap containers. This causes an error when building with CGO_ENABLED=0 This change removes the user being set in the base docker containers and moves it downstream to the
base and lite containers

Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2018-10-19 16:45:17 -07:00
Anthony Yeh 42df62325e
travis: Disable remote-stats reporting.
Signed-off-by: Anthony Yeh <enisoc@google.com>
2018-09-19 12:18:09 -07:00
David Weitzman 3c64a22828 Upgrade golang protobuf to v1.1.0
Also, simplify the protoc call by removing some intermediate tools and steps involving the python grpcio-tools wrapper.
The motivation for changing the build was that I had trouble getting the old build to work. It might just have been me.
This approach is arguably simpler because it involves fewer tools, no temp files, and no calling "sed" on the output.

Signed-off-by: David Weitzman <dweitzman@pinterest.com>
2018-06-13 20:13:05 -07:00
Michael Berlin c92ba80a31 Makefile: Reduce number of concurrent tests from 4 to 2 for "make docker_bootstrap_test".
4 tests concurrently is killing my workstation :)

Signed-off-by: Michael Berlin <mberlin@google.com>
2018-04-10 17:11:27 -07:00
Michael Berlin 622df68d43 bootstrap: Install protobuf gRPC Python plugin via PyPi and do not compile it from a Git checkout.
Tested:
- I've rebuilt bootstrap docker images locally and all tests passed on them.
- I ran `bootstrap.sh` and `make proto` manually on my Linux workstation and my MacOS laptop.

History of changes for references:
- https://github.com/vitessio/vitess/pull/3220 - I got rid of compiling gRPC from source. Because of that, the gRPC Python plugin was no longer installed and "make proto" stopped working.
- https://github.com/vitessio/vitess/pull/3461 - This PR reverted my changes and changed back to compile gRPC from source again. However, that would not have been necessary in the first place. The "grpcio-tools" package has the protobuf compiler and the protobuf gRPC Python plugin. See: https://grpc.io/docs/quickstart/python.html#install-grpc-tools
- https://github.com/vitessio/vitess/pull/3516 - This PR removed the gRPC compilation, but still compiled the protobuf gRPC Python plugin.

Note: As part of the now removed Python plugin compilation, we also had a compiled "protoc" binary. Since we will no longer have this binary, we're using the recommended procedure from the "grpcio-tools" package instead. See: https://grpc.io/docs/quickstart/python.html#generate-grpc-code They provide a Python wrapper script around a shared library of the "protoc" compiler, but not a binary anymore. Therefore, we have to call "python -m grpc_tools.protoc" to invoke the protobuf compiler.

Other changes:
- This protobuf compiler knows the Python plugin by default and does not require the --plugin flag for generating the Python services.
- In contrast, --plugin is now required to pass the gRPC Go plugin.
- The Python plugin changed its flag from --grpc_out to --grpc_python_out.
- The Python plugin emits different files since gRPC 1.7.0. I'll regenerate the files in a separate commit. See: https://github.com/grpc/grpc/releases/tag/v1.7.0
- Removed unlinking and linking back of Homebrew "protobuf" package. It looks to me like an existing package should not interfere with our virtualenv environment.
- Removed cleanup call where we deleted the obsolete $VTROOT/dist/protobuf directory. If users still have that directory on disk, they can delete it manually themselves. Existing directories should not interfere with the new approach.

Signed-off-by: Michael Berlin <mberlin@google.com>
2018-04-08 16:46:14 -07:00
Arthur Neves fd1ecf091b Make sure VERSION is defined for release target only
Also, require a re-build of base image, as we want to make sure we
release what is latest.

Signed-off-by: Arthur Neves <arthurnn@gmail.com>

Signed-off-by: Arthur Neves <arthurnn@gmail.com>
2018-03-13 20:23:08 +01:00
Arthur Neves f98602bef2
Add make release task
now you can run: `make release VERSION=2.2`
which will cut a release, update the libs and generate a .tar.gz
file into the releases folder."

Signed-off-by: Arthur Neves <arthurnn@gmail.com>
2018-03-09 20:01:59 +01:00
Anthony Yeh 147770fd81
Update scripts for new directory structure. 2018-02-27 12:39:30 -08:00
Sugu Sougoumarane 7de8ffd45e php: drop php client
Issue #3230
Now that we support mysql protocol, there's no need to support
a custom PHP client any more.
2017-12-05 19:37:09 -08:00
Simon Mudd 97a67baa61 fix typo in instruction to run bootstrap.sh 2017-11-24 08:09:43 +01:00
Simon Mudd a1dd76947d Add new makefile target cleanall to remove files pulled down by bootstrap.sh
This is to completely clean up your working environment without touching
anything that's local in the git repo. Reasons for this are when changing
the go binaries or wanting to be sure your repo is clean.
2017-11-24 08:02:04 +01:00
Sugu Sougoumarane 23ad49b5b1
Merge pull request #3381 from arthurnn/arthurnn/make_without_proto
Make sure proto is only required on proto tasks
2017-11-15 15:45:27 -08:00
Alain Jobart d16596cfac Removing the etcd docker images.
They were only used for the Kubernetes demo, that now uses
etcd-operator.
2017-11-15 15:01:44 -08:00