File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed
oss_ci_benchmark_branches Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ WITH benchmarks AS (
15
15
tupleElement(o .benchmark , ' extra_info' ) [ ' arch' ],
16
16
tupleElement(o .runners [ 1 ], ' type' )
17
17
) AS arch,
18
+ o .timestamp AS timestamp ,
18
19
toStartOfDay(fromUnixTimestamp(o .timestamp )) AS event_time
19
20
FROM
20
21
benchmark .oss_ci_benchmark_v3 o
@@ -43,7 +44,6 @@ WITH benchmarks AS (
43
44
OR empty({excludedMetrics: Array(String) })
44
45
)
45
46
AND notEmpty(o .metric .name)
46
- AND notEmpty(o .benchmark .dtype)
47
47
)
48
48
SELECT
49
49
DISTINCT replaceOne(head_branch, ' refs/heads/' , ' ' ) AS head_branch,
66
66
AND notEmpty(device)
67
67
ORDER BY
68
68
head_branch,
69
- event_time DESC
69
+ timestamp DESC
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ WITH benchmarks AS (
57
57
OR empty({excludedMetrics: Array(String) })
58
58
)
59
59
AND notEmpty(o .metric .name)
60
- AND notEmpty(o .benchmark .dtype)
61
60
)
62
61
SELECT
63
62
DISTINCT workflow_id,
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ WITH benchmarks AS (
43
43
OR empty({excludedMetrics: Array(String) })
44
44
)
45
45
AND notEmpty(o .metric .name)
46
- AND notEmpty(o .benchmark .dtype)
47
46
)
48
47
SELECT
49
48
DISTINCT benchmark,
Original file line number Diff line number Diff line change @@ -252,11 +252,9 @@ export default function Page() {
252
252
JSON . stringify ( queryParams )
253
253
) } `;
254
254
255
- console . log ( queryParams ) ;
256
255
const { data } = useSWR ( url , fetcher , {
257
256
refreshInterval : 60 * 60 * 1000 , // refresh every hour
258
257
} ) ;
259
- console . log ( data ) ;
260
258
261
259
if ( data === undefined || data . length === 0 ) {
262
260
return < > Loading { REPO_TO_BENCHMARKS [ repoName ] . join ( ", " ) } ...</ > ;
@@ -274,10 +272,10 @@ export default function Page() {
274
272
DEFAULT_DEVICE_NAME ,
275
273
...( _ . uniq ( data . map ( ( r : any ) => `${ r . device } (${ r . arch } )` ) ) as string [ ] ) ,
276
274
] ;
277
- const dtypeNames : string [ ] = [
275
+ const dtypeNames : string [ ] = _ . compact ( [
278
276
DEFAULT_DTYPE_NAME ,
279
277
...( _ . uniq ( data . map ( ( r : any ) => r . dtype ) ) as string [ ] ) ,
280
- ] ;
278
+ ] ) ;
281
279
const metricNames : string [ ] = _ . uniq ( data . map ( ( r : any ) => r . metric ) ) ;
282
280
283
281
return (
@@ -330,12 +328,14 @@ export default function Page() {
330
328
label = { "Backend" }
331
329
/>
332
330
) }
333
- < DTypePicker
334
- dtype = { dtypeName }
335
- setDType = { setDTypeName }
336
- dtypes = { dtypeNames }
337
- label = { "DType" }
338
- />
331
+ { dtypeNames . length > 1 && (
332
+ < DTypePicker
333
+ dtype = { dtypeName }
334
+ setDType = { setDTypeName }
335
+ dtypes = { dtypeNames }
336
+ label = { "DType" }
337
+ />
338
+ ) }
339
339
< DTypePicker
340
340
dtype = { deviceName }
341
341
setDType = { setDeviceName }
You can’t perform that action at this time.
0 commit comments