Skip to content

Commit cffc3a6

Browse files
authored
Merge pull request #9051 from pradyunsg/fix-ci-issues
Workaround CI failures due to "pip search" throttling
2 parents 08c99b6 + abb3d0f commit cffc3a6

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.azure-pipelines/linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
variables:
2+
CI: true
3+
14
jobs:
25
- template: jobs/test.yml
36
parameters:

.azure-pipelines/macos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
variables:
2+
CI: true
3+
14
jobs:
25
- template: jobs/test.yml
36
parameters:

.azure-pipelines/windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
variables:
2+
CI: true
3+
14
jobs:
25
- template: jobs/test-windows.yml
36
parameters:

tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def pytest_collection_modifyitems(config, items):
6363
if not hasattr(item, 'module'): # e.g.: DoctestTextfile
6464
continue
6565

66-
# Mark network tests as flaky
67-
if (item.get_closest_marker('network') is not None and
68-
"CI" in os.environ):
69-
item.add_marker(pytest.mark.flaky(reruns=3))
66+
if "CI" in os.environ:
67+
# Mark network tests as flaky
68+
if item.get_closest_marker('network') is not None:
69+
item.add_marker(pytest.mark.flaky(reruns=3, reruns_delay=2))
7070

7171
if (item.get_closest_marker('fails_on_new_resolver') and
7272
config.getoption("--new-resolver") and
File renamed without changes.

0 commit comments

Comments
 (0)