couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] 01/01: Enable OS process IO logging + upload for Travis and Jenkins tests
Date Wed, 14 Jun 2017 21:28:24 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch enable-io-logging-and-log-upload-for-couchjs-failures
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit f8d44b8e6c366e5f7ccd135e6846de5669384caf
Author: Nick Vatamaniuc <vatamane@apache.org>
AuthorDate: Wed Jun 14 16:01:09 2017 -0400

    Enable OS process IO logging + upload for Travis and Jenkins tests
    
    Issue #551
---
 .travis.yml                   |  3 +++
 Jenkinsfile                   | 31 +++++++++++++++++++++++++++++++
 build-aux/logfile-uploader.py |  3 +++
 3 files changed, 37 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 156856c..b1f54a7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,6 +36,7 @@ cache:
 env:
   global:
     - secure: "UdA/gKIlyuXaW+hUgRx40t1TYjLCGxMqHvM5Uw7UbUH2dqEkgJiLfhZGchS1JVzl8M01VKZUUzS7v2nvRLiHZN1kvaw5kfq31VRoafUah8jfmvqNWZVdLovHl3aw5UX/HRt0RkbWbhdbdknTfh6+YinSZ+Nb54jCErMg9nabXtM="
+    - COUCHDB_IO_LOG_DIR=/tmp/couchjslogs
 
 # Enable this block if you want to build docs & fauxton too
 #node_js:
@@ -45,6 +46,8 @@ env:
 
 # Then comment this section out
 before_script:
+  - rm -rf /tmp/couchjslogs
+  - mkdir -p /tmp/couchjslogs
   - ./configure -c --disable-docs --disable-fauxton
 
 script:
diff --git a/Jenkinsfile b/Jenkinsfile
index 0ef6dde..477651d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -19,6 +19,7 @@ pipeline {
   environment {
     COUCHAUTH = credentials('couchdb_vm2_couchdb')
     recipient = 'notifications@couchdb.apache.org'
+    COUCHDB_IO_LOG_DIR = '/tmp/couchjslogs'
   }
 
   stages {
@@ -65,6 +66,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/centos-6-erlang-18.3', args: '-e LD_LIBRARY_PATH=/usr/local/bin
--user 0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -86,6 +90,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/centos-7-erlang-default', args: '-e
LD_LIBRARY_PATH=/usr/local/bin --user 0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -107,6 +114,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/centos-7-erlang-18.3', args: '-e LD_LIBRARY_PATH=/usr/local/bin
--user 0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -128,6 +138,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/ubuntu-12.04-erlang-18.3', args: '--user
0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -149,6 +162,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/ubuntu-14.04-erlang-default', args:
'--user 0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -170,6 +186,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/ubuntu-14.04-erlang-18.3', args: '--user
0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -191,6 +210,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/ubuntu-16.04-erlang-default', args:
'--user 0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -212,6 +234,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/ubuntu-16.04-erlang-18.3', args: '--user
0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -233,6 +258,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/debian-8-erlang-default', args: '--user
0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
@@ -254,6 +282,9 @@ pipeline {
               withDockerContainer(image: 'couchdbdev/debian-8-erlang-18.3', args: '--user
0:0') {
                 sh '''
                   cwd=$(pwd)
+                  echo "OS Process IO Error Log Directory ${COUCHDB_IO_LOG_DIR}"
+                  rm -rf /tmp/couchjslogs
+                  mkdir -p /tmp/couchjslogs
                   builddir=$(mktemp -d)
                   cd $builddir
                   tar -xf $cwd/apache-couchdb-*.tar.gz
diff --git a/build-aux/logfile-uploader.py b/build-aux/logfile-uploader.py
index d58d9f0..742fc85 100755
--- a/build-aux/logfile-uploader.py
+++ b/build-aux/logfile-uploader.py
@@ -41,6 +41,9 @@ def collect_logfiles():
     # JS harness
     for log in glob.glob('dev/logs/node1.log'):
         tb.add(log)
+    # couchjs OS process IO logs
+    for log in glob.glob('/tmp/couchjslogs/*'):
+        tb.add(log)
     tb.close()
 
 def build_ci_doc():

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message