| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="../lib/net.html"> | 7 <link rel="import" href="../lib/net.html"> |
| 8 <link rel="import" href="../lib/update-util.html"> | 8 <link rel="import" href="../lib/update-util.html"> |
| 9 <link rel="import" href="ct-builder-revisions.html"> | 9 <link rel="import" href="ct-builder-revisions.html"> |
| 10 <link rel="import" href="ct-failure.html"> | 10 <link rel="import" href="ct-failure.html"> |
| 11 <link rel="import" href="ct-failure-group.html"> | 11 <link rel="import" href="ct-failure-group.html"> |
| 12 <link rel="import" href="ct-sheriff-failure-group-data.html"> | 12 <link rel="import" href="ct-sheriff-failure-group-data.html"> |
| 13 <link rel="import" href="ct-trooper-failure-group-data.html"> | 13 <link rel="import" href="ct-trooper-failure-group-data.html"> |
| 14 <link rel="import" href="ct-commit-list.html"> | 14 <link rel="import" href="ct-commit-list.html"> |
| 15 | 15 |
| 16 <script> | 16 <script> |
| 17 function CTFailures(commitLog) { | 17 function CTFailures(commitLog) { |
| 18 this.commitLog = commitLog; | 18 this.commitLog = commitLog; |
| 19 this.builderLatestRevisions = null; | 19 this.builderLatestRevisions = null; |
| 20 // Maps a tree id to an array of CTFailureGroups within that tree. | 20 // Maps a tree id to an array of CTFailureGroups within that tree. |
| 21 this.failures = {}; | 21 this.failures = null; |
| 22 this.lastUpdateDate = null; | 22 this.lastUpdateDate = null; |
| 23 | 23 |
| 24 // FIXME: Get this from | 24 // FIXME: Get this from |
| 25 // https://chromium.googlesource.com/chromium/tools/build/+/master/scripts/sla
ve/gatekeeper_trees.json?format=text. | 25 // https://chromium.googlesource.com/chromium/tools/build/+/master/scripts/sla
ve/gatekeeper_trees.json?format=text. |
| 26 this._trees = { | 26 this._trees = { |
| 27 blink: [ | 27 blink: [ |
| 28 "https://build.chromium.org/p/chromium.webkit", | 28 "https://build.chromium.org/p/chromium.webkit", |
| 29 ], | 29 ], |
| 30 chromium: [ | 30 chromium: [ |
| 31 "https://build.chromium.org/p/chromium", | 31 "https://build.chromium.org/p/chromium", |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 if (!newFailures[tree]) | 226 if (!newFailures[tree]) |
| 227 newFailures[tree] = []; | 227 newFailures[tree] = []; |
| 228 var commitList = new CTCommitList(this.commitLog, rangeGroup.likely_revision
s); | 228 var commitList = new CTCommitList(this.commitLog, rangeGroup.likely_revision
s); |
| 229 newFailures[tree].push(new CTFailureGroup(rangeGroup.sort_key, new CTSheriff
FailureGroupData(treeFailures, commitList))); | 229 newFailures[tree].push(new CTFailureGroup(rangeGroup.sort_key, new CTSheriff
FailureGroupData(treeFailures, commitList))); |
| 230 }.bind(this)); | 230 }.bind(this)); |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 })(); | 233 })(); |
| 234 </script> | 234 </script> |
| OLD | NEW |