You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2019/02/18 12:42:08 UTC

[couchdb] branch jenkins-fix-elixir updated: skip certain tests on Jenkins

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

garren pushed a commit to branch jenkins-fix-elixir
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/jenkins-fix-elixir by this push:
     new 444dcff  skip certain tests on Jenkins
444dcff is described below

commit 444dcffaf174a31fb571d0ede51aaf5547175c9e
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Mon Feb 18 14:41:45 2019 +0200

    skip certain tests on Jenkins
---
 test/elixir/test/compact_test.exs               |  1 +
 test/elixir/test/lots_of_docs_test.exs          |  1 +
 test/elixir/test/partition_size_test.exs        |  1 +
 test/elixir/test/partition_view_update_test.exs |  1 +
 test/elixir/test/test_helper.exs                | 10 +++++++++-
 5 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/test/elixir/test/compact_test.exs b/test/elixir/test/compact_test.exs
index e60397f..4b0a5a0 100644
--- a/test/elixir/test/compact_test.exs
+++ b/test/elixir/test/compact_test.exs
@@ -12,6 +12,7 @@ defmodule CompactTest do
   @att_name "foo.txt"
   @att_plaintext "This is plain text"
 
+  @tag :skip_on_jenkins
   @tag :with_db
   test "compaction reduces size of deleted docs", context do
     db = context[:db_name]
diff --git a/test/elixir/test/lots_of_docs_test.exs b/test/elixir/test/lots_of_docs_test.exs
index 7607355..4e25d43 100644
--- a/test/elixir/test/lots_of_docs_test.exs
+++ b/test/elixir/test/lots_of_docs_test.exs
@@ -53,6 +53,7 @@ defmodule LotsOfDocsTest do
     end)
   end
 
+  @tag :skip_on_jenkins
   @tag :with_db
   test "lots of docs with a regular view", context do
     db_name = context[:db_name]
diff --git a/test/elixir/test/partition_size_test.exs b/test/elixir/test/partition_size_test.exs
index c4d235b..68759ad 100644
--- a/test/elixir/test/partition_size_test.exs
+++ b/test/elixir/test/partition_size_test.exs
@@ -182,6 +182,7 @@ defmodule PartitionSizeTest do
     assert post_infos == pre_infos
   end
 
+  @tag :skip_on_jenkins
   test "get all partition sizes", context do
     db_name = context[:db_name]
     mk_docs(db_name)
diff --git a/test/elixir/test/partition_view_update_test.exs b/test/elixir/test/partition_view_update_test.exs
index 516943b..63c6268 100644
--- a/test/elixir/test/partition_view_update_test.exs
+++ b/test/elixir/test/partition_view_update_test.exs
@@ -29,6 +29,7 @@ defmodule PartitionViewUpdateTest do
     check_key.(2, 0)
   end
 
+  @tag :skip_on_jenkins
   @tag :with_partitioned_db
   test "query with update=false works", context do
     db_name = context[:db_name]
diff --git a/test/elixir/test/test_helper.exs b/test/elixir/test/test_helper.exs
index b2c3210..3e40eee 100644
--- a/test/elixir/test/test_helper.exs
+++ b/test/elixir/test/test_helper.exs
@@ -1,5 +1,13 @@
+# If build number detected assum we running on Jenkins
+# and skip certain tests that fail on jenkins.
+exclude =
+  case System.get_env("BUILD_NUMBER") !== nil do
+    true -> [pending: true, skip_on_jenkins: true]
+    false -> [pending: true]
+  end
+
 ExUnit.configure(
-  exclude: [pending: true],
+  exclude: exclude,
   formatters: [JUnitFormatter, ExUnit.CLIFormatter]
 )