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

80 Коммитов

Автор SHA1 Сообщение Дата
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 c26c6550a7 Merge remote-tracking branch 'upstream/master' into morgo-rm-mysql-flavor
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-11-30 18:35:47 -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 51e75357fb Don't use arch in shell scripts
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-11-27 09:16:13 -07:00
Morgan Tocker 58d92b4a4f
Merge pull request #5434 from jiameixie/etcd_env
Fix the etcd run error on aarch64
2019-11-25 12:49:39 -08:00
Morgan Tocker a7b220c5d6 Fixes master branch
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-11-25 10:13:54 -08:00
Jiamei.Xie fae3eb2f5c Fix the etcd run error on aarch64
etcd on unstable or unsupported architectures will print a warning message and immediately exit if the environment variable ETCD_UNSUPPORTED_ARCH is not set to the target architecture.

Change-Id: Ifdd3ed4ae322484477d2db3e2d0eed09e086518f
Signed-off-by: Jiamei.Xie <Jiamei.Xie@arm.com>
2019-11-14 02:39:35 +00: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 976242f80c Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
fix the test error
2019-11-06 22:42:25 +05:30
Morgan Tocker 3c9262f55d Stop nagging about where go is installed
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-11-05 13:15:27 -07:00
yuxiaobo 76947c4a38 add license in other files
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-10-27 21:24:54 +08:00
Arindam Nayak ba3d1c226c
Added cluster setup using go processes
Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
2019-10-24 13:14:16 +05:30
Morgan Tocker df290b5d6d go mod branch
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-16 09:18:43 -06:00
Morgan Tocker 00dfc65f38 Add initial support for capabilities (#4987)
* Add initial support for capabilities

This eliminates the need to set MYSQL_FLAVOR

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Removed MYSQL_FLAVOR variable precedence

It will cause backwards compatibility problems,
since many users set "MySQL56" for any MySQL system.

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Address PR feedback (WIP)

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Fixed mysql_safe to not use capabilitities

Reverted small changes to configs

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* fix version detection

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Fix style, re-add EXTRA_MY_CNF from review

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Address review feedback

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* address remaining feedback

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Remove rogue added space

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Address PR feedback

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Address PR feedback

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Fix broken test

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Fixed tests

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Addressed PR feedback

Added tests for version detection

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* update copyright

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Remove unset MYSQL_FLAVOR

I thought about this: it's a bad idea.
It means that if there was a test that created 2 mysqld's, the usage
would not be repeatable/idempotent.

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Make sure error is caught.

Signed-off-by: Morgan Tocker <tocker@gmail.com>

* Address PR Feedback

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-07 23:41:43 -07:00
Scott Lanning fea4e1db6a fix a bootstrap.sh error
The error from bootstrap.sh was:
"./dev.env: line 23: source: build.env: file not found".

I think it broke in commit 157ebf5830 .
Not sure if this is the right fix, but it worked for me
(bootstrap.sh does `source ./build.env`, so it's probably ok).

Signed-off-by: Scott Lanning <scott.lanning@booking.com>
2019-01-02 17:31:38 +01:00
Jitendra Vaidya 157ebf5830 Added the ability to build without tests
Signed-off-by: Jitendra Vaidya <jitendra.vaidya@gmail.com>
2018-12-23 06:44:15 +00:00
Sugu Sougoumarane 085e2b282c dev.env: fix pypath typo
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2018-07-10 20:37:53 -07:00
Simon J Mudd 88c721c76b make dev.env work with posix (bourne) shell
dev.env is sourced from the shell and for some build environments
like rpm the shell used for build "snippets" MUST be a posix
shell, not bash.

So adjust one occurence where trying to build a vitess rpm from
rpmbuild failed due to bashisms not recognised by the posix shell.

Also remove the shebang line as this script is not run in
isolation but sourced from an existing shell.

Signed-off-by: Simon J Mudd <sjmudd@pobox.com>
2018-06-18 09:37:26 +02:00
Michael Berlin 9a6f21e3c2 dev.env: Fix all shellcheck linter errors.
Signed-off-by: Michael Berlin <mberlin@google.com>
2018-04-09 13:01:21 -07:00
Ashe Connor fd9b55f284
Don't fail on PATHs with embedded whitespace
Signed-off-by: Ashe Connor <ashe@kivikakk.ee>
2018-03-05 10:26:06 +11:00
Anthony Yeh 147770fd81
Update scripts for new directory structure. 2018-02-27 12:39:30 -08:00
Alain Jobart 89afd0b884 Script and doc fixes for mysql_config.
We don't need to compile with the libmysqlclient-dev package any more,
as we don't use the MySQL C client library. Removing mentions of it.
2018-02-22 10:29:06 -08:00
Michael Berlin f109d14287 Bump the minimum Go version to 1.9.
This is tracked here: https://github.com/youtube/vitess/issues/3219

Note that this also triggers a Debian version upgrade to their latest
stable version "stretch" which was released this summer.

This required several additional changes and cleanups:

- Remove outdated GO15VENDOREXPERIMENT.
- Docker: Upgrade Java to 8 (from 7).
- Docker: Upgrade PHP to 7 (from 5).
- Docker: Use "pip" from distribution and do not install it ourselves.
- Docker: PHP: Use "pecl install grpc" and no longer compile it ourselves. Relevant parts in travis/install_grpc.sh have been removed.
- Docker: Do no longer install etcd and consule in the common image because we call bootstrap.sh when building the flavored image and that installs these two as well.
- travis/install_grpc.sh changes:
  - Do no longer compile gRPC because for PHP and Python we can use other ways to install the shared library.
  - Do no longer compile protobuf. Instead, download pre-compiled "protoc" binary in bootstrap.sh.
  - Updated Python and PHP versions to 1.6 as we did earlier for Go.
2017-09-21 21:26:54 -07:00
Rafael Chacon 48809bd975 Allow VTDATAROOT to be configurable
* This will allow users to provide a VTDATAROOT env variable and make this
  directory configurable.
2017-08-02 11:38:22 -07:00
Simon Mudd ba36c74219 Fix WARNING text if GOROOT not set properly 2017-05-08 11:30:35 -07:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Michael Berlin a9e9713c22 Suppress output when checking for python2 binaries.
The check did print output like this:
/usr/bin/python2
/usr/bin/pip2

If you did source dev.env in your .bashrc, you would see it in every new shell.
2017-03-07 21:12:20 -08:00
Alex Charis f14c0586fc Second effort at selecting python2 on all systems. 2017-02-14 13:39:41 -05:00
acharis 3a5949bb9c Use python2 binaries during bootstrap if they exist.
This fixes the problem that Arch Linux defaults /usr/bin/python to python3 and not python2.

See https://www.python.org/dev/peps/pep-0394/ for details.
2017-02-10 13:32:07 -08:00
thompsonja 12cf93459e Initial cluster sandbox code. (#2413)
* Initial cluster sandbox code.

BUG=33969078
2017-01-18 09:56:48 -08:00
Joshua Thompson ddca7db497 Add webdriver support for new vtctld2 UI 2016-08-16 11:26:41 -07:00
Alain Jobart ddf2e8a188 Fixing setup for simplicity. 2016-07-14 13:09:03 -07:00
Alain Jobart 1477c2a1b9 Trying to simplify setup. 2016-07-14 13:03:24 -07:00
Alain Jobart 1bf6cf6f6a Adding extra lib flag. 2016-07-14 13:03:24 -07:00
Alain Jobart 5e985ac69b Removing old zk cgo config. 2016-07-14 13:03:24 -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 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
Anthony Yeh 8670f392ca Use native Go vendor mode for godeps.
This gets rid of the warning about disabling native vendor mode
due to legacy Godeps/_workspace directory being present.

It also means we require Go 1.5+ since that's when native vendor
mode was first introduced.
2016-04-06 14:43:17 -07: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
Joshua Thompson e6bd8d69ba move large scale end2end tests to new folder 2016-02-04 11:38:01 -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
Anthony Yeh aa1da5cd71 Upgrade to ZooKeeper 3.4.6.
Fixes #1204
2015-11-02 20:45:43 -08:00
Ammar Aijazi 4b448971b3 Fix dev.env for global gRPC installs 2015-09-23 15:58:59 -07:00
Ammar Aijazi 4cba9d02c1 vtdb.tablet client uses error codes to return errors instead of string parsing 2015-09-23 15:58:59 -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 3f459079c8 Adding a CGO include path for mariadb. 2015-02-24 09:09:17 -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
Shengzhe Yao da8e9622cf replace single bracket by double breackets
this fixes problem when one use zsh instead of bash and double brackets
are also bash complied.
2015-02-14 15:11:04 -08:00