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
10 changes: 9 additions & 1 deletion collector/src/compile/execute/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async fn record(
.env("BOOTSTRAP_SKIP_TARGET_SANITY", "1")
.arg("build")
.arg("--stage")
.arg("0")
.arg("1")
// We want bootstrap and the Cargos it spawns to have no parallelism --
// if multiple rustcs are competing for jobserver tokens, we introduce
// quite a bit of variance.
Expand All @@ -144,6 +144,14 @@ async fn record(
}
}

// Sanity check
if timing_data.is_empty() {
return Err(anyhow::anyhow!(
"rustc benchmark failed to produce timing data\nSTDOUT:\n{}\n\nSTDERR:{timings}\n",
String::from_utf8_lossy(&output.stdout)
));
}

let version = get_rustc_perf_commit();
let collection = conn.collection_id(&version).await;

Expand Down
Loading