Repository: aurora
Updated Branches:
  refs/heads/master 820e1540b -> cc7f5a121


Fix `./pants test src/test/python::` to work out of the box.

The Aurora python tests cannot currently all be run together; so the ci
script passes --no-fast and devs need to remember to do this too.
Improve the dev experience by defaulting this option.

 build-support/jenkins/build.sh | 2 +-
 pants.ini                      | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

Testing Done:
Ran into this working https://issues.apache.org/jira/browse/AURORA-547.
After the fix, locally ran `./pants test src/test/python:: -- -v` green.
Previously this would lead to test failures and CPU starvation.

Bugs closed: AURORA-547

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


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

Branch: refs/heads/master
Commit: cc7f5a121e11b86d61bc46d51d49d1d4d0190b75
Parents: 820e154
Author: John Sirois <[email protected]>
Authored: Fri Nov 13 07:46:27 2015 -0800
Committer: Bill Farner <[email protected]>
Committed: Fri Nov 13 07:46:27 2015 -0800

----------------------------------------------------------------------
 build-support/jenkins/build.sh | 2 +-
 pants.ini                      | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/cc7f5a12/build-support/jenkins/build.sh
----------------------------------------------------------------------
diff --git a/build-support/jenkins/build.sh b/build-support/jenkins/build.sh
index 7277a64..41a3921 100755
--- a/build-support/jenkins/build.sh
+++ b/build-support/jenkins/build.sh
@@ -25,7 +25,7 @@ date
 ./build-support/python/checkstyle-check src
 
 # Run all Python tests
-./pants test.pytest --no-fast --junit-xml-dir="$PWD/dist/test-results" 
src/test/python:: -- -v
+./pants test.pytest --junit-xml-dir="$PWD/dist/test-results" src/test/python:: 
-- -v
 
 # Ensure we can build python sdists (AURORA-1174)
 ./build-support/release/make-python-sdists

http://git-wip-us.apache.org/repos/asf/aurora/blob/cc7f5a12/pants.ini
----------------------------------------------------------------------
diff --git a/pants.ini b/pants.ini
index 22f6c59..b12248c 100644
--- a/pants.ini
+++ b/pants.ini
@@ -22,3 +22,10 @@ version: 0.9.1
 
 [python-setup]
 interpreter_requirement: CPython>=2.7,<3
+
+
+[test.pytest]
+# As of Nov. 2015, the Aurora python tests cannot all be run in the same 
chroot successfully; this
+# isolates one pytest session in one chroot per test target. More info here:
+#   http://pantsbuild.github.io/options_reference.html#group_testpytest
+fast: False

Reply via email to