Skip to content

Commit 0bbb3ac

Browse files
committed
Notify website to refresh itself if published artifact has an error
Before, it would just crash the collector and the website wouldn't be refreshed.
1 parent ff58ac0 commit 0bbb3ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

collector/src/bin/collector.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,14 +843,16 @@ fn main_result() -> anyhow::Result<i32> {
843843
match next {
844844
NextArtifact::Release(tag) => {
845845
let toolchain = create_toolchain_from_published_version(&tag, &target_triple)?;
846-
bench_published_artifact(
846+
let res = bench_published_artifact(
847847
&toolchain,
848848
rt.block_on(pool.connection()),
849849
&mut rt,
850850
&benchmark_dirs,
851-
)?;
851+
);
852852

853853
client.post(format!("{}/perf/onpush", site_url)).send()?;
854+
855+
res?;
854856
}
855857
NextArtifact::Commit {
856858
commit,

0 commit comments

Comments
 (0)