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

78 Коммитов

Автор SHA1 Сообщение Дата
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
Sugu Sougoumarane 7cf211c7a7 travis: undo changes to vendor.json during bootstrap
vendor.json is not expected to change, but govendor sync
sometimes changes it. So, this change undoes those changes
before performing the proto gen checks.
2017-05-05 01:46:11 -07:00
Michael Berlin 44a74cd4f7 travis/install_grpc.sh: Fix system wide installation.
This type of installation is used when generating the bootstrap images.

The variable "PIP" was not defined. We recently changed that script to allow for binaries "pip2" on systems where Python 3 is the default.
2017-03-29 20:58:36 -07:00
Michael Berlin e4dd383216 travis: Update MariaDB download URLs.
Fixes recent Travis build errors.
2017-03-27 16:05:49 +02: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
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
Alain Jobart 62d68cc0fd Better comments for pip update. 2017-01-27 08:44:57 -08:00
Alain Jobart 8ac06792c7 Upgrading pip when installing gRPC grpcio. (#2510)
Seems dependent packages now need it.
2017-01-26 16:31:16 -08:00
Yipei Wang bec8eeede0 Fix the version of url link in download_mariadb.sh. 2017-01-26 12:12:07 -08:00
Alain Jobart c7dba94665 Upgrading MariaDB version. 2016-11-04 10:36:46 -07:00
Michael Berlin bc331e56ff grpc: Clarify when we can remove the macOS workaround again. 2016-10-07 17:11:32 -07:00
Rasta 90fd05ab4e Fix for OSX Sierra build of Protobuf bundled with Grpc 2016-10-08 00:23:44 +02:00
Anthony Yeh 313d926f89 Update to gRPC 1.0.0 and protobuf 3.0.0. (#2012) 2016-09-23 11:41:17 -07:00
Joshua Thompson 78b31326b5 Bump Travis MariaDB to 10.0.27 2016-08-29 17:37:05 -07:00
Michael Berlin d001b412cb travis: Ignore generated protobuf changes for the gzipped binary FieldDescriptor.
This is necessary because the output changes from Go 1.6 to Go 1.7.
2016-07-25 18:08:01 -07:00
Joshua Thompson 2c81e9745f Bump travis download_mariadb script from 10.0.25 to 10.0.26 2016-06-24 14:37:04 -07:00
Anthony Yeh 6b220d786d Update Travis to MariaDB 10.0.25.
The mirror no longer holds the older version.
2016-05-05 11:23:28 -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
Rasta 07ec6c95da OSX compatibility with grpc 0.13 integration 2016-03-05 09:25:42 +01:00
Michael Berlin 1805ce20f4 bootstrap: Force upgrade of python "six" package for system-wide installation.
Fixes issue in Debian Jessie.

Removed force upgrade of "virtualenv" because the current version is good enough.

make docker_bootstrap passes after this change.
2016-03-02 23:09:36 -08:00
Michael Berlin ce4239f84a bootstrap: Pin protobuf python dependency to 3.0.0a3.
Fixes the following error seen in Travis:

  TypeError: __init__() got an unexpected keyword argument 'syntax'
2016-03-02 21:44:28 -08: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
Michael Berlin 58e72c1a9c bootstrap: Do no longer install gRPC Python dependencies manually.
Since gRPC 0.13, the gRPC Python install process takes care of downloading python modules like "six" or "google.protobuf".

The new install process also no longer requires "tox", hence we dropped that dependency as well.

This commit also fixes the issue which was introduced in commit 938f31743d.

When we changed the install command flag for protobuf python from --root to --prefix, a system wide python package would always trump the locally installed version. Due to that, we could no longer run the e2e tests on our desktops. Since we no longer manually install protobuf python, this issue goes away. Before I had that solution, I did some analysis why the system wide version gets imported instead of the local version.

If --prefix is used, protobuf python is installed as an .egg file in the "site-packages" directory.

If --root is used, the .py files are copied to the "dist-packages" directory instead.

For unknown reasons, the .egg file in "site-packages" was not used when calling "import google.protobuf".

Here's what it looked like:

--prefix: (not working)

$ python -v
>>> import google.protobuf
[...]
import google # loaded from Zip /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/site-packages/protobuf-3.0.0b2-py2.7-linux-x86_64.egg/google/__init__.pyc
import google.protobuf # directory /usr/lib/python2.7/dist-packages/google/protobuf
import google.protobuf # precompiled from /usr/lib/python2.7/dist-packages/google/protobuf/__init__.pyc
>>>

--root: (working)

$ python -v
>>> import google.protobuf
import google.protobuf # directory /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/dist-packages/google/protobuf
import google.protobuf # precompiled from /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/dist-packages/google/protobuf/__init__.pyc
>>>
2016-03-01 22:38:23 -08:00
Anthony Yeh bbbccb0a88 Update MariaDB version in Travis. 2016-02-27 02:31:07 -08:00
Anthony Yeh 3f2d479a9a docker/bootstrap: Build gRPC PHP plugin from gRPC sources.
The pecl build isn't always up-to-date with the gRPC version we use.
2016-02-27 02:31:07 -08:00
Anthony Yeh 938f31743d Update to gRPC 0.13. 2016-02-27 02:31:03 -08:00
Rasta 5504ab1263 OS X compatibility with Grpc 0.12 2016-01-31 19:45:54 +01:00
Anthony Yeh 85e4dabe63 php: Update grpc dependency to 0.12. 2016-01-26 01:17:37 -08:00
Anthony Yeh bdc670039e bootstrap: Run parallel make. 2016-01-25 16:01:09 -08:00
Alain Jobart 2035a3fb0d Moving 'six' package into gRPC install, as it's not white-listed for travis. 2016-01-25 08:39:08 -08:00
Alain Jobart 0c425e0b5c Fixing docker and travis builds, hopefully. 2016-01-22 13:29:46 -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 cdd6ec6a63 Merge pull request #1439 from Rastusik/php_composer_json
Composer files moved to project root folder #1438
2016-01-14 16:02:18 -08:00
Rasta 6d0ff3a493 Travis - turn on PHP build caching again 2016-01-14 22:17:52 +01:00
Rasta edcc364910 Travis - Force PHP rebuild with DOM support for phpunit with using phpunit.xml 2016-01-14 22:14:49 +01:00
Rasta e56184c58b composer should be run during every travis build 2016-01-14 21:53:22 +01:00
mfris 8d623c7d18 Force composer dependencies update in travis 2016-01-14 12:51:35 +01:00
Rasta 88a6451380 OSX protobuf version change comments (install_protobuf.sh) 2016-01-13 23:41:24 +01:00
Rasta 1ad75ce7b0 OSX - protobuf needs to be built in version 3.0.0-beta-2 2016-01-13 23:41:24 +01:00
Rasta df41b52b97 composer.json moved to project root -> dependencies update 2016-01-13 22:36:35 +01:00
Anthony Yeh 29eb5cd3df Revert to protobuf v3.0.0-beta-1
The grpc library has not yet been updated for a renamed function in
protobuf v3.0.0-beta-2:

https://github.com/grpc/grpc/issues/4505
2016-01-12 14:52:14 -08:00
Rasta 142f84b7f5 Compatibility with OSX. The commit also contains instructions for setting up Vitess on OSX. 2016-01-11 23:29:40 +01:00
Michael Berlin d67ebc01fa travis: Update MariaDB download URls from 10.0.22 to 10.0.23. 2015-12-21 02:45:47 -08:00
Anthony Yeh f300f31c53 php: Update dependencies.
Mostly to get a bugfix in gRPC PHP.
2015-12-08 16:01:25 -08:00
Michael Berlin 9aaac37c97 travis: Change download URLs for MariaDB to 10.0.22. 2015-11-17 22:55:20 -08:00
Alain Jobart 2a2cdb5937 Update grpc build from 0.11.0 to 0.11.1. Seems like there is no impact. 2015-11-09 13:14:59 -08:00
Anthony Yeh 3dd746af77 docker: Remove unused mongo PHP extension. 2015-11-02 17:11:34 -08:00
Anthony Yeh 295d728509 travis: Build gRPC PHP extension. 2015-10-08 03:48:13 -07:00
Anthony Yeh e490edacbb travis: Switch to PHP 5.5.9 2015-10-08 01:04:33 -07:00