Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Travis coverage #78

Merged
merged 8 commits into from
Mar 21, 2017

Conversation

nbigaouette-eai
Copy link
Contributor

@nbigaouette-eai nbigaouette-eai commented Mar 20, 2017

This PR adds will set Travis to follow Rust release train (stable/beta/nightly) on both Linux and OSX to increase the test platform coverage.

This should open the door to the addition of more tests, for example valgrind or sanitizers as described in #69.

Notes:

  • Compilation of TensorFlow (TF_RUST_BUILD_FROM_SRC=true) is explicitly disabled as I have not been able to properly do so; bazel fails with Server finished RPC without an explicit exit code (see for example here, more specifically job 14.1);
  • Environment variables are moved to env.global instead of explicitly exporting them;
  • Nightly rust are allowed to fail since the compiler itself can have regressions;
  • The option fast_finish will let builds decide on success or failure even if those with allow_failures are not finished.
  • numpy is installed using pip instead of apt as it's the recommended way of doing so.

@adamcrume
Copy link
Contributor

Yeah, you won't be able to build from source on Travis. One of the driving reasons for getting pre-compiled binaries into the build was to make Travis useful again. It simply takes too long to build from source, and Travis times out. (Or if you run with too many parallel compilations, it'll fail with Server finished RPC without an explicit exit code as you saw. More than one task is too many for Travis, because the TensorFlow build is amazingly memory hungry.)

- source travis-ci/install.sh
# Install dependencies only if we build tensorflow from source.
- if [[ "$TF_RUST_BUILD_FROM_SRC" == "true" ]]; then source travis-ci/install.sh; fi
- if [[ "$TF_RUST_BUILD_FROM_SRC" == "true" ]]; then pip install --user numpy; fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call; we were wasting build time installing things we didn't need.

@adamcrume adamcrume merged commit 19bfb29 into tensorflow:master Mar 21, 2017
@nbigaouette-eai nbigaouette-eai deleted the increase-travis-coverage branch March 21, 2017 02:31
@adamcrume
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants