From a26041b78b5c2d5bf17931eeafd354637b7cec5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Mon, 30 Jun 2025 13:58:24 +0200 Subject: [PATCH] Temporarily disable release artifact benchmarking --- site/src/request_handlers/next_artifact.rs | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/site/src/request_handlers/next_artifact.rs b/site/src/request_handlers/next_artifact.rs index 95253d119..95f79f7f7 100644 --- a/site/src/request_handlers/next_artifact.rs +++ b/site/src/request_handlers/next_artifact.rs @@ -4,18 +4,19 @@ use collector::api::next_artifact; use std::sync::Arc; pub async fn handle_next_artifact(ctxt: Arc) -> next_artifact::Response { + // Temporarily disabled while we migrate to a new collector machine // Prefer benchmarking released artifacts first - match ctxt.missing_published_artifacts().await { - Ok(next_artifact) => { - if let Some(next_artifact) = next_artifact.into_iter().next() { - log::debug!("next_artifact: {next_artifact}"); - return next_artifact::Response { - artifact: Some(next_artifact::NextArtifact::Release(next_artifact)), - }; - } - } - Err(error) => log::error!("Failed to fetch missing artifacts: {error:?}"), - } + // match ctxt.missing_published_artifacts().await { + // Ok(next_artifact) => { + // if let Some(next_artifact) = next_artifact.into_iter().next() { + // log::debug!("next_artifact: {next_artifact}"); + // return next_artifact::Response { + // artifact: Some(next_artifact::NextArtifact::Release(next_artifact)), + // }; + // } + // } + // Err(error) => log::error!("Failed to fetch missing artifacts: {error:?}"), + // } let next_commit = ctxt.missing_commits().await.into_iter().next();