aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject incubator-aurora git commit: Use pip to pre-fetch python dependencies.
Date Thu, 11 Dec 2014 05:47:23 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master 2aac148f8 -> 5d8d3e1fd


Use pip to pre-fetch python dependencies.

Reviewed at https://reviews.apache.org/r/28915/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/5d8d3e1f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/5d8d3e1f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/5d8d3e1f

Branch: refs/heads/master
Commit: 5d8d3e1fded0e56922b02f1f8fe899399ff0e2a5
Parents: 2aac148
Author: Bill Farner <wfarner@apache.org>
Authored: Wed Dec 10 21:47:17 2014 -0800
Committer: Bill Farner <wfarner@apache.org>
Committed: Wed Dec 10 21:47:17 2014 -0800

----------------------------------------------------------------------
 build-support/jenkins/build.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/5d8d3e1f/build-support/jenkins/build.sh
----------------------------------------------------------------------
diff --git a/build-support/jenkins/build.sh b/build-support/jenkins/build.sh
index 40ef938..8de19cd 100755
--- a/build-support/jenkins/build.sh
+++ b/build-support/jenkins/build.sh
@@ -20,6 +20,13 @@ date
 # Run all Java tests
 ./gradlew -Pq clean build
 
+# Pre-fetch python dependencies. This is to avoid build flakiness introduced by
+# the resolver used in pants.
+export PIP_DEFAULT_TIMEOUT=60
+mkdir -p third_party
+# We omit mesos.native here since we don't actually build or use it in our unit tests.
+pip install -d third_party -r <(grep -v mesos.native 3rdparty/python/requirements.txt)
+
 # Run all Python tests
 # Setting the timeout value to 1 minute ensures package fetches from PyPI do not
 # fail on Apache Jenkins.


Mime
View raw message