You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2020/01/08 19:50:29 UTC

[couchdb] branch debug-javascript-test-failures created (now 9cfc586)

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a change to branch debug-javascript-test-failures
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 9cfc586  Debug design_docs.js failure

This branch includes the following new commits:

     new 4f30678  Log the exit code of couchjs
     new 9cfc586  Debug design_docs.js failure

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 02/02: Debug design_docs.js failure

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch debug-javascript-test-failures
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 9cfc5868a3d9a9666d469e4da0f7ed0f3be2145d
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Wed Jan 8 13:49:39 2020 -0600

    Debug design_docs.js failure
    
    This test has been failing randomly on Jenkins across multiple PRs. This
    adds more context to the error that causes the test to fail.
---
 test/javascript/tests/design_docs.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/javascript/tests/design_docs.js b/test/javascript/tests/design_docs.js
index e28cb2e..55e592a 100644
--- a/test/javascript/tests/design_docs.js
+++ b/test/javascript/tests/design_docs.js
@@ -427,10 +427,12 @@ couchTests.design_docs = function(debug) {
   ddoc._deleted = true;
   TEquals(true, db.save(ddoc).ok);
 
+  var resp = db.save({_id: "doc1", value: 4})
   try {
-    TEquals(true, db.save({_id: "doc1", value: 4}).ok);
+    TEquals(true, resp.ok);
   } catch (x) {
-    T(false, "doc insertion should have succeeded");
+    resp = JSON.stringify(resp)
+    T(false, "doc insertion should have succeeded: " + resp);
   }
 
   doc = db.open("doc1");


[couchdb] 01/02: Log the exit code of couchjs

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch debug-javascript-test-failures
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 4f306782f948c4e7ac5f1b3486bfb952b51bdd78
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Wed Jan 8 13:48:46 2020 -0600

    Log the exit code of couchjs
    
    Recently we've been seeing the `couchjs` test runner exiting without
    displaying a traceback of an error. This logs the exit code of the OS
    process to see if that gives any insight into why its exiting.
---
 test/javascript/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/javascript/run b/test/javascript/run
index ac49e3a..a465a7b 100755
--- a/test/javascript/run
+++ b/test/javascript/run
@@ -58,7 +58,7 @@ def mkformatter(tests):
         elif rval == 3:
             return green + "ported to elixir" + clear
         else:
-            return red + "fail" + clear
+            return red + ("fail: %d" % rval) + clear
 
     def _fmt(test):
         if isinstance(test, str):