-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
tests: increase TIMEOUT_AWAIT_WRITE and update requests #3930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…durations 10 for pytest `self.rebuild_proxies(request, self.proxies))` seems to slow down `requests` psf/requests@60ea7f0#diff-c80d84057edadb04b5615f7169c55f88ccda358d7c20af966afb20c0d0d1056a which results in a pytest timeout, because 5 seconds is not enough on windows ``` with kwargs.setdefault('proxies', self.proxies) ============================================================================================ slowest 10 durations ============================================================================================= 0.86s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128 0.53s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_key_uri_override 0.43s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_with_map 0.36s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_incorrect_padding_content 0.30s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_incorrect_padding_length 0.30s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_incorrect_block_length ``` ``` with kwargs.setdefault('proxies', self.rebuild_proxies(request, self.proxies)) ============================================================================================ slowest 10 durations ============================================================================================= 10.01s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128 9.80s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_key_uri_override 5.63s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_incorrect_padding_length 5.22s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_with_map 2.97s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_incorrect_block_length 2.95s call tests/streams/test_hls.py::TestHLSStreamEncrypted::test_hls_encrypted_aes128_incorrect_padding_content ``` --- also show the 10 slowest tests on pytest
psf/requests#5891 There's a PR on the requests repo which is supposed to fix the performance regression introduced in 2.26, but there's another issue with side effects of proxy authentication headers, so it's possible that the performance fix won't get merged any time soon from what it looks like. Even if increasing the value of |
I've re-run the tests a couple of times now and from what it looks like some of the tests on Windows run for 5-6 seconds while most of them run only for 2-3 seconds, which means the tests were barely failing before increasing the timeout, which is unfortunate. Should be good now though. Thanks for the fix. |
The tests are failing again on Windows (even after increasing the time threshold) because the VMs are running extremely slowly today. I've restarted the CI runners of the latest commit on the master branch a couple of minutes ago and this time it went through, but this is way too annoying. Some of the other commits and today's scheduled build failed and can't be restarted without overriding the docs on success (merging multiple PRs too quickly is btw also an issue with docs deployment). I'd say we should disable the HLS integration tests on Windows and be done with it. |
requests 2.27 has been released on the 3rd of January, and it should've fixed the HLS test timeout issues on Windows. https://github.com/psf/requests/releases/tag/v2.27.0
requests 2.26.0 - Windows - Python 3.10https://github.com/streamlink/streamlink/runs/4686658266?check_suite_focus=true#step:9:220
requests 2.27.0 - Windows - Python 3.10https://github.com/streamlink/streamlink/runs/4696697396?check_suite_focus=true#step:9:220
|
tests.mixins.stream_hls: increase TIMEOUT_AWAIT_WRITE timeout, use --durations 10 for pytest
self.rebuild_proxies(request, self.proxies))
seems to slow downrequests
psf/requests@60ea7f0#diff-c80d84057edadb04b5615f7169c55f88ccda358d7c20af966afb20c0d0d1056a
which results in a pytest timeout, because 5 seconds is not enough on windows
also show the 10 slowest tests on pytest
setup: update requests version >=2.26.0 and makeinstaller.sh
revert #3880