Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions collector/src/bin/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use std::time::Duration;
use std::{str, time::Instant};

use anyhow::Context;
use chrono::Utc;
use clap::builder::TypedValueParser;
use clap::{Arg, Parser};
use collector::compare::compare_artifacts;
Expand Down Expand Up @@ -731,7 +732,12 @@ fn main_result() -> anyhow::Result<i32> {

let mut rt = build_async_runtime();
let mut conn = rt.block_on(pool.connection());
let artifact_id = ArtifactId::Tag(toolchain.id.clone());
let artifact_id = ArtifactId::Commit(Commit {
sha: toolchain.id.clone(),
date: Utc::now().into(),
r#type: CommitType::Master,
});

rt.block_on(purge_old_data(conn.as_mut(), &artifact_id, purge.purge));

let runtime_suite = rt.block_on(load_runtime_benchmarks(
Expand Down Expand Up @@ -880,7 +886,12 @@ fn main_result() -> anyhow::Result<i32> {
)?;
benchmarks.retain(|b| local.category.0.contains(&b.category()));

let artifact_id = ArtifactId::Tag(toolchain.id.clone());
let artifact_id = ArtifactId::Commit(Commit {
sha: toolchain.id.clone(),
date: Utc::now().into(),
r#type: CommitType::Master,
});

let mut rt = build_async_runtime();
let mut conn = rt.block_on(pool.connection());
rt.block_on(purge_old_data(conn.as_mut(), &artifact_id, purge.purge));
Expand Down
Loading