@@ -10,6 +10,7 @@ import {
1010 BenchmarkRequest ,
1111 CollectorConfig ,
1212 isJobComplete ,
13+ isRequestInProgress ,
1314 StatusResponse ,
1415} from " ./data" ;
1516import Collector from " ./collector.vue" ;
@@ -104,6 +105,23 @@ function getErrorsLength(errors: Dict<string>) {
104105 return ` ${errorsLen } ${errorsLen > 1 ? " s" : " " } ` ;
105106}
106107
108+ function ExpectedCurrentRequestCompletion() {
109+ const req = data .value .timeline .find (isRequestInProgress );
110+ if (! req ) return " " ;
111+ if (! req .endEstimated ) return " " ;
112+ if (! req .completedAt ) return " " ;
113+ const formattedDate = formatISODate (req .completedAt );
114+ return (
115+ <span >
116+ Current Benchmark for{ " " }
117+ <strong >
118+ <CommitSha tag = { req .tag } ></CommitSha >
119+ </strong >{ " " }
120+ expected to end at { formattedDate } { " " }
121+ </span >
122+ );
123+ }
124+
107125function PullRequestLink({request }: {request: BenchmarkRequest }) {
108126 if (request .requestType === " Release" ) {
109127 return " " ;
@@ -164,6 +182,7 @@ loadStatusData(loading);
164182 <div class =" status-page-wrapper" >
165183 <div class =" timeline-wrapper" >
166184 <h1 >Timeline</h1 >
185+ <ExpectedCurrentRequestCompletion />
167186 <div style =" margin-bottom : 10px " >
168187 Queue length: {{ data.queueLength }}
169188 </div >
@@ -188,7 +207,7 @@ loadStatusData(loading);
188207 <tr :class =" getRequestRowClassName(req)" >
189208 <td ><PullRequestLink :request =" req" /></td >
190209 <td >{{ req.requestType }}</td >
191- <td ><CommitSha :tag =" req.tag" ></CommitSha ></td >
210+ <td ><CommitSha :truncate = " true " : tag =" req.tag" ></CommitSha ></td >
192211 <td >
193212 {{ formatStatus(req)
194213 }}{{
0 commit comments