Allow auto jobs to be non-blocking

This commit is contained in:
Jakub Beránek
2026-03-11 17:20:41 +01:00
parent 3b1b0ef4d8
commit ac062fd223
+6 -4
View File
@@ -200,12 +200,14 @@ fn equivalent_modulo_carve_out(pr_job: &Job, auto_job: &Job) -> anyhow::Result<(
equivalent_modulo_carve_out(pr_job, auto_job)?;
}
// Auto CI jobs must all "fail-fast" to avoid wasting Auto CI resources. For instance, `tidy`.
// Auto CI should "fail-fast" to avoid wasting Auto CI resources.
// However, some experimental auto jobs can be made optional, for example if we are unsure about
// their flakiness. Those have to be prefixed with `optional-`.
for auto_job in &db.auto_jobs {
if auto_job.continue_on_error == Some(true) {
if auto_job.continue_on_error == Some(true) && !auto_job.name.starts_with("optional-") {
return Err(anyhow!(
"Auto job `{}` cannot have `continue_on_error: true`",
auto_job.name
"Auto job `{job}` cannot have `continue_on_error: true`. If the job should be optional, name it `optional-{job}`.",
job = auto_job.name
));
}
}