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

Side by Side Diff: tools/gardening/lib/src/buildbot_data.dart

Issue 2797253006: Add find_timeouts and caching to tools/gardening (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 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/status_summary.dart ('k') | tools/gardening/lib/src/buildbot_loading.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 import 'buildbot_structures.dart'; 5 import 'buildbot_structures.dart';
6 6
7 /// Data describing the steps of the buildbots. 7 /// Data describing the steps of the buildbots.
8 const List<BuildGroup> buildGroups = const <BuildGroup>[ 8 const List<BuildGroup> buildGroups = const <BuildGroup>[
9 const BuildGroup( 9 const BuildGroup(
10 groupName: 'vm', 10 groupName: 'vm',
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 ], testSteps: const <String>[ 643 ], testSteps: const <String>[
644 'dart2js ie10 tests', 644 'dart2js ie10 tests',
645 'dart2js ie10 co19 tests', 645 'dart2js ie10 co19 tests',
646 'dart2js ie10 fast-startup tests', 646 'dart2js ie10 fast-startup tests',
647 'dart2js ie10 co19 fast-startup tests', 647 'dart2js ie10 co19 fast-startup tests',
648 'dart2js chrome tests', 648 'dart2js chrome tests',
649 'dart2js chrome observatory_ui tests', 649 'dart2js chrome observatory_ui tests',
650 'dart2js chrome package tests', 650 'dart2js chrome package tests',
651 'dart2js chrome co19 tests', 651 'dart2js chrome co19 tests',
652 'dart2js chrome extra tests', 652 'dart2js chrome extra tests',
653 ], isActive: false), // Replaced by 'win8-ie11' and 'win7-chrome'.
654 const BuildSubgroup(shardNames: const <String>[
655 'dart2js-win8-ie11-1-4-be',
656 'dart2js-win8-ie11-2-4-be',
657 'dart2js-win8-ie11-3-4-be',
658 'dart2js-win8-ie11-4-4-be'
659 ], testSteps: const <String>[
660 'dart2js ie11 tests',
661 'dart2js ie11 co19 tests',
662 'dart2js ie11 fast-startup tests',
663 'dart2js ie11 co19 fast-startup tests',
664 ]),
665 const BuildSubgroup(shardNames: const <String>[
666 'dart2js-win7-chrome-1-4-be',
667 'dart2js-win7-chrome-2-4-be',
668 'dart2js-win7-chrome-3-4-be',
669 'dart2js-win7-chrome-4-4-be'
670 ], testSteps: const <String>[
671 'dart2js chrome tests',
672 'dart2js chrome observatory_ui tests',
673 'dart2js chrome package tests',
674 'dart2js chrome co19 tests',
675 'dart2js chrome extra tests',
653 'dart2js chrome fast-startup tests', 676 'dart2js chrome fast-startup tests',
654 'dart2js chrome observatory_ui fast-startup tests', 677 'dart2js chrome observatory_ui fast-startup tests',
655 'dart2js chrome package fast-startup tests', 678 'dart2js chrome package fast-startup tests',
656 'dart2js chrome co19 fast-startup tests', 679 'dart2js chrome co19 fast-startup tests',
657 'dart2js chrome extra fast-startup tests', 680 'dart2js chrome extra fast-startup tests',
658 ]), 681 ]),
659 const BuildSubgroup(shardNames: const <String>[ 682 const BuildSubgroup(shardNames: const <String>[
660 'dart2js-win7-ie11ff-1-4-be', 683 'dart2js-win7-ie11ff-1-4-be',
661 'dart2js-win7-ie11ff-2-4-be', 684 'dart2js-win7-ie11ff-2-4-be',
662 'dart2js-win7-ie11ff-3-4-be', 685 'dart2js-win7-ie11ff-3-4-be',
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 /// The name of the group as display on the buildbot site. 801 /// The name of the group as display on the buildbot site.
779 final String groupName; 802 final String groupName;
780 803
781 /// The subgroups, often shards, of the buildbot group. 804 /// The subgroups, often shards, of the buildbot group.
782 final List<BuildSubgroup> subgroups; 805 final List<BuildSubgroup> subgroups;
783 806
784 const BuildGroup({this.groupName, this.subgroups}); 807 const BuildGroup({this.groupName, this.subgroups});
785 808
786 /// Returns the [BuildUri] corresponding to the build steps for shards in this 809 /// Returns the [BuildUri] corresponding to the build steps for shards in this
787 /// group. 810 /// group.
788 List<BuildUri> createUris(int buildNumber) { 811 List<BuildUri> createUris(int buildNumber, {bool includeInactive: false}) {
789 List<BuildUri> uriList = <BuildUri>[]; 812 List<BuildUri> uriList = <BuildUri>[];
790 for (BuildSubgroup subgroup in subgroups) { 813 for (BuildSubgroup subgroup in subgroups) {
814 if (!subgroup.isActive && !includeInactive) continue;
791 uriList.addAll(subgroup.createUris(buildNumber)); 815 uriList.addAll(subgroup.createUris(buildNumber));
792 } 816 }
793 return uriList; 817 return uriList;
794 } 818 }
795 } 819 }
796 820
797 /// A group of buildbot subgroups, often shards, that share their test steps, 821 /// A group of buildbot subgroups, often shards, that share their test steps,
798 /// for instance all `dart2js-win7-ie10chrome-*-4-be` shards. 822 /// for instance all `dart2js-win7-ie10chrome-*-4-be` shards.
799 class BuildSubgroup { 823 class BuildSubgroup {
800 /// The names of the shards in this, for instance 824 /// The names of the shards in this, for instance
801 /// `dart2js-win7-ie10chrome-1-4-be`, `dart2js-win7-ie10chrome-2-4-be`, etc. 825 /// `dart2js-win7-ie10chrome-1-4-be`, `dart2js-win7-ie10chrome-2-4-be`, etc.
802 final List<String> shardNames; 826 final List<String> shardNames;
803 827
804 /// The names of the test steps for the shards in this subgroup, for instance 828 /// The names of the test steps for the shards in this subgroup, for instance
805 /// `dart2js ie10 tests`, `dart2js ie10 co19 tests`, etc. 829 /// `dart2js ie10 tests`, `dart2js ie10 co19 tests`, etc.
806 final List<String> testSteps; 830 final List<String> testSteps;
807 831
808 const BuildSubgroup({this.shardNames, this.testSteps}); 832 /// Whether this subgroup is currently on the buildbot.
833 ///
834 /// Set this to `false` to preserve data for older build structures. The data
835 /// will continuously be available through logdog.
836 final bool isActive;
837
838 const BuildSubgroup({this.shardNames, this.testSteps, this.isActive: true});
839
840 Map<String, String> get logDogPaths {
841 Map<String, String> paths = <String, String>{};
842 for (String shardName in shardNames) {
843 paths[shardName] = 'chromium/bb/client.dart/$shardName';
844 }
845 return paths;
846 }
809 847
810 /// Returns the [BuildUri] corresponding to the build steps for all shards 848 /// Returns the [BuildUri] corresponding to the build steps for all shards
811 /// in this subgroup. 849 /// in this subgroup.
812 List<BuildUri> createUris(int buildNumber) { 850 List<BuildUri> createUris(int buildNumber) {
813 List<BuildUri> uriList = <BuildUri>[]; 851 List<BuildUri> uriList = <BuildUri>[];
814 for (String shardName in shardNames) { 852 for (String shardName in shardNames) {
815 for (String testStep in testSteps) { 853 uriList.addAll(createShardUris(shardName, buildNumber));
816 uriList.add(new BuildUri.fromData(shardName, buildNumber, testStep));
817 }
818 } 854 }
819 return uriList; 855 return uriList;
820 } 856 }
857
858 List<BuildUri> createShardUris(String shardName, int buildNumber) {
859 List<BuildUri> uriList = <BuildUri>[];
860 for (String testStep in testSteps) {
861 uriList.add(new BuildUri.fromData(shardName, buildNumber, testStep));
862 }
863 return uriList;
864 }
821 } 865 }
OLDNEW
« no previous file with comments | « tools/gardening/bin/status_summary.dart ('k') | tools/gardening/lib/src/buildbot_loading.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698