Skip to content

Mark the local benchmarks as 'master' #1995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2024
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