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

195 Коммитов

Автор SHA1 Сообщение Дата
Ajeet jain c7f1cadcf3
trying different way for consul
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2020-02-07 17:04:39 +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
Arindam Nayak fa0a8c1ca4 updated script comment
Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
2020-01-29 15:51:17 +05:30
Arindam Nayak 93506294f6 Code coverage tracking (#11)
* added code coverage using sonar and codecov

Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
2020-01-29 15:51:17 +05:30
Gary Edgar 4ea11a5839 tools/make-release-packages.sh: Various fixes
Signed-off-by: Gary Edgar <gary@planetscale.com>
2020-01-14 15:37:27 -08:00
Morgan Tocker 28eb3c1277 Completely remove VTROOT requirement
Hooks will just not be supported if VTROOT is not specified.

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-01-03 16:40:55 -07:00
Morgan Tocker 4d6c8d1443 Improve gitignore, remove config from packages
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-01-03 14:46:44 -07:00
Gary Edgar ca76c58579 tools/make-release-packages.sh: stop packaging web dir
Signed-off-by: Gary Edgar <gary@planetscale.com>
2020-01-02 14:05:00 -08:00
Morgan Tocker 2607bcde42
Merge pull request #5629 from planetscale/ds-unit-race
include go/... in unit_test_race instead of go/vt/...
2019-12-31 09:56:10 -07:00
Deepthi Sigireddi 1ae74b11cf
Merge pull request #5604 from planetscale/tal_reparent_new
Reparenting endtoend testcases in Go migrated from Python [+ github actions]
2019-12-30 22:04:17 -08:00
deepthi 09eb5d024b include go/... in unit_test_race instead of go/vt/...
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-12-30 21:44:19 -08:00
Sugu Sougoumarane 67e1ba4860 tests: increase timeout for unit tests
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-12-30 11:33:03 -08:00
Ajeet jain 597d95c7ee
code cleanup
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2019-12-26 11:58:57 +05:30
Ajeet jain e32f26fc5b
reverted unrequired files/changes
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2019-12-26 11:56:05 +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
Ajeet jain 0c18dc1e1d
Merge remote-tracking branch 'upstream/master' into tal_reparent_new
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2019-12-23 16:46:37 +05:30
Sugu Sougoumarane 9daae6d8c0 tests: fix unit_race
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-12-22 21:55:11 -08:00
Morgan Tocker c30ec7f649
Merge pull request #5602 from planetscale/gedgar-rm-sauce-connect
tools/sauce_connect_*.sh: Remove broken/unused scripts
2019-12-20 09:27:07 -07:00
Ajeet jain 4c85a56fb9
updated readme and config
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2019-12-20 11:01:57 +05:30
Ajeet jain 4a8b2e8097
reparent test cases written in go
Signed-off-by: Ajeet jain <ajeet@planetscale.com>
2019-12-20 10:45:00 +05:30
Sugu Sougoumarane b8c0dc3e95
Merge pull request #5589 from planetscale/morgo-add-auto-release
Add automated release
2019-12-19 19:34:28 -08:00
Gary Edgar aceb06f273 tools/sauce_connect_*.sh: Remove broken/unused scripts
Signed-off-by: Gary Edgar <gary@planetscale.com>
2019-12-19 18:37:06 -08:00
Morgan Tocker ca6730dce5
Merge pull request #5559 from planetscale/morgo-matrix-unit
Add matrix build for unit tests
2019-12-19 10:39:48 -07:00
Gary Edgar 598806a0d0 make-release-packages.sh: Disable shellcheck 1091 and Add README pointing to local install instructions
Signed-off-by: Gary Edgar <gary@planetscale.com>
2019-12-18 18:16:12 -08:00
Morgan Tocker 73fc38464b Add automated release
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-18 09:48:44 -07:00
Morgan Tocker b4be0c775b Remove MariaDB 10.1
Re-enable unit race
Change CI git checkout to be v2.0
Disable test caching

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-17 09:26:12 -07:00
Morgan Tocker 98b3ad1b45 Improve Test Stability
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-13 07:03:27 -07:00
Morgan Tocker c1dc972878
Merge pull request #5543 from planetscale/morgo-improve-dependency-chk
Add better dependency checking
2019-12-10 18:00:01 -07:00
Morgan Tocker aa84ea4300 Address PR Feedback
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-10 13:16:25 -07:00
Morgan Tocker 5ebe0cfbd4 Make packages with cut down binaries list
Fixes #5421

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-10 12:08:05 -07:00
Morgan Tocker 7bf41372e2 Add mysqld PATH workaround
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-10 09:25:20 -07:00
Morgan Tocker 855cc73708 Improve dependency checking for Go
Minor spelling/grammar improvements

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-10 09:00:33 -07:00
Morgan Tocker 2f373c4600 Add better dependency checking
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-10 08:20:38 -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 0e32897141 Make the unit race test raise errors
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-12-03 19:44:29 -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
Sugu Sougoumarane 9238e401d6
Merge pull request #5353 from hwdef/add-license1
update license
2019-10-27 17:34:00 -07:00
Arindam Nayak f3969f8835 separated cluster test to shard 2
Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
2019-10-25 19:33:55 +05:30
Arindam Nayak ef7139d821 externalize etcd peer port and tmp directory
Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
2019-10-25 17:49:26 +05:30
hwdef 44d26bb206 update license
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-10-25 10:20:30 +08:00
Morgan Tocker 28ecc0b561 Cleanup some left over code from previous changes
Stabalizes the testsuite on "MySQL56" == MySQL 5.7 in modern usage.

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-10-21 16:17:53 -06:00
Sugu Sougoumarane a715872079
Merge pull request #5297 from tanjunchen/update-lisence-header-java-directory
update the license header in java/ tools/ travis/ tests.go files
2019-10-15 20:54:24 -07: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
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
Anthony Yeh f97a82bfe7 Use Go modules to run goyacc.
Since all Go tools have been removed from bootstrap.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
2019-09-12 21:29:15 +00:00
Morgan Tocker fb4eec3e3d Add go mod download to Docker base
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-09-04 09:31:43 -06:00
Morgan Tocker 4d8a6a90c9 Change to use tools/tools.go for go get dependencies
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-30 10:44:56 -06:00
Rafael Chacon 7c36faa885 Adds a test to check regressions in parser
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2019-01-15 22:05:02 -08:00
Scott Lanning 60ed1bf8e9 added comment
suggested by Simon Mudd

Signed-off-by: Scott Lanning <scott.lanning@booking.com>
2018-12-13 13:05:59 +01:00
Scott Lanning 0f9cc1e690 fall back to environment variables when building without git
In our RPM build process, for whatever reason
it builds packages from a .git-less source.
This leads to the buildGit* variables not being set
and the corresponding BuildGit* in /debug/vars being empty.
We can export BUILD_GIT_* environment variables
during the build, though; this would fall back to those
in case the git commands come up empty.

Signed-off-by: Scott Lanning <scott.lanning@booking.com>
2018-12-13 13:05:59 +01:00
Sugu Sougoumarane 6d4511dfa8 build: update for latest goyacc
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2018-07-26 11:28:11 -07: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
Michael Berlin 12b1cae8c0 dev.env: Fix that $GOPATH always had a trailing ":" if the Vitess directory is the only element in there.
This was a regression which was introduced by https://github.com/vitessio/vitess/pull/3722.

Before this fix, the "go" binary always failed to run with the following error:

> go: GOPATH entry is relative; must be absolute path: "".
> For more details see: 'go help gopath'

Signed-off-by: Michael Berlin <mberlin@google.com>
2018-04-07 23:16:50 -07: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
Sugu Sougoumarane b19b692281 Merge pull request #3274 from tinyspeck/expose-build-number-in-stats
Export BUILD_NUMBER in stats.
2017-10-26 10:53:12 -07:00
Michael Berlin 0c3570da8a tools/check_make_parser.sh: Address minor review comments.
- Renamed test to match it with the shell script.
- Add newline before the final message.
- Use proper spelling for "Travis".
2017-10-12 18:02:37 -07:00
Michael Demmer a4ece22ddb cleanup and renaming as per PR feedback 2017-10-12 06:57:37 -07:00
Michael Demmer c878e9b949 clean up test_parser_generator.sh as per shellcheck PR feedback 2017-10-12 06:53:57 -07:00
Michael Demmer 05c1de8006 add a test to validate sql.go matches goyacc output
Add a test script that regenerates the contents of sql.go into a temp
file and then compares to the current contents in order to make sure
that the version checked in matches the output of the expected
toolchain.
2017-10-12 06:53:57 -07:00
Ameet Kotian 695fd29ff8 Export BUILD_NUMBER in stats.
This is useful for exposing the build information (example:jenkins build number) in the stats
2017-10-10 09:27:14 -07:00
Michael Berlin fd96276a01 misc: Allow to override the location for pylint via gpylint.
It's installed in a different place on my Mac.
2017-09-23 11:07:10 -07:00
Michael Berlin 770fea2ece buildinfo: Include Git branch in --version output.
This makes it easier to find out where a binary may come from.

Before:

$ vtworker --version
Version: 34c5b80b4 built on Wed Jun 14 22:38:45 PDT 2017 by mberlin@hostname using go1.8 linux/amd64

After:

$ vtworker --version
Version: 30d07ef9a (Git branch 'version_output_fixes') built on Wed Jun 14 22:44:13 PDT 2017 by mberlin@hostname using go1.8 linux/amd64
2017-06-14 22:45:24 -07:00
Michael Berlin 30d07ef9a0 tools/build_version_flags.sh: Use shorter Git hashes.
This will make the --version more readable.

before:

$ vtworker --version
Version: 512ba51169 built on Wed Jun 14 22:30:38 PDT 2017 by mberlin@hostname using go1.8 linux/amd64

after:

$ vtworker --version
Version: 34c5b80b4 built on Wed Jun 14 22:38:45 PDT 2017 by mberlin@hostname using go1.8 linux/amd64
2017-06-14 22:39:33 -07:00
Michael Berlin 34c5b80b4e tools/build_version_flags.sh: Drop support for Go < 1.5.
Our code base requires Go 1.8 at this point.
2017-06-14 22:37:46 -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
thompsonja 73381fba35 Add font-awesome directly to angular2 project (#2383)
BUG=33706658
2016-12-16 20:01:37 -08:00
Michael Berlin 8b3644c6d3 tools: bootstrap_web.sh: Fix "/usr/bin/env: node: No such file or directory" error.
After node is freshly installed, it is not part of PATH. By sourcing
dev.env, we fix this.

I've also changed the file of the temporary, downloaded file to include ".tar".
2016-12-09 18:23:53 -08:00
thompsonja 330824a264 Copy external dependencies for vtctld, fix webdriver test (#2345)
* Update vtctld web app to use local files for css and plotly js and fix webdriver test.
2016-12-06 16:38:13 -08:00
Alain Jobart 547e38462a Adding right favicon to web app. 2016-12-06 07:11:24 -08:00
thompsonja 30b6d1a737 Angular2 webdriver test updates (#2038)
Angular2 webdriver test updates
2016-09-13 17:17:22 -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 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
Michael Berlin 0c0e067c35 tools: Add a comment why we test only go/vt/ and not all packages. 2016-08-12 01:29:50 -07:00
Michael Berlin 10d5071d41 tools: Let unit_test_race.sh fail if go test -race found no data race, but failed.
Without this we didn't notice that the race test was always failing on Travis and exited early.
2016-08-12 01:29:50 -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
Michael Berlin 22d46b73db tools: Go race executor: Remove workaround for Go binaries <1.5.
We require at least Go 1.5 and do not need this workaround anymore.
2016-08-04 19:42:08 -07:00
Alain Jobart 1477c2a1b9 Trying to simplify setup. 2016-07-14 13:03:24 -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
Anthony Yeh b3a892ae9d proto-gen-php: Update link to PHP proto compiler. 2016-03-30 13:17:46 -07:00
Anthony Yeh a4f2fa8ffc php: Strip date from generated protobuf files.
To make diffs cleaner when regenerating.
2016-03-07 17:33: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
Anthony Yeh 5e471f85da php: Generate protos that work with Autoloading Standard (PSR-4). 2016-01-21 17:58:37 -08:00
Michael Berlin a597e8b8c4 tools/unit_test_race.sh: Simplify if expression. 2015-11-22 19:45:30 -08:00
Michael Berlin 941ce6279e Fix make unit_test_race such that it fails in case of errors.
Before this, the command always succeeded, even if races were found.

I'm grepping over the output of go test -race to check if there is race because there is no other way to distinguish between a found race and a flaky test.
2015-11-22 17:35:22 -08:00
Anthony Yeh 6f5c906761 tools: Create separate pylint script.
This lets you run pylint manually, with the same flags that would be
used by the pre-commit hook.
2015-11-10 11:41:30 -08:00
Anthony Yeh 956f1c7656 php: Regenerate protos. 2015-10-27 13:51:25 -07:00
Anthony Yeh 71d05bc6a8 php/proto: Rename identifiers that are PHP keywords. 2015-10-07 13:17:32 -07:00
Anthony Yeh 65d6dbb082 php: Generate gRPC service stubs from protobuf.
I followed the instructions here:

http://www.grpc.io/docs/installation/php.html

Then used the protoc-gen-php built in that process to generate stubs for
our protos.
2015-09-25 16:31:27 -07:00
Anthony Yeh 58022fd9d4 php: Proof-of-concept protobuf generation.
There is no proto3 compiler for PHP yet, but the wire format of proto3
is backward-compatible with proto2. To avoid maintaining two copies of
our proto files, we use a translator to make the simple syntax changes
necessary to work in PHP's proto2 compiler.

Service stubs are not generated, since I haven't plugged in gRPC yet.
2015-09-25 12:02:13 -07:00
Michael Berlin 168588e279 Detect flaky unit tests based on their suffix _flaky_test.go.
Renamed all flaky unit tests.

Removed previous blacklist file because it's no longer necessary.

Moved custom unit test runner from travis/ to tools/.
2015-08-30 22:28:14 -07:00
Anthony Yeh b7b0d70be8 test.go: check in silly remote stats server. 2015-08-23 22:12:22 -07:00
Michael Berlin 8cbe2a01c7 bootstrap.sh: Restore Go 1.3 compability. 2015-08-06 14:51:46 -07:00
Anthony Yeh c66c0b81ed go1.5: Use new syntax for ldflags -X variables. 2015-07-31 13:40:44 -07:00