question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test interrupt fails intermittently

See original GitHub issue

We’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:closed
  • Created 6 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jrbourbeaucommented, Oct 12, 2021

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 traceback

0reactions
GenevieveBuckleycommented, Oct 12, 2021

Thanks James, that sounds like a good plan

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found