windows flake is different than on macos

This commit is contained in:
Anton-4 2022-10-29 16:57:32 +02:00
parent b1fff17730
commit fda3b44315
No known key found for this signature in database
GPG Key ID: A13F4A6E21141925
2 changed files with 6 additions and 7 deletions

View File

@ -34,8 +34,8 @@ jobs:
curl.exe -L -O https://github.com/roc-lang/llvm-package-windows/releases/download/v13.0.1/LLVM-13.0.1-win64.7z
7z x LLVM-13.0.1-win64.7z -oC:\LLVM-13.0.1-win64
- name: build tests release without running
run: cargo test --locked --release --no-run
- name: Build tests release without running. Twice for flakyness.
run: cargo test --locked --release --no-run || cargo test --locked --release --no-run
- run: cargo test-gen-llvm

View File

@ -227,10 +227,9 @@ fn run_command<S, I: Copy, P: AsRef<Path> + Copy>(
Err(_) => format!("Failed to run \"{}\"", command_str),
};
// 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.contains("lld-link: error: failed to write the output file: Permission denied") // only occurs sometimes on windows
// Flaky test errors that only occur sometimes on MacOS ci server.
if error_str.contains("FileNotFound")
|| error_str.contains("unable to save cached ZIR code")
{
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);