Skip to content

Commit 5c38777

Browse files
committed
treat out of space during fetch as out of space build failure
so that it gets sorted as spurrious instead of error and ends up in the retry-regressed-list.txt and the crate gets a change at a retry
1 parent 53fc2ea commit 5c38777

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/runner/worker.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::agent::AgentApi;
22
use crate::crates::Crate;
33
use crate::experiments::{Experiment, Mode};
44
use crate::prelude::*;
5-
use crate::results::{BrokenReason, TestResult};
5+
use crate::results::{BrokenReason, TestResult, FailureReason};
66
use crate::runner::tasks::{Task, TaskStep};
77
use crate::runner::test::detect_broken;
88
use crate::runner::OverrideResult;
@@ -212,7 +212,9 @@ impl<'a> Worker<'a> {
212212
// this too often we'd replace the
213213
// machine, but it's not very clear
214214
// what "too often" means here.
215-
return Err(e);
215+
return Err(e.context(OverrideResult(TestResult::BuildFail(
216+
FailureReason::NoSpace,
217+
))));
216218
} else {
217219
log::warn!(
218220
"Retrying crate fetch in 3 seconds (attempt {})",

0 commit comments

Comments
 (0)