Skip to content
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

WIP Make kernel message handling async and in order #4697

Merged
merged 79 commits into from
Jun 27, 2018

Commits on Jun 12, 2018

  1. Configuration menu
    Copy the full SHA
    6faa2db View commit details
    Browse the repository at this point in the history
  2. First pass at handling the case for restarting a kernel and canceling…

    … processing of old kernel messages in the async queue.
    jasongrout committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    6d6425b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6b88d89 View commit details
    Browse the repository at this point in the history
  4. WIP update docs

    jasongrout committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    e905dd8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    958f91f View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2018

  1. Configuration menu
    Copy the full SHA
    d7ea1bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b545d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c43f2e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0112a70 View commit details
    Browse the repository at this point in the history
  5. Convert kernel utility functions to use async/await syntax.

    This also fixes at least one bug, where the shutdownAll was resolving before each shutdown actually resolved.
    jasongrout committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a710f4b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    17b7aa7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ee17a1f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    086c935 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8a5c58a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    987bff9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6ae2a93 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ba3e81e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b206730 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cb2b5f8 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2018

  1. Configuration menu
    Copy the full SHA
    0c2baf2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd50e93 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d58b49 View commit details
    Browse the repository at this point in the history
  4. Fix some imports.

    jasongrout committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    a8883b3 View commit details
    Browse the repository at this point in the history
  5. Update the current kernel session id on *every* message.

    The kernel session id is stored to make it easy to see if a previously scheduled message should still be processed, so it should be updated every time we get anything from the kernel.
    
    This fixes problems we were seeing where the messages updating the kernel session id were being ignored because they were being canceled.
    jasongrout committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    6c1f09e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    db9e387 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2018

  1. Configuration menu
    Copy the full SHA
    d4f1468 View commit details
    Browse the repository at this point in the history
  2. WIP

    jasongrout committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    555cb73 View commit details
    Browse the repository at this point in the history
  3. Prevent console error when a future is canceled.

    From @afshin, who made the fix in jupyterlab#4733.
    jasongrout committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    bce868b View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2018

  1. WIP

    jasongrout committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    fbb1af3 View commit details
    Browse the repository at this point in the history
  2. WIP

    jasongrout committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    a8e8641 View commit details
    Browse the repository at this point in the history
  3. Use phosphor’s defer rather than requestAnimationFrame

    The test setup does not have requestAnimationFrame, so there is an error by assuming it.
    jasongrout committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    ba00836 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    15d733a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b73ca7a View commit details
    Browse the repository at this point in the history
  6. Skip comm tests for now

    jasongrout committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    a25e24d View commit details
    Browse the repository at this point in the history
  7. Re-enable all services tests.

    It looks like we disabled all tests except the ikernel tests in 9b654f5  (see jupyterlab#4115, jupyterlab@9b654f5#diff-388fcef0ff8fa826feaa68effbcaaf02R30). We forgot to enable them again.
    jasongrout committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    3bf22ad View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2018

  1. Adjust logging to use a single exported function.

    This makes it easier to turn on and off logging while we fix the remaining tests.
    jasongrout committed Jun 17, 2018
    Configuration menu
    Copy the full SHA
    6ec05db View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2018

  1. Fix message hook test.

    jasongrout committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    84171f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2018

  1. Configuration menu
    Copy the full SHA
    15468ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b151c69 View commit details
    Browse the repository at this point in the history
  3. asyncify two more tests.

    jasongrout committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    6e6eedb View commit details
    Browse the repository at this point in the history
  4. Fix the serverSettings unit test.

    We were getting an error about the baseUrl not being an absolute url (apparently a requirement of the node fetch library).
    jasongrout committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    8d2db4a View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2018

  1. Configuration menu
    Copy the full SHA
    070f017 View commit details
    Browse the repository at this point in the history
  2. Fix comm unit tests.

    jasongrout committed Jun 20, 2018
    Configuration menu
    Copy the full SHA
    bbcb8f7 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2018

  1. Fix ikernel tests.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    fe33e03 View commit details
    Browse the repository at this point in the history
  2. Fix kernel manager tests.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    39ea199 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a9652e View commit details
    Browse the repository at this point in the history
  4. Remove the anyMessage ‘different client session’ test.

    The anyMessage signal should be emitted for any message received, not just messages with a particular parent header.
    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    2502aa0 View commit details
    Browse the repository at this point in the history
  5. Fix ikernel tests.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    0e7575b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    10d3008 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e667434 View commit details
    Browse the repository at this point in the history
  8. Fix session tests.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    c47d549 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2ef505f View commit details
    Browse the repository at this point in the history
  10. Fix kernel interrupt test.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    f5f44fb View commit details
    Browse the repository at this point in the history
  11. Fix a kernel test.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    737a096 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a592afe View commit details
    Browse the repository at this point in the history
  13. Comment out logging.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    8e771a4 View commit details
    Browse the repository at this point in the history
  14. Fix lint issues.

    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    1fc95e8 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    dfad03b View commit details
    Browse the repository at this point in the history
  16. Fix lint errors.

    Tweak TODO warnings on tests that sometimes time out.
    jasongrout committed Jun 21, 2018
    Configuration menu
    Copy the full SHA
    12dd9ea View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2018

  1. Make a copy of the runningKernels list if there is a possibility of d…

    …eleting one from the list.
    jasongrout committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    9fdeae5 View commit details
    Browse the repository at this point in the history
  2. Don’t preemptively cancel messages from a different kernel session.

    This is so that code waiting on, for example, a status message will still resolve, especially in the case that the messages were buffered into another session.
    
    Any message handling that may require the current session (such as creating comms) should check to see if the message being handled is current.
    jasongrout committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    db924ae View commit details
    Browse the repository at this point in the history
  3. Work around issues where tests were sporadically hanging.

    It’s still a bit puzzling what is happening - it appears that the notebook is dropping messages from the kernel. More details at jupyter/notebook#3705.
    jasongrout committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    fc6b562 View commit details
    Browse the repository at this point in the history
  4. Put back in debug logging.

    jasongrout committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    9b4c9ab View commit details
    Browse the repository at this point in the history
  5. Add explanatory notes.

    jasongrout committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    f44dde6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    989d66d View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2018

  1. Configuration menu
    Copy the full SHA
    b40abcd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bdcf02f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    652a26a View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2018

  1. Configuration menu
    Copy the full SHA
    d96044b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    67f271e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be6a65a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0f3aae2 View commit details
    Browse the repository at this point in the history
  5. Fix failing kernel test.

    jasongrout committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    353779f View commit details
    Browse the repository at this point in the history
  6. Some minor cleanup.

    jasongrout committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    bef6212 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4a30e0f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8b7b059 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0c45d74 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    38e96a1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    58ecc9c View commit details
    Browse the repository at this point in the history