Looks like the timeout option does not work on all platform/python version combinaisons
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the linked test_ping_localhost_timedout() in tests/test_security_scans_wrapper.py and compare its behavior across the reported Ubuntu 20.04 and Python 3.7/3.9 combinations with the passing versions. Review the linked scans_wrapper/process.py wrapper and establish why the zero-second timeout differs; done means the test consistently produces no output after the process is killed.
Written by the indexing model from the issue text.
Description
Hello,
I'm opening this issue because I'm running into a weird issue that I can't reproduce on my local computer but does happen inside github runners on specific platform / python version combinaison.
Namely, ubuntu-20.04 with python 3.7 or 3.9. Note that my tests passes on python 3.8 and python 3.6 (wtf).
I've code this little module that wraps invoke: https://github.com/tristanlatr/security-scans-wrapper/blob/main/scans_wrapper/process.py
And you can see the failing test here test_ping_localhost_timedout(). The test only ensure that nothing got printed out because the process got killed after zero seconds.
Tell me what you think,
Here's a screenshot of test builds status

Talk to you later
- Dominant language
- Python
- Stars
- 4.8k
- Forks
- 412
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pyinvoke/invoke
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100