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

63 Коммитов

Автор SHA1 Сообщение Дата
Shlomi Noach b12482b9a1 skip build
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2021-01-17 11:09:59 +02:00
D.K 9e5b9c523e Updating golang to 1.15 for builds
Updating golang build to 1.15 and bumping bootstrap image identifier to
reflect new build.

Signed-off-by: D.K <dan.kozlowski@gmail.com>
2020-12-18 14:05:36 -08:00
D.K bbb41868fc Worksflows run tests directly
Signed-off-by: D.K <dan.kozlowski@gmail.com>

Signed-off-by: D.K. <dan.kozlowski@gmail.com>
2020-12-16 15:29:13 -08:00
D.K e1eb1ced35 formatting test.go changes
Signed-off-by: D.K <dan.kozlowski@gmail.com>

Signed-off-by: D.K. <dan.kozlowski@gmail.com>
2020-12-16 15:13:54 -08:00
D.K 09c9d3f4a3 Fixing test driver error
Must de-reference paramaters

Signed-off-by: D.K <dan.kozlowski@gmail.com>
2020-12-15 10:57:36 -08:00
D.K f4891971d0 Add Version to Bootstrap Image
This change adds a version to the bootstrap images. This will allow for
an easier transition between bootstrap images. This field is starting at
0 and will be incremented to 1 for the change to golang 1.15

Signed-off-by: D.K <dan.kozlowski@gmail.com>
2020-12-15 10:49:39 -08:00
Morgan Tocker 03c0846893 Remove deadcode in tests
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-03-27 11:03:00 -06:00
Ajeet jain 2a8b8fe4ba
added comment for docker run inside test.go
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2020-02-21 10:04:23 +05:30
Ajeet Jain 499168aa02 trying out docker test for web vtctl
Signed-off-by: Ajeet Jain <ajeet@planetscale.com>

Signed-off-by:  <ajeet@planetscale.com>
2020-02-20 10:44:38 +05:30
Ajeet jain 2580188959
fixed test.go framework for go cluster tests
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2020-02-07 13:35:03 +05:30
Ajeet Jain f429154009
Splitting github actions for endtoend go cluster in multiple nodes
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2019-12-26 11:49:10 +05:30
Sugu Sougoumarane 92083793ac tests: fix various tests
Fixes #5532
Fixes #5569
Fixes #5571

With this fix, unit tests pass for all flavors.
Also fix test.go to cover the newer flavors.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-12-22 13:13:01 -08: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
tanjunchen a205ed390f update license header in java/ tools/ travis/ test.go files
Signed-off-by: tanjunchen <2799194073@qq.com>
2019-10-12 15:55:55 +08:00
xichengliudui f0a9bc71a0 Using const() defines constants together
Signed-off-by: xichengliudui <liuduidui@beyondcent.com>

update pull request
Signed-off-by: xichengliudui <liuduidui@beyondcent.com>

update pull request
Signed-off-by: xichengliudui <liuduidui@beyondcent.com>
2019-04-21 13:24:19 -04:00
deepthi 90c99d1d65 staticcheck: vttablet packages
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-03-07 11:44:45 -08:00
Andres Taylor 9c000b6a74 Typos
Signed-off-by: Andres Taylor <antaylor@squareup.com>
2019-02-28 10:49:05 +01:00
Andres Taylor 66c316134b List available tests if test is not found
Signed-off-by: Andres Taylor <antaylor@squareup.com>
2019-02-28 10:45:15 +01:00
David Weitzman 6088a6f5c6 Fix a memory leak in opentsdb reporting
Responses from http.* methods must be explicitly closed.

Signed-off-by: David Weitzman <dweitzman@pinterest.com>
2018-06-17 17:38:13 -07:00
Anthony Yeh 147770fd81
Update scripts for new directory structure. 2018-02-27 12:39:30 -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
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
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 9bbdbc7e76 test.go: Change the default from all flavors to mysql57.
This way a simple "./test.go unit" won't run the test for all flavors.

I've added "all" as a placeholder for all available flavors.
2016-11-16 16:31:08 -08:00
Robert Navarro 3ade15b5bf Include Percona 5.7 Docker image in docs and test runner. (#2113) 2016-10-05 15:01:52 -07:00
Michael Berlin 6f10800c31 test.go: Skip manual tests in the -shard mode. (#2035) 2016-09-08 17:36:43 -07:00
Michael Berlin b306b98a2c test: Temporarily disable the webdriver test for the new vtctld2. (#1990)
The test requires many dependencies which prolong the current test duration by up to 10 minutes on Travis.

Once we figured out how to cache the dependencies both on Travis and our local machines, we can re-enable the test.

Instead of commenting the code for installing the dependencies, I've moved it to bootstrap_web.sh for now.
2016-08-24 22:16:06 -07:00
Joshua Thompson ddca7db497 Add webdriver support for new vtctld2 UI 2016-08-16 11:26:41 -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 3a4050d80e Exclude webdriver tests from Travis PRs 2016-07-01 15:06:22 -07:00
Anthony Yeh 5f149b7f94 test.go: Optionally run tests in parallel. 2016-06-24 14:51:45 -07:00
Anthony Yeh 7744ea634e test.go: Run multiple flavors. 2016-06-24 14:51:45 -07:00
Anthony Yeh 4170be37ce Add Docker images for MySQL 5.7. 2016-05-20 17:59:37 -07:00
Anthony Yeh c24dc79977 docker: Switch default flavor to mysql56. 2015-11-02 17:11:28 -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
Anthony Yeh 5de90a8d12 test.go: Don't crash if stats contains tests that aren't in config. 2015-09-22 17:17:17 -07:00
Michael Berlin a8c3103d31 test.go: Allow tests to specify a RetryMax value.
Use travis/unit_test_runner.sh to run the Go unit tests.
2015-08-26 00:09:18 -07:00
Anthony Yeh 0e6318fd0b Merge pull request #1030 from enisoc/travis
test.go: Don't use bash for launching non-Docker tests.
2015-08-24 14:13:47 -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
Shengzhe Yao 4266159c11 ask test.go to output absolute path for output file 2015-08-24 10:51:40 -07:00
Anthony Yeh 55c0561ed1 travis: turn off -follow for now to reduce spam in the happy case. 2015-08-23 22:11:48 -07:00
Anthony Yeh 9b00cd4e72 test.go: rename rebalance operation to avoid confusion. 2015-08-23 21:56:06 -07:00
Anthony Yeh 37fa3201c4 test.go: Assign port ranges to mitigate against zombies. 2015-08-23 21:32:34 -07:00
Anthony Yeh 48f4e10427 test.go: Clean up nested loops. 2015-08-23 20:56:12 -07:00
Anthony Yeh 99fb1650de test.go: Clarify flag descriptions. 2015-08-23 20:45:28 -07:00
Anthony Yeh 1ba645289d test.go: Remove unnecessary conditional. 2015-08-23 20:21:05 -07:00
Anthony Yeh 1ac3d8166a Use test.go for Travis and "make test". 2015-08-23 19:51:42 -07:00
Anthony Yeh 7c8d3ff669 test.go: Add log following and remote stats. 2015-08-23 18:26:02 -07:00
Anthony Yeh e02629932a test.go: Record stats for tests. 2015-08-23 17:43:41 -07:00
Anthony Yeh 082f9afd6d test.go: Add goveralls script as a manual target. 2015-08-23 17:43:41 -07:00