-
Notifications
You must be signed in to change notification settings - Fork 310
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
[Batch 4] Porting Notebook PRs #99
Conversation
Zsailer
commented
Sep 25, 2019
- Enable kernel message filtering jupyter/notebook#4210
- Update session_exists() to account for invalid sessions due to culling jupyter/notebook#4219
- Launch the browser with a redirect file jupyter/notebook#4260
- More selective filename test in list_running_servers jupyter/notebook#4284
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests will fail with update of ServerTestBase references.
When kernels are culled, the kernel is terminated in the background, unbeknownst to the session management. As a result, invalid sessions can be produced that appear to exist, yet cannot produce a model from the persisted row due to the associated kernel no longer being active. Prior to this change, these sessions, when encountered via a subsequent call to `get_session()`, would be deleted and a KeyError would be raised. This change updates the existence check to tolerate those kinds of sessions. It removes such sessions (as would happen previously), but rather than raise a KeyError when attempting to convert the row to a dictionary, it logs a warning and returns None, which then allows `session_exists()` to return False since the session was removed (as was ultimately the case previously). Calls to `get_session()` remain just as before and have the potential to raise `KeyError` in such cases. The difference now being that the `KeyError` is accompanied by a message indicating the cause. Fixes #4209
This avoids putting the authentication token into a command-line argument to launch the browser, where it's visible to other users. Filesystem permissions should ensure that only the user who started the notebook can use this route to authenticate. Thanks to Dr Owain Kenway for suggesting this technique.
Tornado 6.0a1 is causing test failures in CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - thanks.
Per the previous comment, this just got added to Notebook. All the more reason to increase the min tornado version: jupyter/notebook#2400 (comment) |
No cleanup necessary - the tornado versioning issue was addressed in the last setup of updates: 7a7a3e8 |
add status message type wip cleanup fix failing tests wip UI testing finish UI testing bump version