[ARVADOS-DEV] updated: 3de7432a187e32c3ca0dd3fb94b3d52c7563dc04

git at public.curoverse.com git at public.curoverse.com
Tue Sep 16 21:43:15 EDT 2014


Summary of changes:
 jenkins/run-tests.sh | 4 ++++
 1 file changed, 4 insertions(+)

       via  3de7432a187e32c3ca0dd3fb94b3d52c7563dc04 (commit)
      from  565c31196f3ccd4346c8a1ac1e19b1deda22eea6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 3de7432a187e32c3ca0dd3fb94b3d52c7563dc04
Author: Ward Vandewege <ward at curoverse.com>
Date:   Tue Sep 16 21:42:47 2014 -0400

    Add some robustness in the postgresql department.
    
    no issue #

diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh
index 79a7c62..af2b3e2 100755
--- a/jenkins/run-tests.sh
+++ b/jenkins/run-tests.sh
@@ -268,6 +268,10 @@ install_apiserver() {
         && git add tmp \
         && git commit -m 'initial commit'
 
+    # Clear out any lingering postgresql connections to arvados_test, so that we can drop it
+    # This assumes the current user is a postgresql superuser
+    psql arvados_test -c "SELECT pg_terminate_backend (pg_stat_activity.procpid::int) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'arvados_test';" 2>/dev/null
+
     cd "$WORKSPACE/services/api" \
         && bundle exec rake db:drop \
         && bundle exec rake db:create \

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list