Bug 76722 - Garden-o-matic should tell me which revisions have been checked by all the bots
Summary: Garden-o-matic should tell me which revisions have been checked by all the bots
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 11:36 PST by Adam Barth
Modified: 2012-01-29 18:18 PST (History)
2 users (show)

See Also:


Attachments
Patch (4.52 KB, patch)
2012-01-20 11:37 PST, Adam Barth
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2012-01-20 11:36:25 PST
Garden-o-matic should tell me which revisions have been checked by all the bots
Comment 1 Adam Barth 2012-01-20 11:37:12 PST
Created attachment 123349 [details]
Patch
Comment 2 Adam Barth 2012-01-20 11:44:20 PST
Committed r105530: <http://trac.webkit.org/changeset/105530>
Comment 3 Adam Roben (:aroben) 2012-01-20 12:42:35 PST
Comment on attachment 123349 [details]
Patch

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

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/model.js:148
> +    var revision = 0;
> +    Object.keys(model.state.resultsByBuilder).forEach(function(builderName) {
> +        var results = model.state.resultsByBuilder[builderName];
> +        var testedRevision = parseInt(results.revision);
> +        revision = revision ? Math.min(revision, testedRevision) : testedRevision;
> +    });
> +    return revision;

Aww, so close to total functional goodness!

var revisions = Object.keys(model.state.resultsByBuilder).map(function(builderName) {
    var results = model.state.resultsByBuilder[builderName];
    var testedRevision = parseInt(results.revision);
    return revision ? revision : 1e100;
});
return Math.min.apply(Math, revisions);

:-)
Comment 4 Adam Roben (:aroben) 2012-01-20 12:43:30 PST
Or you could use Array.prototype.filter to get rid of the non-revisions instead of substituting a large number for them…

</bikeshed>
Comment 5 Adam Barth 2012-01-20 12:54:21 PST
:-)