ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-9770) Re-run possible blockers from pr.html
Date Mon, 08 Oct 2018 15:07:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-9770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16641982#comment-16641982
] 

ASF GitHub Bot commented on IGNITE-9770:
----------------------------------------

SomeFire commented on a change in pull request #27: IGNITE-9770 Add 'Re-run possible blockers'
button
URL: https://github.com/apache/ignite-teamcity-bot/pull/27#discussion_r223329630
 
 

 ##########
 File path: ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/observer/BuildsInfo.java
 ##########
 @@ -0,0 +1,100 @@
+package org.apache.ignite.ci.observer;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+import org.apache.ignite.ci.IAnalyticsEnabledTeamcity;
+import org.apache.ignite.ci.tcmodel.result.Build;
+import org.apache.ignite.ci.user.ICredentialsProv;
+
+public class BuildsInfo{
+    /** Finished. */
+    public static final String FINISHED = "finished";
+
+    /** Server id. */
+    public final String srvId;
+
+    /** Build type id. */
+    public final String buildTypeId;
+
+    /** Branch name. */
+    public final String branchName;
+
+    /** Prov. */
+    public final ICredentialsProv prov;
+
+    /** JIRA ticket full name. */
+    public final String ticket;
+
+    /** Finished builds. */
+    private final Map<Build, Boolean> finishedBuilds = new HashMap<>();
+
+    /**
+     * @param srvId Server id.
+     * @param prov Prov.
+     * @param ticket Ticket.
+     * @param builds Builds.
+     */
+    public BuildsInfo(String srvId, ICredentialsProv prov, String ticket, Build[] builds)
{
+        this.srvId = srvId;
+        this.prov = prov;
+        this.ticket = ticket;
+        this.buildTypeId = builds.length > 1 ? "IgniteTests24Java8_RunAll" : builds[0].buildTypeId;
+        this.branchName = builds[0].branchName;
+
+        for (Build build : builds)
+            finishedBuilds.put(build, false);
+    }
+
+    /**
+     * @param teamcity Teamcity.
+     */
+    public boolean isFinished(IAnalyticsEnabledTeamcity teamcity) {
+        for (Map.Entry<Build, Boolean> entry : finishedBuilds.entrySet()){
+            if (!entry.getValue()){
 
 Review comment:
   Need space before opening brace.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Re-run possible blockers from pr.html
> -------------------------------------
>
>                 Key: IGNITE-9770
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9770
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Nikolai Kulagin
>            Assignee: Nikolai Kulagin
>            Priority: Minor
>
> Show button for re-run possible blockers. Also show merged button with re-run possible
blockers&Comment JIRA, so the user re-run the possible tests and does not wait for them
to complete,but learn about the completed tests from the comment to GitHib.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message