From 91bfcd240f500740759ae0b792afc5dcfc9dd3a1 Mon Sep 17 00:00:00 2001 From: Aaron Jomy <75925957+maximusron@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:53:26 +0200 Subject: [PATCH] Run crashing tests with restarts --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2451b57f..8933f9c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -735,7 +735,7 @@ jobs: # See if we don't have a crash that went away # Comment out all xfails but the ones that have a run=False condition. find . -name "*.py" -exec sed -i '/run=False/!s/^ *@mark.xfail\(.*\)/#&/' {} \; - python -m pytest -m "xfail" --runxfail -sv | tee test_crashed.log 2>&1 || true + python -m pytest -n 1 -m "xfail" --runxfail -sv --max-worker-restart 512 | tee test_crashed.log 2>&1 || true git checkout . echo ::endgroup:: echo ::group::XFAIL Test Logs