@@ -8,7 +8,8 @@ use crate::{
8
8
BENCHMARK_JOB_STATUS_IN_PROGRESS_STR , BENCHMARK_JOB_STATUS_QUEUED_STR ,
9
9
BENCHMARK_REQUEST_MASTER_STR , BENCHMARK_REQUEST_RELEASE_STR ,
10
10
BENCHMARK_REQUEST_STATUS_ARTIFACTS_READY_STR , BENCHMARK_REQUEST_STATUS_COMPLETED_STR ,
11
- BENCHMARK_REQUEST_STATUS_IN_PROGRESS_STR , BENCHMARK_REQUEST_TRY_STR ,
11
+ BENCHMARK_REQUEST_STATUS_IN_PROGRESS_STR , BENCHMARK_REQUEST_STATUS_WAITING_FOR_ARTIFACTS_STR ,
12
+ BENCHMARK_REQUEST_TRY_STR ,
12
13
} ;
13
14
use anyhow:: Context as _;
14
15
use chrono:: { DateTime , TimeZone , Utc } ;
@@ -1491,7 +1492,7 @@ where
1491
1492
& benchmark_request. parent_sha ( ) ,
1492
1493
& benchmark_request. pr ( ) . map ( |it| * it as i32 ) ,
1493
1494
& benchmark_request. commit_type ,
1494
- & benchmark_request. status ,
1495
+ & benchmark_request. status . as_str ( ) ,
1495
1496
& benchmark_request. created_at ,
1496
1497
& benchmark_request. backends ,
1497
1498
& benchmark_request. profiles ,
@@ -1572,9 +1573,9 @@ where
1572
1573
& [
1573
1574
& sha,
1574
1575
& parent_sha,
1575
- & BenchmarkRequestStatus :: ArtifactsReady ,
1576
+ & BENCHMARK_REQUEST_STATUS_ARTIFACTS_READY_STR ,
1576
1577
& ( pr as i32 ) ,
1577
- & BenchmarkRequestStatus :: WaitingForArtifacts ,
1578
+ & BENCHMARK_REQUEST_STATUS_WAITING_FOR_ARTIFACTS_STR ,
1578
1579
] ,
1579
1580
)
1580
1581
. await
@@ -1693,7 +1694,7 @@ where
1693
1694
& backend,
1694
1695
& profile,
1695
1696
& ( benchmark_set as i32 ) ,
1696
- & BenchmarkJobStatus :: Queued ,
1697
+ & BENCHMARK_JOB_STATUS_QUEUED_STR ,
1697
1698
] ,
1698
1699
)
1699
1700
. await
@@ -1929,11 +1930,9 @@ macro_rules! impl_to_postgresql_via_to_string {
1929
1930
}
1930
1931
1931
1932
impl_to_postgresql_via_to_string ! ( BenchmarkRequestType ) ;
1932
- impl_to_postgresql_via_to_string ! ( BenchmarkRequestStatus ) ;
1933
1933
impl_to_postgresql_via_to_string ! ( Target ) ;
1934
1934
impl_to_postgresql_via_to_string ! ( CodegenBackend ) ;
1935
1935
impl_to_postgresql_via_to_string ! ( Profile ) ;
1936
- impl_to_postgresql_via_to_string ! ( BenchmarkJobStatus ) ;
1937
1936
1938
1937
#[ cfg( test) ]
1939
1938
mod tests {
0 commit comments