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

32 Коммитов

Автор SHA1 Сообщение Дата
Michael Berlin c65d6f2c0a Merge pull request #914 from michael-berlin/travis_avoid_cache_update_after_java_test
Travis: Avoid lengthy cache update after the Java test did run.
2015-07-25 00:31:11 -07:00
Michael Berlin eab9fad585 Merge pull request #921 from michael-berlin/travis_retry_unit_tests
Travis: Enable retries for unit tests as well.
2015-07-24 16:23:31 -07:00
Michael Berlin 809321712f Travis: Remove manual installation of python pip package "mysql-python".
The apt package python-mysqldb is available now and we can use that
instead.
2015-07-24 10:54:34 -07:00
Michael Berlin fcf46fc8f1 Travis: Enable retries for unit tests as well.
At this point, they are too flaky and it hinders productivity too much to bother with that.
2015-07-24 10:50:49 -07:00
Michael Berlin 03d35649e2 Travis: Avoid lengthy cache update after the Java test did run. 2015-07-23 15:49:29 -07:00
Michael Berlin 694b624e20 Travis: Re-enable retry for integration tests.
Unit tests shouldn't be retried because they shouldn't be flaky.
2015-07-23 13:49:30 -07:00
Michael Berlin 8a4d29b5f9 Travis: Shuffle tests around to better even out the test durations.
Moved tests out of the "ci_skip_integration_test" target because they don't seem to be so flaky.

Included "ci_skip_integration_test" target in Travis because the tests in there don't seem to be so flaky and we want maximum coverage.
2015-07-23 00:32:03 -07:00
Michael Berlin c9de1810d3 Travis: Add functionality to specify multiple make targets per test.
This allows us to better binpack the different tests across the 5 available Travis test slots.
2015-07-23 00:29:23 -07:00
Michael Berlin fafa040dea Travis: Enable caching e.g. for compiled files in dist/.
This allows to skip the compilation of any dependencies in bootstrap.sh.

Using the cache adds minimal extra time:
- ~10 secs to retrieve and extract the ~100 MB tarball cache
- ~1.5 secs to check if the cache should be updated and no updates are necessary

In case of a corrupted cache, the cache must be deleted through the Travis CI webinterface on the settings page.

Enabling the cache required small fixes to bootstrap.sh:
- we must check for specific files and not just the existance of a directory in dist/ because the cache always creates the directories - even if they were not cached.
- py-mock must delete any existing files because Travis CI creates ".build_finished" as directory when it's not already cached. Once it's cached, it's created as file from the cache.
2015-07-23 00:25:51 -07:00
Michael Berlin 58caa753c8 Travis: In case of errors, output content of log files. 2015-07-23 00:18:17 -07:00
Michael Berlin b738e2ad92 Travis: Log GOMAXPROCS.
It should default to 2 which is the number of cores we're allowed to use. (Keep in mind that /proc/cpuinfo will show that 32 cores are available.) Therefore, I assume that GOMAXPROCS is already explicilty set to 2 by the Travis CI team.
2015-07-23 00:15:11 -07:00
Michael Berlin 876ce6fe21 Travis: build and test 4 Go packages simultaneously with -p flag.
Between 1, 2 and 4, 4 resulted in the shortest total duration. 4 was also better than 2 which is the capped number of availble cores in a Travis CI container.

I suspect that the default is 32 (the number of cores) and by setting it explicitly we effectively reduce the value - but reduce the stress on the system and therefore everything goes faster.
2015-07-23 00:13:29 -07:00
Michael Berlin 172b7944c2 Travis: Enable parallel make to speed up gRPC compilation. 2015-07-23 00:09:57 -07:00
Michael Berlin 227c6c83aa Travis: Install python-mysql via pip because it's not whitelisted for apt. 2015-07-23 00:09:26 -07:00
Michael Berlin 4d0a05134c Travis: Work-around MariaDB installation by extracting *.deb packages.
With this change, the following dependencies are no longer installed as well:
- New Relic monitoring (is no longer necessary)
- Java dependencies (no more necessary since we killed most of the old Java code)
2015-07-23 00:07:47 -07:00
Michael Berlin 256c80ece9 Travis: Switch to container based infrastructure. 2015-07-23 00:03:51 -07:00
Michael Berlin f01e98251a Travis: Remove output of free memory and processes. 2015-07-22 23:57:29 -07:00
Michael Berlin e8d69c8c2d Use "travis_retry" to install gRPC.
Retrying the gRPC installation is necessary because it downloads several
external dependencies and the download of these may fail.
2015-06-07 20:51:13 -07:00
Michael Berlin 5ef7ce727e Re-added travis_retry after enabling fail-fast on a bad Travis host. 2015-06-05 17:12:09 -07:00
Michael Berlin 86912d2f16 Fail fast Travis build if we are on a bad Travis host. 2015-06-03 14:40:56 -07:00
Michael Berlin 10b0cc0b96 Debug Travis CI memory usage and find out why the Go compiler gets OOM-killed.
Disabled "travis_retry" temporarily because retrying currently does not help.
2015-06-02 21:11:04 -07:00
Alain Jobart f49f9a037f Speeding up travis and docker, no need to get protoc as it's not used
for building. Also properly parsing the command line flag
in bootstrap.sh.

Should reduce te nuber of times we build proto from 4x to 1x, and
grpc from 2x to 1x. Doh.
2015-03-13 12:09:08 -07:00
Alain Jobart d637391a74 travis install needs to run as root. 2015-03-12 09:45:52 -07:00
Alain Jobart 9e3caff5cf Fixing the scripts to build grpc and protobuf better.
Docker and travis: build and install as root in /
2015-03-12 09:06:23 -07:00
Anand Henry 2e91dc1035 Travis: build before running test target 2015-02-03 18:06:34 -08:00
Anand Henry 1f70deef63 Travis: Start slow targets early
Should bring down time taken for the whole build
2015-01-29 13:06:41 -08:00
Anand Henry e0ba322555 Travis: Upgrade to Go1.4 2015-01-20 12:07:07 -08:00
Anand Henry 557e1aef82 Travis: Build all branches 2014-12-15 23:55:32 -08:00
Anand Henry cb6f470e8d Revert "Travis: Bump Go to v1.4"
This reverts commit ac2028fa98.
2014-12-15 23:32:37 -08:00
Anand Henry ac2028fa98 Travis: Bump Go to v1.4 2014-12-15 19:41:53 -08:00
Anand Henry 6b6ab298ef Travis: Remove huge_integration_test target 2014-12-12 18:37:18 -08:00
Anand Henry cdfa764d7f Travis and Coveralls integration
Add travis configuration and dependencies script
Split integration test make targets to allow parallel execution in Travis
Add go packages required for coverage upload to Coveralls
Add coveralls and travis badges to README

Travis: Retry make targets to address flaky targets
2014-12-12 17:44:12 -08:00