add flaky windows error

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2022-10-29 16:30:06 +02:00 committed by GitHub
parent b5385f6b4a
commit ddcb5d3742
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,9 +227,10 @@ fn run_command<S, I: Copy, P: AsRef<Path> + Copy>(
Err(_) => format!("Failed to run \"{}\"", command_str),
};
// flaky test error that only occurs sometimes inside MacOS ci run
if error_str.contains("FileNotFound")
|| error_str.contains("unable to save cached ZIR code")
// flaky test errors
if error_str.contains("FileNotFound") // only occurs sometimes inside MacOS ci run
|| error_str.contains("unable to save cached ZIR code") // only occurs sometimes inside MacOS ci run
|| error_str.cointaints("lld-link: error: failed to write the output file: Permission denied") // only occurs sometimes on windows
{
if flaky_fail_counter == 10 {
panic!("{} failed 10 times in a row. The following error is unlikely to be a flaky error: {}", command_str, error_str);