Skip to content

Commit f77e21b

Browse files
committed
Auto-retry flaky MP tests
1 parent 2b1b0ba commit f77e21b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,22 @@ jobs:
286286

287287
- name: Run flaky MP CPython tests
288288
run: |
289+
for attempt in $(seq 1 5); do
290+
echo "::group::Attempt ${attempt}"
291+
289292
target/release/rustpython -m test -j 1 ${{ join(matrix.extra_test_args, ' ') }} --slowest --fail-env-changed --timeout 600 -v ${{ env.FLAKY_MP_TESTS }}
293+
status=$?
294+
295+
echo "::endgroup:
296+
297+
if [ $status -eq 0 ]; then
298+
exit 0
299+
fi
300+
done
301+
302+
exit 1
290303
timeout-minutes: ${{ matrix.timeout }}
304+
shell: bash
291305
env:
292306
RUSTPYTHON_SKIP_ENV_POLLUTERS: true
293307

0 commit comments

Comments
 (0)