mozilla / mozdownload

Easy to use download tool and API for different types of Firefox and Thunderbird builds
http://pypi.python.org/pypi/mozdownload
Other
70 stars 77 forks source link

Use "http" fixture per session to increase test runtime drasticallly #690

Closed whimboo closed 5 months ago

whimboo commented 5 months ago

I noticed that tests that are only using data from the local HTTP server are running very slow. After investigation it turned out that the HTTP server's shutdown method takes about 0.5s to run. I filed https://github.com/web-platform-tests/wpt/issues/46710 to get this investigated.

To workaround the issue we should use the http fixture per session and not per test.

whimboo commented 5 months ago

Compared with CI checks that were running until now the duration drops from around 3:30 minutes to just 1 minute!