-
Notifications
You must be signed in to change notification settings - Fork 93
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
Notebook interrupt button can be unresponsive #3805
Comments
If this happens in a reproducible way for you (or even if something seems to make it happen more often), please do share that with us! |
One possible issue I can see from the code is that we aren't listening to and handling |
Something like this may also be behind posit-dev/ark#707? |
@petetronic yes that sounds very possible. |
This PR has some notebook test robustness fixes. The basic notebook test now has two types of retries: * retry entry of code in cell if entered text not visible post entry * retry cell execution if output does not appear The notebook variables test just has one minor fix: allow one second post execution before beginning to look for variables. Note that there is an open issue that might still lead to these tests failing: #3805 ### QA Notes All smoke tests should pass
Attempts to address #3805. There are two parts to this: 1. Moved from using cell-level interrupt (`NotebookCellExecution.token`) to notebook-level interrupt (`NotebookController.interruptHandler`), which I believe is the correct approach when there is really a single global kernel backing executions. Cell-level interrupt also only let you interrupt once, and sometimes Python requires multiple interrupts. 2. Better handling for edge cases when interrupting such as the session having exited unexpectedly. ### QA Notes Since the addressed issue is intermittent, it's hard to test. Opening and closing notebooks, and starting and interrupting executions in different ways should all be more stable with this PR. Integration tests should also pass locally.
Verified FixedPositron Version(s) : 2025.01.0-32 Test scenario(s)Confirmed that basic running and interrupting cells in the notebook works as expected. The real test of this fix will be whether it reduces the flakiness of our automated Link(s) to TestRail test cases run or created:n/a |
Positron Version:
Positron Version: 2024.06.1 (system setup) build 2024.06.1-27
Code - OSS Version: 1.90.0
Commit: a893e5b
Date: 2024-06-26T01:33:58.809Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22621
Steps to reproduce the issue:
To be honest, I don't know how to reproduce the problem. It works fine for me before but not now
What did you expect to happen?
The cell run
Were there any error messages in the output or Developer Tools console?
The cell didn't run. As can be seen from the screenshot, it took 11 minutes and not yet finished package loading

The text was updated successfully, but these errors were encountered: