RESOLVED FIXED76722
Garden-o-matic should tell me which revisions have been checked by all the bots
https://bugs.webkit.org/show_bug.cgi?id=76722
Summary Garden-o-matic should tell me which revisions have been checked by all the bots
Adam Barth
Reported 2012-01-20 11:36:25 PST
Garden-o-matic should tell me which revisions have been checked by all the bots
Attachments
Patch (4.52 KB, patch)
2012-01-20 11:37 PST, Adam Barth
no flags
Adam Barth
Comment 1 2012-01-20 11:37:12 PST
Adam Barth
Comment 2 2012-01-20 11:44:20 PST
Adam Roben (:aroben)
Comment 3 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); :-)
Adam Roben (:aroben)
Comment 4 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>
Adam Barth
Comment 5 2012-01-20 12:54:21 PST
:-)
Note You need to log in before you can comment on or make changes to this bug.