ci: Run nextest with profile "ci", add a test-specific override to allow retries for `avm2/pixelbender_shaderdata`

This commit is contained in:
TÖRÖK Attila 2024-08-10 23:15:35 +02:00
parent e8a4f2f21f
commit f98999c2ac
2 changed files with 6 additions and 2 deletions

4
.config/nextest.toml Normal file
View File

@ -0,0 +1,4 @@
# TODO: Figure out why this specific test is flaky on CI, fix it, then delete this file.
[[profile.ci.overrides]]
filter = "test(avm2/pixelbender_shaderdata)"
retries = 3

View File

@ -81,7 +81,7 @@ jobs:
- name: Run tests with image tests
if: runner.os != 'macOS'
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features imgtests,lzma,jpegxr
run: cargo nextest run --profile ci --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features imgtests,lzma,jpegxr
env:
# This is to counteract the disabling by rust-cache.
# See: https://github.com/Swatinem/rust-cache/issues/43
@ -96,7 +96,7 @@ jobs:
- name: Run tests without image tests
if: runner.os == 'macOS'
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features lzma,jpegxr
run: cargo nextest run --profile ci --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features lzma,jpegxr
env:
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing