Skip to content

Commit dd10f3f

Browse files
authored
Increase CI aiohttp timeout to 60 seconds (#648)
* Double CI Timeout - Having lots of GitHub actions errors with XMLRPC - Going to double aiohttp timeout on the xmlrpc calls to see if this stabilizes it - Refer to #647 for the testing I did Fixes #647 * Also double swift ci config * Try 60 seconds ... * Have mypy ignore asyncio.run use in the new xmlrpc test tool - Mypy is set to 3.6
1 parent 57cdb75 commit dd10f3f

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

src/bandersnatch/tests/ci-swift.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
directory = /tmp/pypi
55
json = true
66
master = https://pypi.org
7-
timeout = 10
7+
timeout = 60
88
global-timeout = 18000
99
workers = 3
1010
hash-index = true

src/bandersnatch/tests/ci.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ directory = /tmp/pypi
55
json = true
66
cleanup = true
77
master = https://pypi.org
8-
timeout = 10
8+
timeout = 60
99
global-timeout = 18000
1010
workers = 3
1111
hash-index = true

src/test_tools/test_xmlrpc.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python3
2+
3+
"""
4+
Quick tool to test xmlrpc queries from bandersnatch
5+
- Note this is >= 3.7 only due to asyncio.run
6+
"""
7+
8+
import asyncio
9+
10+
from bandersnatch.master import Master
11+
12+
13+
async def main() -> int:
14+
async with Master("https://pypi.org") as master:
15+
all_packages = await master.all_packages()
16+
print(f"PyPI returned {len(all_packages)} PyPI packages via xmlrpc")
17+
return 0
18+
19+
20+
if __name__ == "__main__":
21+
exit(asyncio.run(main())) # type: ignore

0 commit comments

Comments
 (0)