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 fdc8130  Cleanup code to make issue with rates more obvious
fdc8130 is described below

commit fdc8130cd692d73da10025ba813119a0009ff783
Author: Dmitriy Pavlov <[email protected]>
AuthorDate: Tue Sep 11 12:53:00 2018 +0300

    Cleanup code to make issue with rates more obvious
---
 .../apache/ignite/ci/web/model/current/TestFailure.java  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

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 df07282..38b9399 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
@@ -194,29 +194,29 @@ import static 
org.apache.ignite.ci.web.model.current.SuiteCurrentStatus.branchFo
 
         }
 
-        RunStat latestRunsSrc = null;
+        RunStat latestRunsSrcInBranch = null;
 
         if (!curBranchNormalized.equals(failRateNormalizedBranch)) {
             TestInBranch testInBranchS = new TestInBranch(name, 
curBranchNormalized);
 
-            latestRunsSrc = runStatSupplier.apply(testInBranchS);
+            latestRunsSrcInBranch = runStatSupplier.apply(testInBranchS);
         } else
-            latestRunsSrc = stat;
+            latestRunsSrcInBranch = stat;
 
-        latestRuns = latestRunsSrc != null ? 
latestRunsSrc.getLatestRunResults() : null;
+        latestRuns = latestRunsSrcInBranch != null ? 
latestRunsSrcInBranch.getLatestRunResults() : null;
 
-        if (latestRunsSrc != null) {
-            RunStat.TestId testId = 
latestRunsSrc.detectTemplate(EventTemplates.newFailure);
+        if (latestRunsSrcInBranch != null) {
+            RunStat.TestId testId = 
latestRunsSrcInBranch.detectTemplate(EventTemplates.newFailure);
 
             if (testId != null)
                 problemRef = new IssueRef("New Failure");
 
-            RunStat.TestId recentContributedTestId = 
latestRunsSrc.detectTemplate(EventTemplates.newContributedTestFailure);
+            RunStat.TestId recentContributedTestId = 
latestRunsSrcInBranch.detectTemplate(EventTemplates.newContributedTestFailure);
 
             if (recentContributedTestId != null)
                 problemRef = new IssueRef("Recently contributed test failure");
 
-            flakyComments = latestRunsSrc.getFlakyComments();
+            flakyComments = latestRunsSrcInBranch.getFlakyComments();
         }
     }
 

Reply via email to