Bug 148188 - Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.
Summary: Make Dashboard.Branches be objects of the form {repository, branchName} and u...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 13:46 PDT by Jason Marcell
Modified: 2015-08-21 18:40 PDT (History)
8 users (show)

See Also:


Attachments
=Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects. (16.44 KB, patch)
2015-08-19 13:49 PDT, Jason Marcell
no flags Details | Formatted Diff | Diff
Patch (16.59 KB, patch)
2015-08-20 10:24 PDT, Jason Marcell
no flags Details | Formatted Diff | Diff
Patch (16.27 KB, patch)
2015-08-21 13:05 PDT, Jason Marcell
no flags Details | Formatted Diff | Diff
Patch (16.16 KB, patch)
2015-08-21 15:52 PDT, Jason Marcell
no flags Details | Formatted Diff | Diff
Patch (15.28 KB, patch)
2015-08-21 17:51 PDT, Jason Marcell
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Marcell 2015-08-19 13:46:44 PDT
Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.
Comment 1 Jason Marcell 2015-08-19 13:49:17 PDT
Created attachment 259400 [details]
=Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.
Comment 2 Jason Marcell 2015-08-19 17:30:27 PDT
Comment on attachment 259400 [details]
=Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.

View in context: https://bugs.webkit.org/attachment.cgi?id=259400&action=review

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:212
> +                key = repository.name;

This should be 'repositoryName'

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:215
>              this.revision[repository] = parseRevisionProperty(revisionProperty, key, fallbackKey);

This should be
this.revision[repositoryName] ...

I'll upload a new patch that addresses these two issues.
Comment 3 Jason Marcell 2015-08-20 10:24:13 PDT
Created attachment 259477 [details]
Patch
Comment 4 Alexey Proskuryakov 2015-08-21 11:11:09 PDT
Comment on attachment 259477 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=259477&action=review

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:172
> -            for (var i = 0; i < length; ++i)
> -                content.appendChild(lines[i]);
> +            for (var j = 0; j < length; ++j)
> +                content.appendChild(lines[j]);

Jason and myself landed this part in r188758, to quickly fix a regression caused by broken iteration.
Comment 5 Jason Marcell 2015-08-21 13:05:44 PDT
Created attachment 259647 [details]
Patch
Comment 6 Jason Marcell 2015-08-21 13:06:56 PDT
Uploaded a new patch since Alexey landed the change in r188758.
Comment 7 Jason Marcell 2015-08-21 15:52:58 PDT
Created attachment 259676 [details]
Patch
Comment 8 Daniel Bates 2015-08-21 17:19:59 PDT
Comment on attachment 259676 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=259676&action=review

> Tools/ChangeLog:12
> +        (BuildbotCombinedQueueView): Changed to work with new {repository, branchName} object.

Maybe it would be more descriptive to write:

Changed to work with new branch objects which represent a (repository, "branch name")-pair.

> Tools/ChangeLog:18
> +        (BuildbotQueueView.prototype._appendPendingRevisionCount): Changed to work with new {repository, branchName}
> +        object.

Ditto.

> Tools/ChangeLog:24
> +        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js: Added isSVN property
> +        to Dashboard.Repository object. Also removed Internal Dashboard.Repository object.

I'm unclear how these change relate to the purpose of this bug. Please make these change in a separate bug.

> Tools/ChangeLog:28
> +        (WebKitBuildbot.prototype.get defaultBranches): Changed to new {repository, branchName} format.

Maybe it would be more descriptive to write:

Changed to work with new branch objects which represent a (repository, "branch name")-pair.

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotCombinedQueueView.js:41
> +                indicesOfFirstQueueWithRepository[repositoryName] = {queueIndex: i, branchIndex: j};

Nit: There should be a space character after the '{' and before the '}';

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotCombinedQueueView.js:46
> +            message += " === combinedQueues[" + expected.queueIndex + "].branch[" + expected.branchIndex + "] === " + expectedBranch.name;

Nit: Remove the space character at the beginning of this line or there will be two space characters before the second === in the printed message.

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:40
> -        OpenSource: { name: "openSource", order: 0 },
> -        Internal: { name: "internal", order: 1 },
> +        OpenSource: { isSVN: true, name: "openSource", order: 0 },

I'm unclear how these change relate to the purpose of this bug. Please make these change in a separate bug.
Comment 9 Jason Marcell 2015-08-21 17:51:14 PDT
Created attachment 259691 [details]
Patch
Comment 10 WebKit Commit Bot 2015-08-21 18:39:59 PDT
Comment on attachment 259691 [details]
Patch

Clearing flags on attachment: 259691

Committed r188814: <http://trac.webkit.org/changeset/188814>
Comment 11 WebKit Commit Bot 2015-08-21 18:40:03 PDT
All reviewed patches have been landed.  Closing bug.