You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/08/03 18:16:55 UTC

[ignite-teamcity-bot] branch newtest-detection-fix updated: Newly contributed test detection fixed: test presence in suite is checked, flakyness detection changed

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

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


The following commit(s) were added to refs/heads/newtest-detection-fix by this push:
     new 45a0c0a  Newly contributed test detection fixed: test presence in suite is checked, flakyness detection changed
45a0c0a is described below

commit 45a0c0ad7b28221400b098a949f57e875c3c2e58
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Sat Aug 3 21:16:50 2019 +0300

    Newly contributed test detection fixed: test presence in suite is checked, flakyness detection changed
---
 .../ignite/ci/teamcity/ignited/runhist/RunHistCompacted.java     | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tcbot-teamcity-ignited/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistCompacted.java b/tcbot-teamcity-ignited/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistCompacted.java
index d66ed1f..69c3216 100644
--- a/tcbot-teamcity-ignited/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistCompacted.java
+++ b/tcbot-teamcity-ignited/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistCompacted.java
@@ -79,9 +79,14 @@ public class RunHistCompacted implements  IRunHistory {
         List<Invocation> latestRuns = data.invocations().collect(Collectors.toList());
 
         for (Invocation cur : latestRuns) {
-            if (prev != null && cur != null) {
+            if (cur == null)
+                continue;
+            if (cur.status() == InvocationData.MISSING)
+                continue;
+
+            if (prev != null) {
                 if (prev.status() != cur.status()
-                    && cur.changesState() == ChangesState.NONE
+                        && cur.changesState() == ChangesState.NONE
                     && prev.changesState() != ChangesState.UNKNOWN)
                     statusChange++;
             }