Skip to content

Commit

Permalink
test: do not skip aiohttp tests for Python 3.12 - update pytest rerun…
Browse files Browse the repository at this point in the history
… settings (#1064)

* do not skip aiohttp tests for Python 3.12

* increase number of reruns and wait time due to flaky xrootd

* twice more attempts, half the delay

* expand rerun regex to handle ssl and expired (xrootd) errors
  • Loading branch information
lobis authored Dec 13, 2023
1 parent a9ad84a commit 94ef7a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:

- name: Run pytest
run: |
python -m pytest -vv tests --reruns 3 --reruns-delay 30 --only-rerun "(?i)http|timeout|connection|socket"
python -m pytest -vv tests --reruns 10 --reruns-delay 30 --only-rerun "(?i)http|ssl|timeout|expired|connection|socket"
vanilla-build:
strategy:
Expand All @@ -91,4 +91,4 @@ jobs:

- name: Run pytest
run: |
python -m pytest -vv tests --reruns 3 --reruns-delay 30 --only-rerun "(?i)http|timeout|connection|socket"
python -m pytest -vv tests --reruns 10 --reruns-delay 30 --only-rerun "(?i)http|ssl|timeout|expired|connection|socket"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ test = [
"xxhash",
"zstandard",
"minio",
"aiohttp; python_version<\"3.12\"", # asyncio not available
"aiohttp",
"fsspec",
"fsspec-xrootd",
"s3fs; python_version<\"3.12\"", # asyncio not available
"s3fs",
"paramiko",
"pytest>=6",
"pytest-timeout",
Expand Down

0 comments on commit 94ef7a4

Please sign in to comment.