flaky error retry

Closes #7380 

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2024-12-16 19:58:04 +01:00 committed by GitHub
parent edd7c650b9
commit bd5034e89d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,6 +178,7 @@ fn run_command(mut command: Command, flaky_fail_counter: usize) {
if error_str.contains("FileNotFound")
|| error_str.contains("unable to save cached ZIR code")
|| error_str.contains("LLVM failed to emit asm")
|| error_str.contains("ir-wasm32 transitive failure")
{
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);