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

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

Issue 2756193002: Script finding the build bot group for a given shard. (Closed)
Patch Set: Created 3 years, 9 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/create_shard_groups.dart ('k') | tools/gardening/lib/src/shard_data.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Translates a buildbot shard name to the corresponding column group name
6 // on the buildbot site, such that it's easier to find the right column.
7 //
8 // Example: `dart bin/shard2group.dart precomp-linux-debug-x64-be`
9 // prints `vm-precomp(5): precomp-linux-debug-x64-be`.
10
11 library gardening.shard2group;
12 import 'dart:io';
13 part 'package:gardening/src/shard_data.dart';
14
15 main(List<String> args) async {
16 if (args.length == 0) {
17 print('Usage: dart shard2group.dart <shard-name1> [<shard-name2> ...]');
18 print('Run bin/create_shard_groups.dart to refresh shard data');
19 exit(1);
20 }
21
22 for (String arg in args) {
23 for (String group in shardGroups.keys) {
24 List<String> shardGroup = shardGroups[group];
25 for (int i = 0; i < shardGroup.length; i++) {
26 String shard = shardGroup[i];
27 if (shard.contains(arg)) {
28 print("$group(${i+1}): $shard");
29 }
30 }
31 }
32 }
33 }
OLDNEW
« no previous file with comments | « tools/gardening/bin/create_shard_groups.dart ('k') | tools/gardening/lib/src/shard_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698