Test interrupt fails intermittently
See original GitHub issueWe’re seeing this error pop up from time to time on travis.ci. cc @jcrist
________________________________ test_interrupt ________________________________
[gw0] linux -- Python 3.5.3 /home/travis/miniconda/envs/test-environment/bin/python
@pytest.mark.slow
def test_interrupt():
try:
proc = subprocess.Popen([sys.executable, '-c', code],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
# Wait for scheduler to start
msg = proc.stdout.readline()
if msg != 'started\n' and proc.poll() is not None:
assert False, "subprocess failed"
# Scheduler has started, send an interrupt
sigint = signal.CTRL_C_EVENT if os.name == 'nt' else signal.SIGINT
try:
proc.send_signal(sigint)
# Wait a bit for it to die
start = time()
while time() - start < 2.0:
if proc.poll() is not None:
break
sleep(0.05)
else:
> assert False, "KeyboardInterrupt Failed"
E AssertionError: KeyboardInterrupt Failed
E assert False
dask/tests/test_threaded.py:155: AssertionError
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
Testing network interrupts in software - Stack Overflow
You might want to abstract the network layer, and then you can have unit tests that inject interesting failure events at appropriate points....
Read more >What could be causing the STM32L152 UART Rx interrupt to ...
Given that, I am looking for advance debugging techniques for diagnosing this intermittent failure of the UART interrupt to fire.
Read more >How to Fix System Interrupts High CPU Usage in Windows 10
Check for Failing Hardware. It's possible that a piece of hardware may be close to failure and intermittently causes the System Interrupts ...
Read more >[Solved] System Interrupts High CPU Usage on Windows 10
If you find System interrupts keep taking up over 20% of CPU usage, it means there's something error with your hardware or the...
Read more >ARM: Sporadic Interrupt Problems - Arm Developer
The interrupt code on my Arm system seems to fail sporadically. ... Below is the specific code portion extracted into a test program...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for following up here @GenevieveBuckley. FWIW
test_interrupt
is still a flaky test, though probably for a different reason than originally reported on this issue. I’ll wait until I see this failure pop up again in CI and open a new issue with an updated tracebackThanks James, that sounds like a good plan