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

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new c002f57  IGNITE-9815: Muted tests shouldn't considered as blocker - 
Fixes #29.
c002f57 is described below

commit c002f575be25c7b7f238b6e6a5b714d30d8c2a7e
Author: Dmitrii Ryabov <somefire...@gmail.com>
AuthorDate: Wed Oct 10 13:33:14 2018 +0300

    IGNITE-9815: Muted tests shouldn't considered as blocker - Fixes #29.
    
    Signed-off-by: Dmitriy Pavlov <dpav...@apache.org>
---
 .../java/org/apache/ignite/ci/web/model/current/TestFailure.java    | 3 +++
 ignite-tc-helper-web/src/main/webapp/js/testfails-2.1.js            | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailure.java
 
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailure.java
index dcd18fb..7e49ec0 100644
--- 
a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailure.java
+++ 
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/current/TestFailure.java
@@ -241,6 +241,9 @@ import static 
org.apache.ignite.ci.web.model.current.SuiteCurrentStatus.branchFo
     public boolean isNewFailedTest() {
         FailureSummary recent = histBaseBranch.recent;
 
+        if (!Strings.isNullOrEmpty(webIssueUrl))
+            return false;
+
         boolean lowFailureRate = recent != null && recent.failureRate != null 
&&
             Float.valueOf(recent.failureRate.replace(',', '.')) < 4.;
 
diff --git a/ignite-tc-helper-web/src/main/webapp/js/testfails-2.1.js 
b/ignite-tc-helper-web/src/main/webapp/js/testfails-2.1.js
index b61189b..0cd70e9 100644
--- a/ignite-tc-helper-web/src/main/webapp/js/testfails-2.1.js
+++ b/ignite-tc-helper-web/src/main/webapp/js/testfails-2.1.js
@@ -627,8 +627,12 @@ function isNewFailedTest(testFail) {
     if(!isDefinedAndFilled(testFail.histBaseBranch))
         return true;
 
+    if (isDefinedAndFilled(testFail.webIssueUrl))
+        return false;
+
     var hist = testFail.histBaseBranch;
-    if(!isDefinedAndFilled(hist.recent))
+
+    if (!isDefinedAndFilled(hist.recent))
         return true;
 
     var flakyCommentsInBase =

Reply via email to