Unit tests are becoming more flaky, so retry them (#30682)

* Unit tests are becoming more flaky, so retry them

* Timeouts everywhere

* Limit windows test threads for unit tests
This commit is contained in:
Samson 2023-11-02 16:23:04 +01:00 committed by GitHub
parent f5627ce4cc
commit c2af95d2fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View file

@ -100,7 +100,11 @@ jobs:
run: ./mach test-scripts
- name: Unit tests
if: ${{ inputs.unit-tests || github.ref_name == 'try-linux' }}
run: python3 ./mach test-unit ${{ env.cargo_profile_option }}
uses: nick-fields/retry@v2
with:
timeout_minutes: 20
max_attempts: 2 # https://github.com/servo/servo/issues/30683
command: python ./mach test-unit ${{ env.cargo_profile_option }}
- name: Rename build timing
run: cp -r target/cargo-timings target/cargo-timings-linux
- name: Archive build timing