Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since late February the js/services tests have been producing a single failure in one of its kernel auto-restart tests. This issue was occurring on all notebook PRs irrespective to change - which implied a changed dependency. Also in late February, we released jupyter_client 6.0.0. This release consisted of commits more than two years ago.
In looking through the commit history (and knowing I might be a culprit 😊) I began going through the commits that seemed possible candidates. Fortunately, the first I picked was the culprit!
It turns out that commit 7a8394d was resetting the
self._restarter
attribute when stopping the restarter. Although restarts continued working, auto restarts may not have been getting properly performed.This change retains the restarter instance across stop requests. Since leaks are not commonly reported in normal circumstances, this probably isn't a big deal. Its applications like Kernel or Enterprise Gateway, where large numbers of kernels can be active where this is more problematic. However, since there hasn't been a lot of noise in the two years since that commit was made, I don't think its restoration is something to worry about.
Here's a history of the CI tests (builds 78-87) that first reproduce the issue, work with some proposed changes, then reproduce it again (upon restoring the issue to the test branch), then succeeding with this branch. The two notebook PRs are completely unrelated, one involving server-side changes, the other invoving client-side changes.