@@ -48,14 +48,13 @@ export default function ResultSummary() {
48
48
const { parentId } = getParams ( location . search ) ;
49
49
50
50
// get test summary (i.e., passed, failed, total numbers)
51
- const summary = await fetchData ( `/api/getTotals?id=${ parentId } ` ) ;
51
+ const summaryRes = fetchData ( `/api/getTotals?id=${ parentId } ` ) ;
52
52
53
53
// get build information
54
- const buildInfo = await fetchData ( `/api/getData?_id=${ parentId } ` ) ;
55
- const parentBuildInfo = buildInfo [ 0 ] || { } ;
54
+ const buildInfoRes = fetchData ( `/api/getData?_id=${ parentId } ` ) ;
56
55
57
56
// get all SDK builds info
58
- const sdkBuilds = await fetchData (
57
+ const sdkBuildsRes = fetchData (
59
58
`/api/getAllChildBuilds${ params ( {
60
59
buildNameRegex : '^(jdk[0-9]{1,2}|Build_)' ,
61
60
parentId,
@@ -66,14 +65,21 @@ export default function ResultSummary() {
66
65
const testSummaryResult = undefined ;
67
66
const buildResult = undefined ;
68
67
69
- const builds = await fetchData (
68
+ const buildsRes = fetchData (
70
69
`/api/getAllChildBuilds${ params ( {
71
70
buildResult,
72
71
testSummaryResult,
73
72
buildNameRegex,
74
73
parentId,
75
74
} ) } `
76
75
) ;
76
+ const [ summary , buildInfo , sdkBuilds , builds ] = await Promise . all ( [
77
+ summaryRes ,
78
+ buildInfoRes ,
79
+ sdkBuildsRes ,
80
+ buildsRes ,
81
+ ] ) ;
82
+ const parentBuildInfo = buildInfo [ 0 ] || { } ;
77
83
let childBuildsResult = 'UNSTABLE' ;
78
84
let javaVersion = null ;
79
85
const buildMap = { } ;
0 commit comments