Skip to content

Commit 0d49a64

Browse files
committed
Re-enable stable artifact benchmarks
1 parent 812e953 commit 0d49a64

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

site/src/request_handlers/next_artifact.rs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ use collector::api::next_artifact;
44
use std::sync::Arc;
55

66
pub async fn handle_next_artifact(ctxt: Arc<SiteCtxt>) -> next_artifact::Response {
7-
// Temporarily disabled while we migrate to a new collector machine
87
// Prefer benchmarking released artifacts first
9-
// match ctxt.missing_published_artifacts().await {
10-
// Ok(next_artifact) => {
11-
// if let Some(next_artifact) = next_artifact.into_iter().next() {
12-
// log::debug!("next_artifact: {next_artifact}");
13-
// return next_artifact::Response {
14-
// artifact: Some(next_artifact::NextArtifact::Release(next_artifact)),
15-
// };
16-
// }
17-
// }
18-
// Err(error) => log::error!("Failed to fetch missing artifacts: {error:?}"),
19-
// }
8+
match ctxt.missing_published_artifacts().await {
9+
Ok(next_artifact) => {
10+
if let Some(next_artifact) = next_artifact.into_iter().next() {
11+
log::debug!("next_artifact: {next_artifact}");
12+
return next_artifact::Response {
13+
artifact: Some(next_artifact::NextArtifact::Release(next_artifact)),
14+
};
15+
}
16+
}
17+
Err(error) => log::error!("Failed to fetch missing artifacts: {error:?}"),
18+
}
2019

2120
let next_commit = ctxt.missing_commits().await.into_iter().next();
2221

0 commit comments

Comments
 (0)