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

Side by Side Diff: tools/gardening/bin/find_timeouts.dart

Issue 2915043002: Added find-shard to bot.dart. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tools/gardening/bin/find_shard.dart ('k') | tools/gardening/bin/shard2group.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Scans past dart2js-windows test steps for timeouts and reports the 5 /// Scans past dart2js-windows test steps for timeouts and reports the
6 /// frequency of each test that has timed out. 6 /// frequency of each test that has timed out.
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'package:args/args.dart'; 10 import 'package:args/args.dart';
11 import 'package:gardening/src/buildbot_data.dart'; 11 import 'package:gardening/src/buildbot_data.dart';
12 import 'package:gardening/src/buildbot_loading.dart'; 12 import 'package:gardening/src/buildbot_loading.dart';
13 import 'package:gardening/src/buildbot_structures.dart'; 13 import 'package:gardening/src/buildbot_structures.dart';
14 import 'package:gardening/src/client.dart'; 14 import 'package:gardening/src/client.dart';
15 import 'package:gardening/src/logdog.dart' as logdog; 15 import 'package:gardening/src/logdog.dart' as logdog;
16 import 'package:gardening/src/util.dart'; 16 import 'package:gardening/src/util.dart';
17 17
18 // TODO(johnniwinther): Adjustments needed: this script may run with
19 // no output for a long time. Hence not yet run by bot.dart.
18 main(List<String> args) async { 20 main(List<String> args) async {
19 ArgParser argParser = createArgParser(); 21 ArgParser argParser = createArgParser();
20 argParser.addOption('start', 22 argParser.addOption('start',
21 defaultsTo: '-2', 23 defaultsTo: '-2',
22 help: "Start pulling from the specified <build-number>.\n" 24 help: "Start pulling from the specified <build-number>.\n"
23 "Use negative numbers for the most recent builds;\n" 25 "Use negative numbers for the most recent builds;\n"
24 "for instance -2 for the second-to-last build.'"); 26 "for instance -2 for the second-to-last build.'");
25 ArgResults argResults = argParser.parse(args); 27 ArgResults argResults = argParser.parse(args);
26 processArgResults(argResults); 28 processArgResults(argResults);
27 29
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 133 }
132 134
133 class Timeout { 135 class Timeout {
134 final BuildSubgroup subgroup; 136 final BuildSubgroup subgroup;
135 final int buildNumber; 137 final int buildNumber;
136 final BuildUri buildUri; 138 final BuildUri buildUri;
137 final TestFailure timeout; 139 final TestFailure timeout;
138 140
139 Timeout(this.subgroup, this.buildNumber, this.buildUri, this.timeout); 141 Timeout(this.subgroup, this.buildNumber, this.buildUri, this.timeout);
140 } 142 }
OLDNEW
« no previous file with comments | « tools/gardening/bin/find_shard.dart ('k') | tools/gardening/bin/shard2group.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698