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

Unified Diff: Tools/GardeningServer/model/ct-step-failure.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
Index: Tools/GardeningServer/model/ct-step-failure.html
diff --git a/Tools/GardeningServer/model/ct-step-failure.html b/Tools/GardeningServer/model/ct-step-failure.html
deleted file mode 100644
index 25ffb1871b89e6d638b367130f505f97d855c1c6..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/model/ct-step-failure.html
+++ /dev/null
@@ -1,85 +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.
--->
-
-<script>
-function CTStepFailure(step, reason, resultsByBuilder) {
- this.key = step + '::'
-
- // The key needs to be unique, so disambiguate null reason
- // failures by their builders, but don't do regular failures
- // by builders because we want failures with reasons to update
- // the existing failure group instead of causing the group to
- // get recreated since throwing it away loses in app state.
- if (reason)
- this.key += reason;
- else
- this.key += Object.keys(resultsByBuilder).join('::');
-
- this.step = step;
- // FIXME: Rename this to reason.
- this.testName = reason;
- // Maps a builder_name (e.g. "Mac ASan Tests (1)")
- // to the details of the failure on that builder.
- this.resultNodesByBuilder = resultsByBuilder;
-}
-
-CTStepFailure.prototype.isTreeCloser = function() {
- for (var builder in this.resultNodesByBuilder) {
- var result = this.resultNodesByBuilder[builder];
- if (result.isTreeCloser)
- return true;
- }
- return false;
-};
-
-CTStepFailure.prototype.flakinessDashboardURL = function() {
- var testType = this.step;
-
- // FIXME: Remove this once the flakiness dashboard stops having webkit_tests
- // masquerade as layout-tests.
- if (testType == 'webkit_tests')
- testType = 'layout-tests';
-
- return 'http://test-results.appspot.com/dashboards/flakiness_dashboard.html#' +
- Object.toQueryString({
- tests: this.testName,
- testType: testType,
- });
-}
-
-CTStepFailure.prototype.embeddedFlakinessDashboardURL = function() {
- return this.flakinessDashboardURL() + '&showChrome=false';
-}
-
-CTStepFailure.prototype.reasonGroupName = function() {
- if (!this.testName)
- return undefined;
- if (this.step == 'webkit_tests')
- return this.testName.substr(0, this.testName.lastIndexOf('/'));
- return this.testName.substr(0, this.testName.lastIndexOf('.'));
-};
-
-CTStepFailure.prototype.keys = function() {
- return Object.values(this.resultNodesByBuilder).map('key');
-};
-
-CTStepFailure.prototype.annotations = function() {
- var annotations = [];
- Object.values(this.resultNodesByBuilder, function(result) {
- annotations.push(result.annotation ? result.annotation : {});
- });
- return annotations;
-};
-
-// FIXME: This should just be provided as part of the alerts feed.
-CTStepFailure.createKey = function(alert) {
- function normalize(str) {
- str = str == null ? '' : String(str);
- return str.replace(/:/g, '_');
- }
- return [alert.master_url, alert.builder_name, alert.failing_build, alert.step_name, alert.reason].map(normalize).join('::');
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698