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

102 Коммитов

Автор SHA1 Сообщение Дата
Morgan Tocker 79a22da759 Merge remote-tracking branch 'upstream/master' into morgo-new-go-modules
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-30 12:52:33 -06:00
Michael Pawliszyn 63456f6790 Updating to golang 1.12
Signed-off-by: Michael Pawliszyn <mikepaw@squareup.com>
2019-08-20 13:14:27 -04:00
Morgan Tocker df290b5d6d go mod branch
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-16 09:18:43 -06:00
Harald Nordgren c7b61848a5 Bump Go versions and use '.x' to always get latest minor versions
Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
2018-10-28 15:57:04 +01:00
Derek Perkins affebed7a2 go: update to go 1.11
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2018-10-05 14:42:05 -06: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
Anthony Yeh 323834b91b
Update Travis config for custom Go import path. 2018-02-27 13:50:50 -08:00
Michael Berlin b03e58741c travis: Run tests within our "mysql57" bootstrap Docker image instead of natively.
This will fix the recent test failures and undo the change from https://github.com/youtube/vitess/issues/3203 where we had to disable the tests "unit" and "mysql_server" because they were constantly failing. With this change, the two tests are enabled again.

More importantly, with this change we no longer have to maintain Vitess' dependencies in the Travis CI environment.

Instead, we'll depend on our "bootstrap" Docker images to run the test.

Note that I had to come up with a caching mechanism for "make build". By default, we provide the test within the Docker container with a clean copy of the Git repository and run "make build" before *each* test i.e. a Travis build with 10 tests in it would have run "make build" 10 times. To avoid this, I added a new option "-use_docker_cache" to test.go which will run "make build" before all tests and use "docker commit" to create a new temporary cache image.

Overall, this change has several consequences:

- Travis CI builds will be dependent on an up to date Docker image. For example, if somebody adds a dependency to vendor/vendor.json and forgets to rebuild and push the used Docker image, "make build" will fail. I'll add a test for this in a separate commit.

- We'll use MySQL 5.7 (instead of MariaDB) for the Travis test runs.

- We can no longer use Travis container infrastructure and have to use the VM infrastructure instead. That means an additional 20 seconds wait time until Travis has started a VM and runs the build.

- More overhead per Travis build because we need to pull the Docker image first (takes up to two minutes). Before, we used Travis' caching mechanism to cache dependencies between builds.

- Slightly slower tests because the VM infrastructure has less resources than the container one (~2 CPUs (bursted) instead of 2 CPUs, see https://docs.travis-ci.com/user/reference/overview/).

- The ".git" directory will be copied into the Docker image as well now because travis/check_make_proto.sh needs it. I'll create a separate commit to integrate this.
2017-09-20 17:58:04 -07:00
Michael Berlin 108dbd4dcd travis: Temporarily disable "unit" and "mysql_server_test" on Travis.
They always fail/timeout. We'll undo this change when we switch to running the tests in Docker on Travis.

Note that I'm undoing the change from https://github.com/youtube/vitess/pull/3205 where I disabled "mysql_server_test" for all executions through test.go.
2017-09-19 17:23:16 -07:00
Sugu Sougoumarane 6d3b4999bb travis: setup to notify slack 2017-08-16 18:16:28 -07:00
Rafael Chacon 2711aeb12f Fix for travis ci
* Set go_import_path so forks of the project can benefit from Travis CI. Without
this change there are some assumptions in the bootstrap script and also in the
import of packages that won't be hold in a fork of the project and the tests
will break.
2017-08-02 20:10:43 -07:00
Michael Berlin 37c99d2e93 Pin Travis test config to Ubuntu Precise.
Travis CI is in the process of changing all images from Precise to Trusty.

See their announcement: https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming

This would break how we install our dependencies.

Note that we're using the Container based infrastructure (sudo: false). They plan to get rid of this combination (Precise + sudo: false) by Sep 5. Before that, we should try "sudo: required" or do the planned longterm change to run the tests within Docker images.
2017-07-25 20:14:51 -07:00
Michael Berlin bcdc11f4cf travis: Exclude more generated Java files from the Travis cache.
These files unnecessarily trigger an update of the cache which prolongs the test build by ~30 seconds.

I had to generalize the path for the SNAPSHOT jar files because these two files were not matched:
- $HOME/.m2/repository/io/vitess/vitess-client/1.1.0-SNAPSHOT/vitess-client-1.1.0-SNAPSHOT-tests.jar
- $HOME/.m2/repository/io/vitess/vitess-jdbc/1.1.0-SNAPSHOT/vitess-jdbc-1.1.0-SNAPSHOT-fatjar.jar
2017-04-04 11:52:48 -07:00
Michael Berlin 729e39e7e2 Merge pull request #2745 from michael-berlin/travis_increase
travis: Increase the Travis per test timeout from 5 to 8 minutes.
2017-04-03 12:04:36 -07:00
Michael Berlin 8e15a63fb7 travis: Increase the Travis per test timeout from 5 to 8 minutes.
This is necessary because the "backup" test exceeded 5 minutes occasionally in the past.

BUG=36712757
2017-04-03 10:15:41 -07:00
Michael Berlin 7c62ec8f28 Rename all occurences of com/youtube/vitess/* to io/vitess/* as well.
This change is part of https://github.com/youtube/vitess/issues/2725. I forgot to change "com/youtube/vitess" in the previous PR (https://github.com/youtube/vitess/pull/2726)
2017-04-01 23:03:34 -07:00
Michael Berlin 658bb5d512 Revert "TEMP: Debug failing Java test."
This reverts commit fe230ec02f.

This commit was accidentally merged as part of https://github.com/youtube/vitess/pull/2726.
2017-03-31 16:48:26 -07:00
Michael Berlin fe230ec02f TEMP: Debug failing Java test. 2017-03-31 09:50:56 -07:00
Michael Berlin c9d36a49ef Bump minimum Go version from 1.7 to 1.8. 2017-03-28 08:11:24 -07: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
Alain Jobart 2eb97aaae7 New etcd 'etcd2' topology client implementation.
The new etcd2 topology service is the new more consistent version of the
etcd topology. It has the following improvements:

- Uses the same file structure as zk2topo. It then also uses the generic
  vtctld.Explorer as well.

- Uses the new etcd clientv3 library, with new key-value API and leases.
  It is not backwards compatible with the old etcd topology.

- Uses a configurable toplevel directory for topology data in global and
  local cells.

Vitess 2.1 will still include the old etcd topology client, but it will
be deprecated, and removed from Vitess 2.2. Use topo2topo binary to
upgrade, see documentation.

Implementation details:
- bootstrap.sh now downloads etcd.
- etcd is used in unit tests of the library, instead of using a mock.
- Fixing wrangler.InitTablet error return.
  And adding -allow_update to test calls, so they work anyway.
- Running tabletmanager.py for zookeeper, zk2, etcd, etcd2 flavors.
- Ignoring the 'test' tag for vendored libraries. See:
  https://github.com/kardianos/govendor#ignoring-build-tags-and-excluding-packages
- in end-to-end tests, restarting etcd to wipe it.
- publish web site.
2016-12-28 07:02:37 -08:00
Michael Berlin 94f3e0513e travis: Run goveralls test target on shard 0.
Before commit 6f10800, the target was always run although its config is set to "Manual: false". In said commit I fixed test.go to respect the "Manual" field for the -shard execution mode as well.

Therefore, Travis needs to explicitly run this test now.

(In general: It's set to manual because it only makes sense to run it on Travis and not e.g. when running the tests locally in a Docker image.)
2016-12-19 16:46:00 +01:00
Michael Berlin a2e4bd6c38 travis: Split if/elif into two commands. 2016-12-19 16:45:35 +01:00
Michael Berlin 9eb1828be2 Bump minimum Go version from 1.5 to 1.7.
bootstrap.sh is currently failing in our Travis CI tests because "golint" dropped support for Go 1.5.

While we're at it, let's upgrade to 1.7 instead of 1.6. (After all, 1.7 also comes with a significant speed improvement.)
2016-10-03 13:57:34 -07:00
Pavel Ivanov 81948b8473 Disable php testing until crashing of php on Travis is fixed. (#2081) 2016-09-23 08:59:03 -07:00
thompsonja 4a5a41d4a7 Make Sauce Connect only run on the last shard for non-PRs. (#2042)
Make Sauce Connect only run on the last shard for non-PRs.
2016-09-12 17:52:18 -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
Alain Jobart a130b4b537 Remove all C deps on zk lib. 2016-07-14 13:03:24 -07:00
Joshua Thompson b94d79f3b9 Add test.go exclusion flag to sharded tests as well 2016-07-01 19:42:09 -07:00
Joshua Thompson d3e3b95a98 unbreak travis config 2016-07-01 19:06:44 -07:00
Joshua Thompson c44b98949b Remove SAUCE_ACCESS_KEY from .travis.yaml 2016-07-01 15:29:07 -07:00
Joshua Thompson 3a4050d80e Exclude webdriver tests from Travis PRs 2016-07-01 15:06:22 -07:00
Joshua Thompson c3c3cdc628 Test Travis/Sauce on internal PRs 2016-06-28 13:42:35 -07:00
Joshua Thompson 1af501d492 Webdriver / Travis / Sauce integration fixes. 2016-06-28 09:38:50 -07:00
Joshua Thompson 8531acaacd Add SAUCE_USERNAME and SAUCE_ACCESS_KEY env vars. 2016-06-27 14:36:09 -07:00
Joshua Thompson eddfbf40e0 Update travis configs to support sauce labs (for webdriver tests) 2016-06-27 11:47:29 -07:00
Anthony Yeh 60c3a1a042 Clean up memcached dependencies.
These are no longer needed after #1742.
2016-05-31 12:22:27 -07:00
Alain Jobart 10eef51c66 Removing python bson library. 2016-03-16 09:19:27 -07: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 02f25cbe24 Fix indentation in .travis.yml 2016-02-27 02:31:07 -08:00
Anthony Yeh 938f31743d Update to gRPC 0.13. 2016-02-27 02:31:03 -08:00
Anthony Yeh 85e4dabe63 php: Update grpc dependency to 0.12. 2016-01-26 01:17:37 -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 daa1ad8fac Adding python-six to travis build. 2016-01-25 07:35:48 -08:00
Alain Jobart c6db0b6037 Not installing virtualenv for travis, conflicts with the one we install. 2016-01-22 13:29:46 -08:00
Alain Jobart 0c425e0b5c Fixing docker and travis builds, hopefully. 2016-01-22 13:29:46 -08:00
Michael Berlin dc9e3ebfe6 travis: Exclude more Maven files from the Travis cache.
This became necessary because test/local_example.sh runs mvn install now to install some jar files locally.
2015-12-19 00:28:08 -08:00
Michael Berlin 6d22139259 Travis: Switch from Go 1.4 to Go 1.5. 2015-11-17 22:52:43 -08:00
Anthony Yeh 5b6b96c8cc Merge pull request #1274 from enisoc/zk
Upgrade to ZooKeeper 3.4.6.
2015-11-02 21:42:06 -08:00
Anthony Yeh aa1da5cd71 Upgrade to ZooKeeper 3.4.6.
Fixes #1204
2015-11-02 20:45:43 -08:00