mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
parent
c9a1ca84b4
commit
1bae24b3ea
1 changed files with 11 additions and 13 deletions
|
@ -174,25 +174,23 @@ fn run_command(mut command: Command, flaky_fail_counter: usize) {
|
||||||
Err(_) => format!("Failed to run \"{command_str}\""),
|
Err(_) => format!("Failed to run \"{command_str}\""),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Flaky test errors that only occur sometimes on MacOS ci server.
|
if error_str
|
||||||
if error_str.contains("FileNotFound")
|
.contains("lld-link: error: failed to write the output file: Permission denied")
|
||||||
|| error_str.contains("unable to save cached ZIR code")
|
|
||||||
|| error_str.contains("LLVM failed to emit asm")
|
|
||||||
|| error_str.contains("ir-wasm32 transitive failure")
|
|
||||||
{
|
{
|
||||||
|
internal_error!("{} failed with:\n\n {}\n\nWorkaround:\n\n Re-run the cargo command that triggered this build.\n\n", command_str, error_str);
|
||||||
|
} else {
|
||||||
|
// We have bunch of flaky failures here on macos, particularly since upgrading to zig 13 github.com/roc-lang/roc/pull/6921
|
||||||
|
if cfg!(target_os = "macos") {
|
||||||
if flaky_fail_counter == 10 {
|
if flaky_fail_counter == 10 {
|
||||||
internal_error!("{} failed 10 times in a row. The following error is unlikely to be a flaky error: {}", command_str, error_str);
|
internal_error!("{} failed 10 times in a row. The following error is unlikely to be a flaky error: {}", command_str, error_str);
|
||||||
} else {
|
} else {
|
||||||
run_command(command, flaky_fail_counter + 1)
|
run_command(command, flaky_fail_counter + 1)
|
||||||
}
|
}
|
||||||
} else if error_str
|
|
||||||
.contains("lld-link: error: failed to write the output file: Permission denied")
|
|
||||||
{
|
|
||||||
internal_error!("{} failed with:\n\n {}\n\nWorkaround:\n\n Re-run the cargo command that triggered this build.\n\n", command_str, error_str);
|
|
||||||
} else {
|
} else {
|
||||||
internal_error!("{} failed with:\n\n {}\n", command_str, error_str);
|
internal_error!("{} failed with:\n\n {}\n", command_str, error_str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
Err(reason) => internal_error!("{} failed: {}", command_str, reason),
|
Err(reason) => internal_error!("{} failed: {}", command_str, reason),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue