@@ -16,6 +16,7 @@ use std::time::Duration;
16
16
use std:: { str, time:: Instant } ;
17
17
18
18
use anyhow:: Context ;
19
+ use chrono:: Utc ;
19
20
use clap:: builder:: TypedValueParser ;
20
21
use clap:: { Arg , Parser } ;
21
22
use collector:: compare:: compare_artifacts;
@@ -731,7 +732,12 @@ fn main_result() -> anyhow::Result<i32> {
731
732
732
733
let mut rt = build_async_runtime ( ) ;
733
734
let mut conn = rt. block_on ( pool. connection ( ) ) ;
734
- let artifact_id = ArtifactId :: Tag ( toolchain. id . clone ( ) ) ;
735
+ let artifact_id = ArtifactId :: Commit ( Commit {
736
+ sha : toolchain. id . clone ( ) ,
737
+ date : Utc :: now ( ) . into ( ) ,
738
+ r#type : CommitType :: Master ,
739
+ } ) ;
740
+
735
741
rt. block_on ( purge_old_data ( conn. as_mut ( ) , & artifact_id, purge. purge ) ) ;
736
742
737
743
let runtime_suite = rt. block_on ( load_runtime_benchmarks (
@@ -880,7 +886,12 @@ fn main_result() -> anyhow::Result<i32> {
880
886
) ?;
881
887
benchmarks. retain ( |b| local. category . 0 . contains ( & b. category ( ) ) ) ;
882
888
883
- let artifact_id = ArtifactId :: Tag ( toolchain. id . clone ( ) ) ;
889
+ let artifact_id = ArtifactId :: Commit ( Commit {
890
+ sha : toolchain. id . clone ( ) ,
891
+ date : Utc :: now ( ) . into ( ) ,
892
+ r#type : CommitType :: Master ,
893
+ } ) ;
894
+
884
895
let mut rt = build_async_runtime ( ) ;
885
896
let mut conn = rt. block_on ( pool. connection ( ) ) ;
886
897
rt. block_on ( purge_old_data ( conn. as_mut ( ) , & artifact_id, purge. purge ) ) ;
0 commit comments