@@ -3,6 +3,7 @@ use crate::{
3
3
ArtifactCollection , ArtifactId , ArtifactIdNumber , Benchmark , BenchmarkRequest ,
4
4
BenchmarkRequestStatus , BenchmarkRequestType , CodegenBackend , CollectionId , Commit , CommitType ,
5
5
CompileBenchmark , Date , Index , Profile , QueuedCommit , Scenario , Target ,
6
+ BENCHMARK_REQUEST_MASTER_STR , BENCHMARK_REQUEST_RELEASE_STR , BENCHMARK_REQUEST_TRY_STR ,
6
7
} ;
7
8
use anyhow:: Context as _;
8
9
use chrono:: { DateTime , TimeZone , Utc } ;
@@ -1463,7 +1464,7 @@ where
1463
1464
let profiles = row. get :: < _ , & str > ( 8 ) ;
1464
1465
1465
1466
match commit_type {
1466
- "try" => {
1467
+ BENCHMARK_REQUEST_TRY_STR => {
1467
1468
let mut try_benchmark = BenchmarkRequest :: create_try (
1468
1469
tag,
1469
1470
parent_sha,
@@ -1476,7 +1477,7 @@ where
1476
1477
try_benchmark. completed_at = completed_at;
1477
1478
try_benchmark
1478
1479
}
1479
- "master" => {
1480
+ BENCHMARK_REQUEST_MASTER_STR => {
1480
1481
let mut master_benchmark = BenchmarkRequest :: create_master (
1481
1482
tag. expect ( "Master commit in DB without SHA" ) ,
1482
1483
parent_sha. unwrap ( ) ,
@@ -1489,7 +1490,7 @@ where
1489
1490
master_benchmark. completed_at = completed_at;
1490
1491
master_benchmark
1491
1492
}
1492
- "release" => {
1493
+ BENCHMARK_REQUEST_RELEASE_STR => {
1493
1494
let mut release_benchmark = BenchmarkRequest :: create_release (
1494
1495
tag. expect ( "Release commit in DB witohut SHA" ) ,
1495
1496
created_at,
0 commit comments