1
1
import { GroupedJobStatus , JobStatus } from "components/GroupJobConclusion" ;
2
2
import { GroupData , RowData } from "./types" ;
3
3
4
- const GROUP_MEMORY_LEAK_CHECK = "Memory Leak Check"
5
- const GROUP_RERUN_DISABLED_TESTS = "Rerun Disabled Tests"
6
- const GROUP_UNSTABLE = "Unstable"
7
- const GROUP_PERIODIC = "Periodic"
8
- const GROUP_LINT = "Lint"
9
- const GROUP_INDUCTOR = "Inductor"
10
- const GROUP_ANDROID = "Android"
11
- const GROUP_ROCM = "ROCm"
12
- const GROUP_XLA = "XLA"
13
- const GROUP_LINUX = "Linux"
14
- const GROUP_BINARY_LINUX = "Binary Linux"
15
- const GROUP_BINARY_WINDOWS = "Binary Windows"
16
- const GROUP_ANNOTATIONS_AND_LABELING = "Annotations and labeling"
17
- const GROUP_DOCKER = "Docker"
18
- const GROUP_WINDOWS = "Windows"
19
- const GROUP_CALC_DOCKER_IMAGE = "GitHub calculate-docker-image"
20
- const GROUP_CI_DOCKER_IMAGE_BUILDS = "CI Docker Image Builds"
21
- const GROUP_CI_CIRCLECI_PYTORCH_IOS = "ci/circleci: pytorch_ios"
22
- const GROUP_IOS = "iOS"
23
- const GROUP_MAC = "Mac"
24
- const GROUP_PARALLEL = "Parallel"
25
- const GROUP_DOCS = "Docs"
26
- const GROUP_LIBTORCH = "Libtorch"
27
- const GROUP_OTHER = "other"
4
+ const GROUP_MEMORY_LEAK_CHECK = "Memory Leak Check" ;
5
+ const GROUP_RERUN_DISABLED_TESTS = "Rerun Disabled Tests" ;
6
+ const GROUP_UNSTABLE = "Unstable" ;
7
+ const GROUP_PERIODIC = "Periodic" ;
8
+ const GROUP_SLOW = "Slow" ;
9
+ const GROUP_LINT = "Lint" ;
10
+ const GROUP_INDUCTOR = "Inductor" ;
11
+ const GROUP_ANDROID = "Android" ;
12
+ const GROUP_ROCM = "ROCm" ;
13
+ const GROUP_XLA = "XLA" ;
14
+ const GROUP_LINUX = "Linux" ;
15
+ const GROUP_BINARY_LINUX = "Binary Linux" ;
16
+ const GROUP_BINARY_WINDOWS = "Binary Windows" ;
17
+ const GROUP_ANNOTATIONS_AND_LABELING = "Annotations and labeling" ;
18
+ const GROUP_DOCKER = "Docker" ;
19
+ const GROUP_WINDOWS = "Windows" ;
20
+ const GROUP_CALC_DOCKER_IMAGE = "GitHub calculate-docker-image" ;
21
+ const GROUP_CI_DOCKER_IMAGE_BUILDS = "CI Docker Image Builds" ;
22
+ const GROUP_CI_CIRCLECI_PYTORCH_IOS = "ci/circleci: pytorch_ios" ;
23
+ const GROUP_IOS = "iOS" ;
24
+ const GROUP_MAC = "Mac" ;
25
+ const GROUP_PARALLEL = "Parallel" ;
26
+ const GROUP_DOCS = "Docs" ;
27
+ const GROUP_LIBTORCH = "Libtorch" ;
28
+ const GROUP_OTHER = "other" ;
28
29
29
30
// Jobs will be grouped with the first regex they match in this list
30
31
export const groups = [
@@ -47,6 +48,10 @@ export const groups = [
47
48
regex : / p e r i o d i c / ,
48
49
name : GROUP_PERIODIC ,
49
50
} ,
51
+ {
52
+ regex : / s l o w / ,
53
+ name : GROUP_SLOW ,
54
+ } ,
50
55
{
51
56
regex : / L i n t / ,
52
57
name : GROUP_LINT ,
@@ -149,30 +154,30 @@ const HUD_GROUP_SORTING = [
149
154
GROUP_CI_DOCKER_IMAGE_BUILDS ,
150
155
GROUP_CI_CIRCLECI_PYTORCH_IOS ,
151
156
GROUP_PERIODIC ,
157
+ GROUP_SLOW ,
152
158
GROUP_DOCS ,
153
159
GROUP_RERUN_DISABLED_TESTS ,
154
160
GROUP_INDUCTOR ,
155
161
GROUP_ANNOTATIONS_AND_LABELING ,
156
162
GROUP_OTHER ,
157
163
GROUP_UNSTABLE ,
158
- ]
164
+ ] ;
159
165
160
166
// Accepts a list of group names and returns that list sorted according to
161
167
// the order defined in HUD_GROUP_SORTING
162
- export function sortGroupNamesForHUD ( groupNames : string [ ] ) : string [ ] {
163
-
164
- let result : string [ ] = [ ]
168
+ export function sortGroupNamesForHUD ( groupNames : string [ ] ) : string [ ] {
169
+ let result : string [ ] = [ ] ;
165
170
for ( const group of HUD_GROUP_SORTING ) {
166
171
if ( groupNames . includes ( group ) ) {
167
- result . push ( group )
172
+ result . push ( group ) ;
168
173
}
169
174
}
170
-
175
+
171
176
// Be flexible in case against any groups were left out of HUD_GROUP_SORTING
172
- let remaining = groupNames . filter ( x => ! result . includes ( x ) )
177
+ let remaining = groupNames . filter ( ( x ) => ! result . includes ( x ) ) ;
173
178
174
- result = result . concat ( remaining )
175
- return result
179
+ result = result . concat ( remaining ) ;
180
+ return result ;
176
181
}
177
182
178
183
export function classifyGroup ( jobName : string ) : string {
0 commit comments