Changeset 176361 in webkit


Ignore:
Timestamp:
Nov 19, 2014 3:58:03 PM (9 years ago)
Author:
dburkart@apple.com
Message:

Work around the fact that different masters may have different names for their codebases.
https://bugs.webkit.org/show_bug.cgi?id=138878

Reviewed by Mark Rowe.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:

(parseRevisionProperty): Changed.
Take a "fallback key" in addition to the primary key, so we can deal with inconsistencies in
opensource / internal codebase naming convention.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js

    r173381 r176361  
    9797}
    9898
    99 function parseRevisionProperty(property, key)
     99function parseRevisionProperty(property, key, fallbackKey)
    100100{
    101101    if (!property)
    102102        return null;
    103103    var value = property[1];
    104     return parseInt(isMultiCodebaseGotRevisionProperty(property) ? value[key] : value, 10);
     104    if (isMultiCodebaseGotRevisionProperty(property))
     105        value = (key in value) ? value[key] : value[fallbackKey];
     106    return parseInt(value);
    105107}
    106108
     
    243245        // ["got_revision",{"Internal":"1357","WebKitOpenSource":"2468"},"Source"]
    244246        // OR
    245         // ["got_revision","2468_1357","Source"]
    246         // OR
    247247        // ["got_revision","2468","Source"]
    248248        //
     
    253253        // a dictionary.
    254254
    255         var openSourceRevisionProperty = data.properties.findFirst(function(property) { return property[0] === "got_revision" || property[0] === "revision" || property[0] === "opensource_got_revision"; });
    256         this.openSourceRevision = parseRevisionProperty(openSourceRevisionProperty, "WebKit");
    257 
    258         var internalRevisionProperty = data.properties.findFirst(function(property) { return property[0] === "internal_got_revision" || isMultiCodebaseGotRevisionProperty(property); });
    259         this.internalRevision = parseRevisionProperty(internalRevisionProperty, "Internal");
     255        var openSourceRevisionProperty = data.properties.findFirst(function(property) { return property[0] === "got_revision"; });
     256        this.openSourceRevision = parseRevisionProperty(openSourceRevisionProperty, "WebKit", "opensource");
     257
     258        var internalRevisionProperty = data.properties.findFirst(function(property) { return isMultiCodebaseGotRevisionProperty(property); });
     259        this.internalRevision = parseRevisionProperty(internalRevisionProperty, "Internal", "internal");
    260260
    261261        function sourceStampChanges(sourceStamp) {
  • trunk/Tools/ChangeLog

    r176343 r176361  
     12014-11-19  Dana Burkart  <dburkart@apple.com>
     2
     3        Work around the fact that different masters may have different names for their codebases.
     4        https://bugs.webkit.org/show_bug.cgi?id=138878
     5
     6        Reviewed by Mark Rowe.
     7
     8        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
     9        (parseRevisionProperty): Changed.
     10        Take a "fallback key" in addition to the primary key, so we can deal with inconsistencies in
     11        opensource / internal codebase naming convention.
     12
    1132014-11-19  Chris Fleizach  <cfleizach@apple.com>
    214
Note: See TracChangeset for help on using the changeset viewer.