Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2443)

Unified Diff: Tools/GardeningServer/model/ct-step-failure-group-data.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/model/ct-step-failure.html ('k') | Tools/GardeningServer/model/ct-tree.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/model/ct-step-failure-group-data.html
diff --git a/Tools/GardeningServer/model/ct-step-failure-group-data.html b/Tools/GardeningServer/model/ct-step-failure-group-data.html
deleted file mode 100644
index 3ca3817f9928a1f51c1aef7545d8912632a66572..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/model/ct-step-failure-group-data.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<!--
-Copyright 2014 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-
-<link rel="import" href="ct-builder-list.html">
-<link rel="import" href="ct-commit-list.html">
-
-<script>
-function CTStepFailureGroupData(failures, commitList) {
- this.failures = failures;
- this.key = failures.map(function(failure) {
- return failure.key;
- }).join('::');
- this.commitList = commitList;
- this.builderList = new CTBuilderList(failures);
- this.category = 'step';
-};
-
-CTStepFailureGroupData.prototype.getAnnotations = function() {
- return this.failures.map(function(failure) {
- return failure.annotations();
- }).flatten();
-};
-
-CTStepFailureGroupData.prototype.failureKeys = function() {
- return this.failures.map(function(failure) {
- return failure.keys();
- }).flatten();
-};
-
-CTStepFailureGroupData.prototype.isTreeCloser = function() {
- return this.failures.any(function(failure) {
- return failure.isTreeCloser();
- });
-};
-
-CTStepFailureGroupData.prototype.failedOnce = function() {
- if (!this.failures.length)
- return false;
-
- for (var i = 0; i < this.failures.length; i++) {
- var totalFailures = 0;
- var resultNodes = this.failures[i].resultNodesByBuilder;
- for (var r in resultNodes) {
- totalFailures += resultNodes[r].failingBuildCount;
- if (totalFailures > 1)
- return false;
- }
- }
- return true;
-};
-
-CTStepFailureGroupData.prototype.fileBugMessage = function() {
- var message = '';
- this.failures.forEach(function(failure) {
- message += failure.step;
- if (failure.testName) {
- message += ' ' + failure.testName + '\n';
- message += failure.flakinessDashboardURL(this.tree);
- }
- message += '\n';
- });
- message += '\nRevision range:\n';
- this.commitList.repositories.forEach(function(repository) {
- message += repository.name + ' ' + repository.range + '\n';
- });
- message += '\nFailing builders:\n';
- this.builderList.builders.forEach(function(builder) {
- message += builder.builder + ': ' + builder.buildUrl + '\n';
- });
-
- return message;
-};
-
-CTStepFailureGroupData.prototype.fileBugLink = function() {
- var fileBugUrl = 'https://code.google.com/p/chromium/issues/entry?' +
- 'status=Available&labels=Pri-2,gardening-blink&' +
- 'summary=Build%20failure&comment=Build%20is%20broken:%0a';
- return fileBugUrl + encodeURIComponent(this.fileBugMessage());
-};
-</script>
« no previous file with comments | « Tools/GardeningServer/model/ct-step-failure.html ('k') | Tools/GardeningServer/model/ct-tree.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698