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

43 Коммитов

Автор SHA1 Сообщение Дата
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