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

Side by Side Diff: Tools/GardeningServer/scripts/garden-o-matic.js

Issue 336033002: Cleanup some garden-o-matic cruft and dead code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 if (g_updating) 61 if (g_updating)
62 return; 62 return;
63 63
64 g_updating = true; 64 g_updating = true;
65 if (g_updateButton) 65 if (g_updateButton)
66 g_updateButton.disabled = true; 66 g_updateButton.disabled = true;
67 67
68 if (g_revisionHint) 68 if (g_revisionHint)
69 g_revisionHint.dismiss(); 69 g_revisionHint.dismiss();
70 70
71 var gtestIframe = document.querySelector('#chromium-gtests iframe');
ojan 2014/06/14 18:42:11 We never create this iframe.
72 if (gtestIframe)
73 gtestIframe.src = gtestIframe.src;
74
75 // FIXME: This should be a button with a progress element. 71 // FIXME: This should be a button with a progress element.
76 var numberOfTestsAnalyzed = 0; 72 var numberOfTestsAnalyzed = 0;
77 var updating = new ui.notifications.Info('Loading commit data ...'); 73 var updating = new ui.notifications.Info('Loading commit data ...');
78 74
79 g_info.add(updating); 75 g_info.add(updating);
80 76
81 builders.buildersFailingNonLayoutTests().then(function(failuresList) { 77 builders.buildersFailingNonLayoutTests().then(function(failuresList) {
82 g_nonLayoutTestFailureBuilders.update(failuresList); 78 g_nonLayoutTestFailureBuilders.update(failuresList);
83 updatePartyTime(); 79 updatePartyTime();
84 }); 80 });
85 81
86 Promise.all([model.updateRecentCommits(), model.updateResultsByBuilder()]).t hen(function() { 82 Promise.all([model.updateRecentCommits(), model.updateResultsByBuilder()]).t hen(function() {
87 if (g_failuresController) 83 if (g_failuresController)
88 g_failuresController.update(); 84 g_failuresController.update();
89 85
90 updating.update('Analyzing test failures ...'); 86 updating.update('Analyzing test failures ...');
91 87
92 model.analyzeUnexpectedFailures(function(failureAnalysis, total) { 88 model.analyzeUnexpectedFailures(function(failureAnalysis, total) {
93 updating.update('Analyzing test failures ... ' + ++numberOfTestsAnal yzed + '/' + total + ' tests analyzed.'); 89 updating.update('Analyzing test failures ... ' + ++numberOfTestsAnal yzed + '/' + total + ' tests analyzed.');
94 g_unexpectedFailuresController.update(failureAnalysis); 90 g_unexpectedFailuresController.update(failureAnalysis);
95 }).then(function() { 91 }).then(function() {
96 updatePartyTime(); 92 updatePartyTime();
97 g_unexpectedFailuresController.purge(); 93 g_unexpectedFailuresController.purge();
98 94
99 Object.keys(config.builders).forEach(function(builderName) { 95 Object.keys(config.builders).forEach(function(builderName) {
100 if (!model.state.resultsByBuilder[builderName]) 96 if (!model.state.resultsByBuilder[builderName])
101 g_info.add(new ui.notifications.Info('Could not find test re sults for ' + builderName + ' in the last ' + config.kBuildNumberLimit + ' runs. ')); 97 g_info.add(new ui.notifications.Info('Could not find test re sults for ' + builderName + '.'));
102 }); 98 });
103 99
104 updating.dismiss(); 100 updating.dismiss();
105 101
106 g_revisionHint = new ui.notifications.Info(''); 102 g_revisionHint = new ui.notifications.Info('');
107 g_revisionHint.updateWithNode(new ui.revisionDetails()); 103 g_revisionHint.updateWithNode(new ui.revisionDetails());
108 g_info.add(g_revisionHint); 104 g_info.add(g_revisionHint);
109 105
110 g_updating = false; 106 g_updating = false;
111 if (g_updateButton) 107 if (g_updateButton)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 if (expected) { 158 if (expected) {
163 var failuresView = new ui.failures.List(); 159 var failuresView = new ui.failures.List();
164 g_failuresController = new controllers.ExpectedFailures(model.state, fai luresView, onebarController); 160 g_failuresController = new controllers.ExpectedFailures(model.state, fai luresView, onebarController);
165 expected.appendChild(failuresView); 161 expected.appendChild(failuresView);
166 } 162 }
167 163
168 update(); 164 update();
169 }); 165 });
170 166
171 })(); 167 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698